[2024-12-21 00:00:05] Production.INFO: next invoice date [2024-12-21 00:00:05] Production.INFO: 2025-01-21 [2024-12-21 00:00:05] Production.INFO: getdaysdiff [2024-12-21 00:00:05] Production.INFO: +31 [2024-12-21 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (18,19,1,31,31,'RMScheduler',2024-12-21 00:00:05,1,0,,,0) [2024-12-21 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:00:06 [end_date_ymd] => 2024-12-21 00:00:06 [RateCDR] => 1 ) [2024-12-21 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-20 21:00:06' and `end` < '2024-12-21 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-21 00:00:19] Production.INFO: count ==961 [2024-12-21 00:00:20] Production.ERROR: pbx CDR StartTime 2024-12-20 21:00:06 - End Time 2024-12-21 00:00:06 [2024-12-21 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066344', 'tblTempUsageDetail_20' ) start [2024-12-21 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066344', 'tblTempUsageDetail_20' ) end [2024-12-21 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066344', 'tblTempVendorCDR_20' ) start [2024-12-21 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066344', 'tblTempVendorCDR_20' ) end [2024-12-21 00:00:20] Production.INFO: ProcessCDR(1,14066344,1,1,2) [2024-12-21 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066344', 'tblTempUsageDetail_20' ) start [2024-12-21 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066344', 'tblTempUsageDetail_20' ) end [2024-12-21 00:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:00:25] Production.INFO: ==300== Releasing lock... [2024-12-21 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:00:25] Production.INFO: 36.75 MB #Memory Used# [2024-12-21 00:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:01:04 [end_date_ymd] => 2024-12-21 00:01:04 [RateCDR] => 1 ) [2024-12-21 00:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:01:04' and `end` < '2024-12-21 00:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:01:17] Production.INFO: count ==950 [2024-12-21 00:01:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:01:04 - End Time 2024-12-21 00:01:04 [2024-12-21 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066349', 'tblTempUsageDetail_20' ) start [2024-12-21 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066349', 'tblTempUsageDetail_20' ) end [2024-12-21 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066349', 'tblTempVendorCDR_20' ) start [2024-12-21 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066349', 'tblTempVendorCDR_20' ) end [2024-12-21 00:01:17] Production.INFO: ProcessCDR(1,14066349,1,1,2) [2024-12-21 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066349', 'tblTempUsageDetail_20' ) start [2024-12-21 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066349', 'tblTempUsageDetail_20' ) end [2024-12-21 00:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:01:21] Production.INFO: ==418== Releasing lock... [2024-12-21 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:01:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-21 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:02:05 [end_date_ymd] => 2024-12-21 00:02:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:02:05' and `end` < '2024-12-21 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-21 00:02:17] Production.INFO: count ==338 [2024-12-21 00:02:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:02:05 - End Time 2024-12-21 00:02:05 [2024-12-21 00:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066354', 'tblTempUsageDetail_20' ) start [2024-12-21 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066354', 'tblTempUsageDetail_20' ) end [2024-12-21 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066354', 'tblTempVendorCDR_20' ) start [2024-12-21 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066354', 'tblTempVendorCDR_20' ) end [2024-12-21 00:02:17] Production.INFO: ProcessCDR(1,14066354,1,1,2) [2024-12-21 00:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066354', 'tblTempUsageDetail_20' ) start [2024-12-21 00:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066354', 'tblTempUsageDetail_20' ) end [2024-12-21 00:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:02:20] Production.INFO: ==507== Releasing lock... [2024-12-21 00:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:02:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:03:04 [end_date_ymd] => 2024-12-21 00:03:04 [RateCDR] => 1 ) [2024-12-21 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-20 21:03:04' and `end` < '2024-12-21 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-21 00:03:18] Production.INFO: count ==338 [2024-12-21 00:03:18] Production.ERROR: pbx CDR StartTime 2024-12-20 21:03:04 - End Time 2024-12-21 00:03:04 [2024-12-21 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066359', 'tblTempUsageDetail_20' ) start [2024-12-21 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066359', 'tblTempUsageDetail_20' ) end [2024-12-21 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066359', 'tblTempVendorCDR_20' ) start [2024-12-21 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066359', 'tblTempVendorCDR_20' ) end [2024-12-21 00:03:18] Production.INFO: ProcessCDR(1,14066359,1,1,2) [2024-12-21 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066359', 'tblTempUsageDetail_20' ) start [2024-12-21 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066359', 'tblTempUsageDetail_20' ) end [2024-12-21 00:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:03:21] Production.INFO: ==596== Releasing lock... [2024-12-21 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:03:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:04:05 [end_date_ymd] => 2024-12-21 00:04:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:04:05' and `end` < '2024-12-21 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-21 00:04:18] Production.INFO: count ==338 [2024-12-21 00:04:18] Production.ERROR: pbx CDR StartTime 2024-12-20 21:04:05 - End Time 2024-12-21 00:04:05 [2024-12-21 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066364', 'tblTempUsageDetail_20' ) start [2024-12-21 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066364', 'tblTempUsageDetail_20' ) end [2024-12-21 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066364', 'tblTempVendorCDR_20' ) start [2024-12-21 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066364', 'tblTempVendorCDR_20' ) end [2024-12-21 00:04:18] Production.INFO: ProcessCDR(1,14066364,1,1,2) [2024-12-21 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066364', 'tblTempUsageDetail_20' ) start [2024-12-21 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066364', 'tblTempUsageDetail_20' ) end [2024-12-21 00:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:04:22] Production.INFO: ==714== Releasing lock... [2024-12-21 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:04:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:05:04 [end_date_ymd] => 2024-12-21 00:05:04 [RateCDR] => 1 ) [2024-12-21 00:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:05:04' and `end` < '2024-12-21 00:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:05:16] Production.INFO: count ==338 [2024-12-21 00:05:16] Production.ERROR: pbx CDR StartTime 2024-12-20 21:05:04 - End Time 2024-12-21 00:05:04 [2024-12-21 00:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066369', 'tblTempUsageDetail_20' ) start [2024-12-21 00:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066369', 'tblTempUsageDetail_20' ) end [2024-12-21 00:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066369', 'tblTempVendorCDR_20' ) start [2024-12-21 00:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066369', 'tblTempVendorCDR_20' ) end [2024-12-21 00:05:16] Production.INFO: ProcessCDR(1,14066369,1,1,2) [2024-12-21 00:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066369', 'tblTempUsageDetail_20' ) start [2024-12-21 00:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066369', 'tblTempUsageDetail_20' ) end [2024-12-21 00:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:05:19] Production.INFO: ==803== Releasing lock... [2024-12-21 00:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:05:19] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:06:05 [end_date_ymd] => 2024-12-21 00:06:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:06:05' and `end` < '2024-12-21 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-21 00:06:17] Production.INFO: count ==341 [2024-12-21 00:06:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:06:05 - End Time 2024-12-21 00:06:05 [2024-12-21 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066374', 'tblTempUsageDetail_20' ) start [2024-12-21 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066374', 'tblTempUsageDetail_20' ) end [2024-12-21 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066374', 'tblTempVendorCDR_20' ) start [2024-12-21 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066374', 'tblTempVendorCDR_20' ) end [2024-12-21 00:06:17] Production.INFO: ProcessCDR(1,14066374,1,1,2) [2024-12-21 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066374', 'tblTempUsageDetail_20' ) start [2024-12-21 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066374', 'tblTempUsageDetail_20' ) end [2024-12-21 00:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:06:20] Production.INFO: ==889== Releasing lock... [2024-12-21 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:06:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 00:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:07:04 [end_date_ymd] => 2024-12-21 00:07:04 [RateCDR] => 1 ) [2024-12-21 00:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:07:04' and `end` < '2024-12-21 00:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:07:17] Production.INFO: count ==344 [2024-12-21 00:07:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:07:04 - End Time 2024-12-21 00:07:04 [2024-12-21 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066379', 'tblTempUsageDetail_20' ) start [2024-12-21 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066379', 'tblTempUsageDetail_20' ) end [2024-12-21 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066379', 'tblTempVendorCDR_20' ) start [2024-12-21 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066379', 'tblTempVendorCDR_20' ) end [2024-12-21 00:07:17] Production.INFO: ProcessCDR(1,14066379,1,1,2) [2024-12-21 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066379', 'tblTempUsageDetail_20' ) start [2024-12-21 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066379', 'tblTempUsageDetail_20' ) end [2024-12-21 00:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:07:20] Production.INFO: ==977== Releasing lock... [2024-12-21 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:07:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:08:05 [end_date_ymd] => 2024-12-21 00:08:05 [RateCDR] => 1 ) [2024-12-21 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:08:05' and `end` < '2024-12-21 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:08:17] Production.INFO: count ==343 [2024-12-21 00:08:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:08:05 - End Time 2024-12-21 00:08:05 [2024-12-21 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066384', 'tblTempUsageDetail_20' ) start [2024-12-21 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066384', 'tblTempUsageDetail_20' ) end [2024-12-21 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066384', 'tblTempVendorCDR_20' ) start [2024-12-21 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066384', 'tblTempVendorCDR_20' ) end [2024-12-21 00:08:17] Production.INFO: ProcessCDR(1,14066384,1,1,2) [2024-12-21 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066384', 'tblTempUsageDetail_20' ) start [2024-12-21 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066384', 'tblTempUsageDetail_20' ) end [2024-12-21 00:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:08:20] Production.INFO: ==1059== Releasing lock... [2024-12-21 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:08:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:09:05 [end_date_ymd] => 2024-12-21 00:09:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:09:05' and `end` < '2024-12-21 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-21 00:09:17] Production.INFO: count ==341 [2024-12-21 00:09:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:09:05 - End Time 2024-12-21 00:09:05 [2024-12-21 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066389', 'tblTempUsageDetail_20' ) start [2024-12-21 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066389', 'tblTempUsageDetail_20' ) end [2024-12-21 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066389', 'tblTempVendorCDR_20' ) start [2024-12-21 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066389', 'tblTempVendorCDR_20' ) end [2024-12-21 00:09:17] Production.INFO: ProcessCDR(1,14066389,1,1,2) [2024-12-21 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066389', 'tblTempUsageDetail_20' ) start [2024-12-21 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066389', 'tblTempUsageDetail_20' ) end [2024-12-21 00:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:09:22] Production.INFO: ==1153== Releasing lock... [2024-12-21 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:09:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:10:05 [end_date_ymd] => 2024-12-21 00:10:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:10:05' and `end` < '2024-12-21 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-21 00:10:17] Production.INFO: count ==346 [2024-12-21 00:10:18] Production.ERROR: pbx CDR StartTime 2024-12-20 21:10:05 - End Time 2024-12-21 00:10:05 [2024-12-21 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066394', 'tblTempUsageDetail_20' ) start [2024-12-21 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066394', 'tblTempUsageDetail_20' ) end [2024-12-21 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066394', 'tblTempVendorCDR_20' ) start [2024-12-21 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066394', 'tblTempVendorCDR_20' ) end [2024-12-21 00:10:18] Production.INFO: ProcessCDR(1,14066394,1,1,2) [2024-12-21 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066394', 'tblTempUsageDetail_20' ) start [2024-12-21 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066394', 'tblTempUsageDetail_20' ) end [2024-12-21 00:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:10:21] Production.INFO: ==1247== Releasing lock... [2024-12-21 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:10:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:11:05 [end_date_ymd] => 2024-12-21 00:11:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:11:05' and `end` < '2024-12-21 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-21 00:11:18] Production.INFO: count ==360 [2024-12-21 00:11:18] Production.ERROR: pbx CDR StartTime 2024-12-20 21:11:05 - End Time 2024-12-21 00:11:05 [2024-12-21 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066400', 'tblTempUsageDetail_20' ) start [2024-12-21 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066400', 'tblTempUsageDetail_20' ) end [2024-12-21 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066400', 'tblTempVendorCDR_20' ) start [2024-12-21 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066400', 'tblTempVendorCDR_20' ) end [2024-12-21 00:11:18] Production.INFO: ProcessCDR(1,14066400,1,1,2) [2024-12-21 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066400', 'tblTempUsageDetail_20' ) start [2024-12-21 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066400', 'tblTempUsageDetail_20' ) end [2024-12-21 00:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:11:21] Production.INFO: ==1340== Releasing lock... [2024-12-21 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:11:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:12:05 [end_date_ymd] => 2024-12-21 00:12:05 [RateCDR] => 1 ) [2024-12-21 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:12:05' and `end` < '2024-12-21 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:12:17] Production.INFO: count ==360 [2024-12-21 00:12:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:12:05 - End Time 2024-12-21 00:12:05 [2024-12-21 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066405', 'tblTempUsageDetail_20' ) start [2024-12-21 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066405', 'tblTempUsageDetail_20' ) end [2024-12-21 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066405', 'tblTempVendorCDR_20' ) start [2024-12-21 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066405', 'tblTempVendorCDR_20' ) end [2024-12-21 00:12:17] Production.INFO: ProcessCDR(1,14066405,1,1,2) [2024-12-21 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066405', 'tblTempUsageDetail_20' ) start [2024-12-21 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066405', 'tblTempUsageDetail_20' ) end [2024-12-21 00:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:12:20] Production.INFO: ==1431== Releasing lock... [2024-12-21 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:12:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:13:05 [end_date_ymd] => 2024-12-21 00:13:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:13:05' and `end` < '2024-12-21 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-21 00:13:17] Production.INFO: count ==359 [2024-12-21 00:13:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:13:05 - End Time 2024-12-21 00:13:05 [2024-12-21 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066410', 'tblTempUsageDetail_20' ) start [2024-12-21 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066410', 'tblTempUsageDetail_20' ) end [2024-12-21 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066410', 'tblTempVendorCDR_20' ) start [2024-12-21 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066410', 'tblTempVendorCDR_20' ) end [2024-12-21 00:13:17] Production.INFO: ProcessCDR(1,14066410,1,1,2) [2024-12-21 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066410', 'tblTempUsageDetail_20' ) start [2024-12-21 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066410', 'tblTempUsageDetail_20' ) end [2024-12-21 00:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:13:20] Production.INFO: ==1596== Releasing lock... [2024-12-21 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:13:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 00:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:14:04 [end_date_ymd] => 2024-12-21 00:14:04 [RateCDR] => 1 ) [2024-12-21 00:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:14:04' and `end` < '2024-12-21 00:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:14:17] Production.INFO: count ==358 [2024-12-21 00:14:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:14:04 - End Time 2024-12-21 00:14:04 [2024-12-21 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066415', 'tblTempUsageDetail_20' ) start [2024-12-21 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066415', 'tblTempUsageDetail_20' ) end [2024-12-21 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066415', 'tblTempVendorCDR_20' ) start [2024-12-21 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066415', 'tblTempVendorCDR_20' ) end [2024-12-21 00:14:17] Production.INFO: ProcessCDR(1,14066415,1,1,2) [2024-12-21 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066415', 'tblTempUsageDetail_20' ) start [2024-12-21 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066415', 'tblTempUsageDetail_20' ) end [2024-12-21 00:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:14:20] Production.INFO: ==1681== Releasing lock... [2024-12-21 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:14:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:15:04 [end_date_ymd] => 2024-12-21 00:15:04 [RateCDR] => 1 ) [2024-12-21 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-20 21:15:04' and `end` < '2024-12-21 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-21 00:15:16] Production.INFO: count ==356 [2024-12-21 00:15:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:15:04 - End Time 2024-12-21 00:15:04 [2024-12-21 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066420', 'tblTempUsageDetail_20' ) start [2024-12-21 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066420', 'tblTempUsageDetail_20' ) end [2024-12-21 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066420', 'tblTempVendorCDR_20' ) start [2024-12-21 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066420', 'tblTempVendorCDR_20' ) end [2024-12-21 00:15:17] Production.INFO: ProcessCDR(1,14066420,1,1,2) [2024-12-21 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066420', 'tblTempUsageDetail_20' ) start [2024-12-21 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066420', 'tblTempUsageDetail_20' ) end [2024-12-21 00:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:15:20] Production.INFO: ==1769== Releasing lock... [2024-12-21 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:15:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:16:05 [end_date_ymd] => 2024-12-21 00:16:05 [RateCDR] => 1 ) [2024-12-21 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:16:05' and `end` < '2024-12-21 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:16:17] Production.INFO: count ==355 [2024-12-21 00:16:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:16:05 - End Time 2024-12-21 00:16:05 [2024-12-21 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066425', 'tblTempUsageDetail_20' ) start [2024-12-21 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066425', 'tblTempUsageDetail_20' ) end [2024-12-21 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066425', 'tblTempVendorCDR_20' ) start [2024-12-21 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066425', 'tblTempVendorCDR_20' ) end [2024-12-21 00:16:17] Production.INFO: ProcessCDR(1,14066425,1,1,2) [2024-12-21 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066425', 'tblTempUsageDetail_20' ) start [2024-12-21 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066425', 'tblTempUsageDetail_20' ) end [2024-12-21 00:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:16:20] Production.INFO: ==1870== Releasing lock... [2024-12-21 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:16:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:17:04 [end_date_ymd] => 2024-12-21 00:17:04 [RateCDR] => 1 ) [2024-12-21 00:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:17:04' and `end` < '2024-12-21 00:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:17:16] Production.INFO: count ==356 [2024-12-21 00:17:16] Production.ERROR: pbx CDR StartTime 2024-12-20 21:17:04 - End Time 2024-12-21 00:17:04 [2024-12-21 00:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066430', 'tblTempUsageDetail_20' ) start [2024-12-21 00:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066430', 'tblTempUsageDetail_20' ) end [2024-12-21 00:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066430', 'tblTempVendorCDR_20' ) start [2024-12-21 00:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066430', 'tblTempVendorCDR_20' ) end [2024-12-21 00:17:16] Production.INFO: ProcessCDR(1,14066430,1,1,2) [2024-12-21 00:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066430', 'tblTempUsageDetail_20' ) start [2024-12-21 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066430', 'tblTempUsageDetail_20' ) end [2024-12-21 00:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:17:21] Production.INFO: ==1981== Releasing lock... [2024-12-21 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:17:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:18:05 [end_date_ymd] => 2024-12-21 00:18:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:18:05' and `end` < '2024-12-21 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-21 00:18:17] Production.INFO: count ==353 [2024-12-21 00:18:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:18:05 - End Time 2024-12-21 00:18:05 [2024-12-21 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066435', 'tblTempUsageDetail_20' ) start [2024-12-21 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066435', 'tblTempUsageDetail_20' ) end [2024-12-21 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066435', 'tblTempVendorCDR_20' ) start [2024-12-21 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066435', 'tblTempVendorCDR_20' ) end [2024-12-21 00:18:17] Production.INFO: ProcessCDR(1,14066435,1,1,2) [2024-12-21 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066435', 'tblTempUsageDetail_20' ) start [2024-12-21 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066435', 'tblTempUsageDetail_20' ) end [2024-12-21 00:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:18:20] Production.INFO: ==2084== Releasing lock... [2024-12-21 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:18:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:19:05 [end_date_ymd] => 2024-12-21 00:19:05 [RateCDR] => 1 ) [2024-12-21 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:19:05' and `end` < '2024-12-21 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:19:17] Production.INFO: count ==356 [2024-12-21 00:19:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:19:05 - End Time 2024-12-21 00:19:05 [2024-12-21 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066440', 'tblTempUsageDetail_20' ) start [2024-12-21 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066440', 'tblTempUsageDetail_20' ) end [2024-12-21 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066440', 'tblTempVendorCDR_20' ) start [2024-12-21 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066440', 'tblTempVendorCDR_20' ) end [2024-12-21 00:19:17] Production.INFO: ProcessCDR(1,14066440,1,1,2) [2024-12-21 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066440', 'tblTempUsageDetail_20' ) start [2024-12-21 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066440', 'tblTempUsageDetail_20' ) end [2024-12-21 00:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:19:22] Production.INFO: ==2172== Releasing lock... [2024-12-21 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:19:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:20:06 [end_date_ymd] => 2024-12-21 00:20:06 [RateCDR] => 1 ) [2024-12-21 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-20 21:20:06' and `end` < '2024-12-21 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-21 00:20:18] Production.INFO: count ==365 [2024-12-21 00:20:18] Production.ERROR: pbx CDR StartTime 2024-12-20 21:20:06 - End Time 2024-12-21 00:20:06 [2024-12-21 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066446', 'tblTempUsageDetail_20' ) start [2024-12-21 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066446', 'tblTempUsageDetail_20' ) end [2024-12-21 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066446', 'tblTempVendorCDR_20' ) start [2024-12-21 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066446', 'tblTempVendorCDR_20' ) end [2024-12-21 00:20:18] Production.INFO: ProcessCDR(1,14066446,1,1,2) [2024-12-21 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066446', 'tblTempUsageDetail_20' ) start [2024-12-21 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066446', 'tblTempUsageDetail_20' ) end [2024-12-21 00:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:20:21] Production.INFO: ==2276== Releasing lock... [2024-12-21 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:20:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-21 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:21:04 [end_date_ymd] => 2024-12-21 00:21:04 [RateCDR] => 1 ) [2024-12-21 00:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:21:04' and `end` < '2024-12-21 00:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:21:17] Production.INFO: count ==399 [2024-12-21 00:21:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:21:04 - End Time 2024-12-21 00:21:04 [2024-12-21 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066451', 'tblTempUsageDetail_20' ) start [2024-12-21 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066451', 'tblTempUsageDetail_20' ) end [2024-12-21 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066451', 'tblTempVendorCDR_20' ) start [2024-12-21 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066451', 'tblTempVendorCDR_20' ) end [2024-12-21 00:21:17] Production.INFO: ProcessCDR(1,14066451,1,1,2) [2024-12-21 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066451', 'tblTempUsageDetail_20' ) start [2024-12-21 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066451', 'tblTempUsageDetail_20' ) end [2024-12-21 00:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:21:20] Production.INFO: ==2374== Releasing lock... [2024-12-21 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:21:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:22:05 [end_date_ymd] => 2024-12-21 00:22:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:22:05' and `end` < '2024-12-21 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-21 00:22:17] Production.INFO: count ==399 [2024-12-21 00:22:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:22:05 - End Time 2024-12-21 00:22:05 [2024-12-21 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066456', 'tblTempUsageDetail_20' ) start [2024-12-21 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066456', 'tblTempUsageDetail_20' ) end [2024-12-21 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066456', 'tblTempVendorCDR_20' ) start [2024-12-21 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066456', 'tblTempVendorCDR_20' ) end [2024-12-21 00:22:17] Production.INFO: ProcessCDR(1,14066456,1,1,2) [2024-12-21 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066456', 'tblTempUsageDetail_20' ) start [2024-12-21 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066456', 'tblTempUsageDetail_20' ) end [2024-12-21 00:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:22:20] Production.INFO: ==2466== Releasing lock... [2024-12-21 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:22:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:23:05 [end_date_ymd] => 2024-12-21 00:23:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:23:05' and `end` < '2024-12-21 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-21 00:23:18] Production.INFO: count ==399 [2024-12-21 00:23:18] Production.ERROR: pbx CDR StartTime 2024-12-20 21:23:05 - End Time 2024-12-21 00:23:05 [2024-12-21 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066461', 'tblTempUsageDetail_20' ) start [2024-12-21 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066461', 'tblTempUsageDetail_20' ) end [2024-12-21 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066461', 'tblTempVendorCDR_20' ) start [2024-12-21 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066461', 'tblTempVendorCDR_20' ) end [2024-12-21 00:23:18] Production.INFO: ProcessCDR(1,14066461,1,1,2) [2024-12-21 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066461', 'tblTempUsageDetail_20' ) start [2024-12-21 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066461', 'tblTempUsageDetail_20' ) end [2024-12-21 00:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:23:21] Production.INFO: ==2568== Releasing lock... [2024-12-21 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:23:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:24:05 [end_date_ymd] => 2024-12-21 00:24:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:24:05' and `end` < '2024-12-21 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-21 00:24:17] Production.INFO: count ==403 [2024-12-21 00:24:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:24:05 - End Time 2024-12-21 00:24:05 [2024-12-21 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066466', 'tblTempUsageDetail_20' ) start [2024-12-21 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066466', 'tblTempUsageDetail_20' ) end [2024-12-21 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066466', 'tblTempVendorCDR_20' ) start [2024-12-21 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066466', 'tblTempVendorCDR_20' ) end [2024-12-21 00:24:17] Production.INFO: ProcessCDR(1,14066466,1,1,2) [2024-12-21 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066466', 'tblTempUsageDetail_20' ) start [2024-12-21 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066466', 'tblTempUsageDetail_20' ) end [2024-12-21 00:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:24:20] Production.INFO: ==2661== Releasing lock... [2024-12-21 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:24:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-21 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:25:05 [end_date_ymd] => 2024-12-21 00:25:05 [RateCDR] => 1 ) [2024-12-21 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:25:05' and `end` < '2024-12-21 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:25:17] Production.INFO: count ==401 [2024-12-21 00:25:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:25:05 - End Time 2024-12-21 00:25:05 [2024-12-21 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066471', 'tblTempUsageDetail_20' ) start [2024-12-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066471', 'tblTempUsageDetail_20' ) end [2024-12-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066471', 'tblTempVendorCDR_20' ) start [2024-12-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066471', 'tblTempVendorCDR_20' ) end [2024-12-21 00:25:17] Production.INFO: ProcessCDR(1,14066471,1,1,2) [2024-12-21 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066471', 'tblTempUsageDetail_20' ) start [2024-12-21 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066471', 'tblTempUsageDetail_20' ) end [2024-12-21 00:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:25:20] Production.INFO: ==2758== Releasing lock... [2024-12-21 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:25:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:26:05 [end_date_ymd] => 2024-12-21 00:26:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:26:05' and `end` < '2024-12-21 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-21 00:26:17] Production.INFO: count ==400 [2024-12-21 00:26:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:26:05 - End Time 2024-12-21 00:26:05 [2024-12-21 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066476', 'tblTempUsageDetail_20' ) start [2024-12-21 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066476', 'tblTempUsageDetail_20' ) end [2024-12-21 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066476', 'tblTempVendorCDR_20' ) start [2024-12-21 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066476', 'tblTempVendorCDR_20' ) end [2024-12-21 00:26:17] Production.INFO: ProcessCDR(1,14066476,1,1,2) [2024-12-21 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066476', 'tblTempUsageDetail_20' ) start [2024-12-21 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066476', 'tblTempUsageDetail_20' ) end [2024-12-21 00:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:26:21] Production.INFO: ==2849== Releasing lock... [2024-12-21 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:26:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:27:05 [end_date_ymd] => 2024-12-21 00:27:05 [RateCDR] => 1 ) [2024-12-21 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:27:05' and `end` < '2024-12-21 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:27:18] Production.INFO: count ==400 [2024-12-21 00:27:18] Production.ERROR: pbx CDR StartTime 2024-12-20 21:27:05 - End Time 2024-12-21 00:27:05 [2024-12-21 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066481', 'tblTempUsageDetail_20' ) start [2024-12-21 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066481', 'tblTempUsageDetail_20' ) end [2024-12-21 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066481', 'tblTempVendorCDR_20' ) start [2024-12-21 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066481', 'tblTempVendorCDR_20' ) end [2024-12-21 00:27:18] Production.INFO: ProcessCDR(1,14066481,1,1,2) [2024-12-21 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066481', 'tblTempUsageDetail_20' ) start [2024-12-21 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066481', 'tblTempUsageDetail_20' ) end [2024-12-21 00:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:27:22] Production.INFO: ==2932== Releasing lock... [2024-12-21 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:27:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:28:04 [end_date_ymd] => 2024-12-21 00:28:04 [RateCDR] => 1 ) [2024-12-21 00: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-20 21:28:04' and `end` < '2024-12-21 00: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-21 00:28:17] Production.INFO: count ==400 [2024-12-21 00:28:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:28:04 - End Time 2024-12-21 00:28:04 [2024-12-21 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066486', 'tblTempUsageDetail_20' ) start [2024-12-21 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066486', 'tblTempUsageDetail_20' ) end [2024-12-21 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066486', 'tblTempVendorCDR_20' ) start [2024-12-21 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066486', 'tblTempVendorCDR_20' ) end [2024-12-21 00:28:17] Production.INFO: ProcessCDR(1,14066486,1,1,2) [2024-12-21 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066486', 'tblTempUsageDetail_20' ) start [2024-12-21 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066486', 'tblTempUsageDetail_20' ) end [2024-12-21 00:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:28:20] Production.INFO: ==3013== Releasing lock... [2024-12-21 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:28:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:29:04 [end_date_ymd] => 2024-12-21 00:29:04 [RateCDR] => 1 ) [2024-12-21 00:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:29:04' and `end` < '2024-12-21 00:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:29:16] Production.INFO: count ==397 [2024-12-21 00:29:16] Production.ERROR: pbx CDR StartTime 2024-12-20 21:29:04 - End Time 2024-12-21 00:29:04 [2024-12-21 00:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066491', 'tblTempUsageDetail_20' ) start [2024-12-21 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066491', 'tblTempUsageDetail_20' ) end [2024-12-21 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066491', 'tblTempVendorCDR_20' ) start [2024-12-21 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066491', 'tblTempVendorCDR_20' ) end [2024-12-21 00:29:16] Production.INFO: ProcessCDR(1,14066491,1,1,2) [2024-12-21 00:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066491', 'tblTempUsageDetail_20' ) start [2024-12-21 00:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066491', 'tblTempUsageDetail_20' ) end [2024-12-21 00:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:29:20] Production.INFO: ==3139== Releasing lock... [2024-12-21 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:29:20] Production.INFO: 32 MB #Memory Used# [2024-12-21 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:30:06 [end_date_ymd] => 2024-12-21 00:30:06 [RateCDR] => 1 ) [2024-12-21 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:30:06' and `end` < '2024-12-21 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:30:18] Production.INFO: count ==401 [2024-12-21 00:30:18] Production.ERROR: pbx CDR StartTime 2024-12-20 21:30:06 - End Time 2024-12-21 00:30:06 [2024-12-21 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066497', 'tblTempUsageDetail_20' ) start [2024-12-21 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066497', 'tblTempUsageDetail_20' ) end [2024-12-21 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066497', 'tblTempVendorCDR_20' ) start [2024-12-21 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066497', 'tblTempVendorCDR_20' ) end [2024-12-21 00:30:18] Production.INFO: ProcessCDR(1,14066497,1,1,2) [2024-12-21 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066497', 'tblTempUsageDetail_20' ) start [2024-12-21 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066497', 'tblTempUsageDetail_20' ) end [2024-12-21 00:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:30:21] Production.INFO: ==3221== Releasing lock... [2024-12-21 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:30:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-21 00:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:31:04 [end_date_ymd] => 2024-12-21 00:31:04 [RateCDR] => 1 ) [2024-12-21 00:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:31:04' and `end` < '2024-12-21 00:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:31:17] Production.INFO: count ==436 [2024-12-21 00:31:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:31:04 - End Time 2024-12-21 00:31:04 [2024-12-21 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066502', 'tblTempUsageDetail_20' ) start [2024-12-21 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066502', 'tblTempUsageDetail_20' ) end [2024-12-21 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066502', 'tblTempVendorCDR_20' ) start [2024-12-21 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066502', 'tblTempVendorCDR_20' ) end [2024-12-21 00:31:17] Production.INFO: ProcessCDR(1,14066502,1,1,2) [2024-12-21 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066502', 'tblTempUsageDetail_20' ) start [2024-12-21 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066502', 'tblTempUsageDetail_20' ) end [2024-12-21 00:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:31:20] Production.INFO: ==3300== Releasing lock... [2024-12-21 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:31:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:32:05 [end_date_ymd] => 2024-12-21 00:32:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:32:05' and `end` < '2024-12-21 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-21 00:32:17] Production.INFO: count ==439 [2024-12-21 00:32:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:32:05 - End Time 2024-12-21 00:32:05 [2024-12-21 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066507', 'tblTempUsageDetail_20' ) start [2024-12-21 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066507', 'tblTempUsageDetail_20' ) end [2024-12-21 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066507', 'tblTempVendorCDR_20' ) start [2024-12-21 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066507', 'tblTempVendorCDR_20' ) end [2024-12-21 00:32:17] Production.INFO: ProcessCDR(1,14066507,1,1,2) [2024-12-21 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066507', 'tblTempUsageDetail_20' ) start [2024-12-21 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066507', 'tblTempUsageDetail_20' ) end [2024-12-21 00:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:32:20] Production.INFO: ==3382== Releasing lock... [2024-12-21 00:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:32:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:33:04 [end_date_ymd] => 2024-12-21 00:33:04 [RateCDR] => 1 ) [2024-12-21 00:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:33:04' and `end` < '2024-12-21 00:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:33:16] Production.INFO: count ==438 [2024-12-21 00:33:16] Production.ERROR: pbx CDR StartTime 2024-12-20 21:33:04 - End Time 2024-12-21 00:33:04 [2024-12-21 00:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066512', 'tblTempUsageDetail_20' ) start [2024-12-21 00:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066512', 'tblTempUsageDetail_20' ) end [2024-12-21 00:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066512', 'tblTempVendorCDR_20' ) start [2024-12-21 00:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066512', 'tblTempVendorCDR_20' ) end [2024-12-21 00:33:16] Production.INFO: ProcessCDR(1,14066512,1,1,2) [2024-12-21 00:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066512', 'tblTempUsageDetail_20' ) start [2024-12-21 00:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066512', 'tblTempUsageDetail_20' ) end [2024-12-21 00:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:33:19] Production.INFO: ==3461== Releasing lock... [2024-12-21 00:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:33:19] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:34:05 [end_date_ymd] => 2024-12-21 00:34:05 [RateCDR] => 1 ) [2024-12-21 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:34:05' and `end` < '2024-12-21 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:34:17] Production.INFO: count ==436 [2024-12-21 00:34:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:34:05 - End Time 2024-12-21 00:34:05 [2024-12-21 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066517', 'tblTempUsageDetail_20' ) start [2024-12-21 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066517', 'tblTempUsageDetail_20' ) end [2024-12-21 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066517', 'tblTempVendorCDR_20' ) start [2024-12-21 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066517', 'tblTempVendorCDR_20' ) end [2024-12-21 00:34:17] Production.INFO: ProcessCDR(1,14066517,1,1,2) [2024-12-21 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066517', 'tblTempUsageDetail_20' ) start [2024-12-21 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066517', 'tblTempUsageDetail_20' ) end [2024-12-21 00:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:34:20] Production.INFO: ==3546== Releasing lock... [2024-12-21 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:34:20] Production.INFO: 32 MB #Memory Used# [2024-12-21 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:35:06 [end_date_ymd] => 2024-12-21 00:35:06 [RateCDR] => 1 ) [2024-12-21 00:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:35:06' and `end` < '2024-12-21 00:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:35:18] Production.INFO: count ==437 [2024-12-21 00:35:18] Production.ERROR: pbx CDR StartTime 2024-12-20 21:35:06 - End Time 2024-12-21 00:35:06 [2024-12-21 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066522', 'tblTempUsageDetail_20' ) start [2024-12-21 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066522', 'tblTempUsageDetail_20' ) end [2024-12-21 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066522', 'tblTempVendorCDR_20' ) start [2024-12-21 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066522', 'tblTempVendorCDR_20' ) end [2024-12-21 00:35:18] Production.INFO: ProcessCDR(1,14066522,1,1,2) [2024-12-21 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066522', 'tblTempUsageDetail_20' ) start [2024-12-21 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066522', 'tblTempUsageDetail_20' ) end [2024-12-21 00:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:35:22] Production.INFO: ==3630== Releasing lock... [2024-12-21 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:35:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:36:04 [end_date_ymd] => 2024-12-21 00:36:04 [RateCDR] => 1 ) [2024-12-21 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-20 21:36:04' and `end` < '2024-12-21 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-21 00:36:17] Production.INFO: count ==437 [2024-12-21 00:36:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:36:04 - End Time 2024-12-21 00:36:04 [2024-12-21 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066527', 'tblTempUsageDetail_20' ) start [2024-12-21 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066527', 'tblTempUsageDetail_20' ) end [2024-12-21 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066527', 'tblTempVendorCDR_20' ) start [2024-12-21 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066527', 'tblTempVendorCDR_20' ) end [2024-12-21 00:36:17] Production.INFO: ProcessCDR(1,14066527,1,1,2) [2024-12-21 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066527', 'tblTempUsageDetail_20' ) start [2024-12-21 00:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066527', 'tblTempUsageDetail_20' ) end [2024-12-21 00:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:36:20] Production.INFO: ==3707== Releasing lock... [2024-12-21 00:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:36:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:37:05 [end_date_ymd] => 2024-12-21 00:37:05 [RateCDR] => 1 ) [2024-12-21 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:37:05' and `end` < '2024-12-21 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:37:18] Production.INFO: count ==436 [2024-12-21 00:37:18] Production.ERROR: pbx CDR StartTime 2024-12-20 21:37:05 - End Time 2024-12-21 00:37:05 [2024-12-21 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066532', 'tblTempUsageDetail_20' ) start [2024-12-21 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066532', 'tblTempUsageDetail_20' ) end [2024-12-21 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066532', 'tblTempVendorCDR_20' ) start [2024-12-21 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066532', 'tblTempVendorCDR_20' ) end [2024-12-21 00:37:18] Production.INFO: ProcessCDR(1,14066532,1,1,2) [2024-12-21 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066532', 'tblTempUsageDetail_20' ) start [2024-12-21 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066532', 'tblTempUsageDetail_20' ) end [2024-12-21 00:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:37:21] Production.INFO: ==3789== Releasing lock... [2024-12-21 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:37:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-21 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:38:05 [end_date_ymd] => 2024-12-21 00:38:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:38:05' and `end` < '2024-12-21 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-21 00:38:17] Production.INFO: count ==435 [2024-12-21 00:38:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:38:05 - End Time 2024-12-21 00:38:05 [2024-12-21 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066537', 'tblTempUsageDetail_20' ) start [2024-12-21 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066537', 'tblTempUsageDetail_20' ) end [2024-12-21 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066537', 'tblTempVendorCDR_20' ) start [2024-12-21 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066537', 'tblTempVendorCDR_20' ) end [2024-12-21 00:38:17] Production.INFO: ProcessCDR(1,14066537,1,1,2) [2024-12-21 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066537', 'tblTempUsageDetail_20' ) start [2024-12-21 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066537', 'tblTempUsageDetail_20' ) end [2024-12-21 00:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:38:20] Production.INFO: ==3868== Releasing lock... [2024-12-21 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:38:20] Production.INFO: 32 MB #Memory Used# [2024-12-21 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:39:05 [end_date_ymd] => 2024-12-21 00:39:05 [RateCDR] => 1 ) [2024-12-21 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:39:05' and `end` < '2024-12-21 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:39:17] Production.INFO: count ==431 [2024-12-21 00:39:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:39:05 - End Time 2024-12-21 00:39:05 [2024-12-21 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066542', 'tblTempUsageDetail_20' ) start [2024-12-21 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066542', 'tblTempUsageDetail_20' ) end [2024-12-21 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066542', 'tblTempVendorCDR_20' ) start [2024-12-21 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066542', 'tblTempVendorCDR_20' ) end [2024-12-21 00:39:17] Production.INFO: ProcessCDR(1,14066542,1,1,2) [2024-12-21 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066542', 'tblTempUsageDetail_20' ) start [2024-12-21 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066542', 'tblTempUsageDetail_20' ) end [2024-12-21 00:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:39:20] Production.INFO: ==3950== Releasing lock... [2024-12-21 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:39:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:40:05 [end_date_ymd] => 2024-12-21 00:40:05 [RateCDR] => 1 ) [2024-12-21 00:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:40:05' and `end` < '2024-12-21 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:40:17] Production.INFO: count ==438 [2024-12-21 00:40:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:40:05 - End Time 2024-12-21 00:40:05 [2024-12-21 00:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066548', 'tblTempUsageDetail_20' ) start [2024-12-21 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066548', 'tblTempUsageDetail_20' ) end [2024-12-21 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066548', 'tblTempVendorCDR_20' ) start [2024-12-21 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066548', 'tblTempVendorCDR_20' ) end [2024-12-21 00:40:17] Production.INFO: ProcessCDR(1,14066548,1,1,2) [2024-12-21 00:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066548', 'tblTempUsageDetail_20' ) start [2024-12-21 00:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066548', 'tblTempUsageDetail_20' ) end [2024-12-21 00:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:40:21] Production.INFO: ==4035== Releasing lock... [2024-12-21 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:40:21] Production.INFO: 32 MB #Memory Used# [2024-12-21 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:41:05 [end_date_ymd] => 2024-12-21 00:41:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:41:05' and `end` < '2024-12-21 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-21 00:41:17] Production.INFO: count ==453 [2024-12-21 00:41:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:41:05 - End Time 2024-12-21 00:41:05 [2024-12-21 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066553', 'tblTempUsageDetail_20' ) start [2024-12-21 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066553', 'tblTempUsageDetail_20' ) end [2024-12-21 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066553', 'tblTempVendorCDR_20' ) start [2024-12-21 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066553', 'tblTempVendorCDR_20' ) end [2024-12-21 00:41:17] Production.INFO: ProcessCDR(1,14066553,1,1,2) [2024-12-21 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066553', 'tblTempUsageDetail_20' ) start [2024-12-21 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066553', 'tblTempUsageDetail_20' ) end [2024-12-21 00:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:41:21] Production.INFO: ==4118== Releasing lock... [2024-12-21 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:41:21] Production.INFO: 32 MB #Memory Used# [2024-12-21 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:42:05 [end_date_ymd] => 2024-12-21 00:42:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:42:05' and `end` < '2024-12-21 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-21 00:42:17] Production.INFO: count ==453 [2024-12-21 00:42:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:42:05 - End Time 2024-12-21 00:42:05 [2024-12-21 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066558', 'tblTempUsageDetail_20' ) start [2024-12-21 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066558', 'tblTempUsageDetail_20' ) end [2024-12-21 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066558', 'tblTempVendorCDR_20' ) start [2024-12-21 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066558', 'tblTempVendorCDR_20' ) end [2024-12-21 00:42:17] Production.INFO: ProcessCDR(1,14066558,1,1,2) [2024-12-21 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066558', 'tblTempUsageDetail_20' ) start [2024-12-21 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066558', 'tblTempUsageDetail_20' ) end [2024-12-21 00:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:42:21] Production.INFO: ==4201== Releasing lock... [2024-12-21 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:42:21] Production.INFO: 32 MB #Memory Used# [2024-12-21 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:43:05 [end_date_ymd] => 2024-12-21 00:43:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:43:05' and `end` < '2024-12-21 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-21 00:43:17] Production.INFO: count ==451 [2024-12-21 00:43:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:43:05 - End Time 2024-12-21 00:43:05 [2024-12-21 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066563', 'tblTempUsageDetail_20' ) start [2024-12-21 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066563', 'tblTempUsageDetail_20' ) end [2024-12-21 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066563', 'tblTempVendorCDR_20' ) start [2024-12-21 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066563', 'tblTempVendorCDR_20' ) end [2024-12-21 00:43:17] Production.INFO: ProcessCDR(1,14066563,1,1,2) [2024-12-21 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066563', 'tblTempUsageDetail_20' ) start [2024-12-21 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066563', 'tblTempUsageDetail_20' ) end [2024-12-21 00:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:43:20] Production.INFO: ==4277== Releasing lock... [2024-12-21 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:43:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:44:05 [end_date_ymd] => 2024-12-21 00:44:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:44:05' and `end` < '2024-12-21 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-21 00:44:17] Production.INFO: count ==450 [2024-12-21 00:44:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:44:05 - End Time 2024-12-21 00:44:05 [2024-12-21 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066568', 'tblTempUsageDetail_20' ) start [2024-12-21 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066568', 'tblTempUsageDetail_20' ) end [2024-12-21 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066568', 'tblTempVendorCDR_20' ) start [2024-12-21 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066568', 'tblTempVendorCDR_20' ) end [2024-12-21 00:44:17] Production.INFO: ProcessCDR(1,14066568,1,1,2) [2024-12-21 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066568', 'tblTempUsageDetail_20' ) start [2024-12-21 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066568', 'tblTempUsageDetail_20' ) end [2024-12-21 00:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:44:20] Production.INFO: ==4358== Releasing lock... [2024-12-21 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:44:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:45:04 [end_date_ymd] => 2024-12-21 00:45:04 [RateCDR] => 1 ) [2024-12-21 00: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-20 21:45:04' and `end` < '2024-12-21 00: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-21 00:45:17] Production.INFO: count ==455 [2024-12-21 00:45:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:45:04 - End Time 2024-12-21 00:45:04 [2024-12-21 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066573', 'tblTempUsageDetail_20' ) start [2024-12-21 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066573', 'tblTempUsageDetail_20' ) end [2024-12-21 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066573', 'tblTempVendorCDR_20' ) start [2024-12-21 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066573', 'tblTempVendorCDR_20' ) end [2024-12-21 00:45:17] Production.INFO: ProcessCDR(1,14066573,1,1,2) [2024-12-21 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066573', 'tblTempUsageDetail_20' ) start [2024-12-21 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066573', 'tblTempUsageDetail_20' ) end [2024-12-21 00:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:45:21] Production.INFO: ==4483== Releasing lock... [2024-12-21 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:45:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-21 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:46:05 [end_date_ymd] => 2024-12-21 00:46:05 [RateCDR] => 1 ) [2024-12-21 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:46:05' and `end` < '2024-12-21 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:46:17] Production.INFO: count ==460 [2024-12-21 00:46:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:46:05 - End Time 2024-12-21 00:46:05 [2024-12-21 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066578', 'tblTempUsageDetail_20' ) start [2024-12-21 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066578', 'tblTempUsageDetail_20' ) end [2024-12-21 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066578', 'tblTempVendorCDR_20' ) start [2024-12-21 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066578', 'tblTempVendorCDR_20' ) end [2024-12-21 00:46:17] Production.INFO: ProcessCDR(1,14066578,1,1,2) [2024-12-21 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066578', 'tblTempUsageDetail_20' ) start [2024-12-21 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066578', 'tblTempUsageDetail_20' ) end [2024-12-21 00:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:46:21] Production.INFO: ==4565== Releasing lock... [2024-12-21 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:46:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:47:04 [end_date_ymd] => 2024-12-21 00:47:04 [RateCDR] => 1 ) [2024-12-21 00: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-20 21:47:04' and `end` < '2024-12-21 00: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-21 00:47:16] Production.INFO: count ==459 [2024-12-21 00:47:16] Production.ERROR: pbx CDR StartTime 2024-12-20 21:47:04 - End Time 2024-12-21 00:47:04 [2024-12-21 00:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066583', 'tblTempUsageDetail_20' ) start [2024-12-21 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066583', 'tblTempUsageDetail_20' ) end [2024-12-21 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066583', 'tblTempVendorCDR_20' ) start [2024-12-21 00:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066583', 'tblTempVendorCDR_20' ) end [2024-12-21 00:47:16] Production.INFO: ProcessCDR(1,14066583,1,1,2) [2024-12-21 00:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066583', 'tblTempUsageDetail_20' ) start [2024-12-21 00:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066583', 'tblTempUsageDetail_20' ) end [2024-12-21 00:47:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:47:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:47:19] Production.INFO: ==4652== Releasing lock... [2024-12-21 00:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:47:19] Production.INFO: 32 MB #Memory Used# [2024-12-21 00:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:48:04 [end_date_ymd] => 2024-12-21 00:48:04 [RateCDR] => 1 ) [2024-12-21 00: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-20 21:48:04' and `end` < '2024-12-21 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-21 00:48:17] Production.INFO: count ==458 [2024-12-21 00:48:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:48:04 - End Time 2024-12-21 00:48:04 [2024-12-21 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066588', 'tblTempUsageDetail_20' ) start [2024-12-21 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066588', 'tblTempUsageDetail_20' ) end [2024-12-21 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066588', 'tblTempVendorCDR_20' ) start [2024-12-21 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066588', 'tblTempVendorCDR_20' ) end [2024-12-21 00:48:17] Production.INFO: ProcessCDR(1,14066588,1,1,2) [2024-12-21 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066588', 'tblTempUsageDetail_20' ) start [2024-12-21 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066588', 'tblTempUsageDetail_20' ) end [2024-12-21 00:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:48:20] Production.INFO: ==4736== Releasing lock... [2024-12-21 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:48:20] Production.INFO: 31.75 MB #Memory Used# [2024-12-21 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:49:05 [end_date_ymd] => 2024-12-21 00:49:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:49:05' and `end` < '2024-12-21 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-21 00:49:17] Production.INFO: count ==459 [2024-12-21 00:49:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:49:05 - End Time 2024-12-21 00:49:05 [2024-12-21 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066593', 'tblTempUsageDetail_20' ) start [2024-12-21 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066593', 'tblTempUsageDetail_20' ) end [2024-12-21 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066593', 'tblTempVendorCDR_20' ) start [2024-12-21 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066593', 'tblTempVendorCDR_20' ) end [2024-12-21 00:49:17] Production.INFO: ProcessCDR(1,14066593,1,1,2) [2024-12-21 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066593', 'tblTempUsageDetail_20' ) start [2024-12-21 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066593', 'tblTempUsageDetail_20' ) end [2024-12-21 00:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:49:22] Production.INFO: ==4817== Releasing lock... [2024-12-21 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:49:22] Production.INFO: 32 MB #Memory Used# [2024-12-21 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:50:05 [end_date_ymd] => 2024-12-21 00:50:05 [RateCDR] => 1 ) [2024-12-21 00:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:50:05' and `end` < '2024-12-21 00:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:50:17] Production.INFO: count ==463 [2024-12-21 00:50:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:50:05 - End Time 2024-12-21 00:50:05 [2024-12-21 00:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066598', 'tblTempUsageDetail_20' ) start [2024-12-21 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066598', 'tblTempUsageDetail_20' ) end [2024-12-21 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066598', 'tblTempVendorCDR_20' ) start [2024-12-21 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066598', 'tblTempVendorCDR_20' ) end [2024-12-21 00:50:17] Production.INFO: ProcessCDR(1,14066598,1,1,2) [2024-12-21 00:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066598', 'tblTempUsageDetail_20' ) start [2024-12-21 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066598', 'tblTempUsageDetail_20' ) end [2024-12-21 00:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:50:21] Production.INFO: ==4904== Releasing lock... [2024-12-21 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:50:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:51:05 [end_date_ymd] => 2024-12-21 00:51:05 [RateCDR] => 1 ) [2024-12-21 00: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-20 21:51:05' and `end` < '2024-12-21 00: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-21 00:51:18] Production.INFO: count ==480 [2024-12-21 00:51:18] Production.ERROR: pbx CDR StartTime 2024-12-20 21:51:05 - End Time 2024-12-21 00:51:05 [2024-12-21 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066604', 'tblTempUsageDetail_20' ) start [2024-12-21 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066604', 'tblTempUsageDetail_20' ) end [2024-12-21 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066604', 'tblTempVendorCDR_20' ) start [2024-12-21 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066604', 'tblTempVendorCDR_20' ) end [2024-12-21 00:51:18] Production.INFO: ProcessCDR(1,14066604,1,1,2) [2024-12-21 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066604', 'tblTempUsageDetail_20' ) start [2024-12-21 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066604', 'tblTempUsageDetail_20' ) end [2024-12-21 00:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:51:22] Production.INFO: ==4987== Releasing lock... [2024-12-21 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:51:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 00:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:52:04 [end_date_ymd] => 2024-12-21 00:52:04 [RateCDR] => 1 ) [2024-12-21 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-20 21:52:04' and `end` < '2024-12-21 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-21 00:52:17] Production.INFO: count ==477 [2024-12-21 00:52:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:52:04 - End Time 2024-12-21 00:52:04 [2024-12-21 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066609', 'tblTempUsageDetail_20' ) start [2024-12-21 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066609', 'tblTempUsageDetail_20' ) end [2024-12-21 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066609', 'tblTempVendorCDR_20' ) start [2024-12-21 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066609', 'tblTempVendorCDR_20' ) end [2024-12-21 00:52:17] Production.INFO: ProcessCDR(1,14066609,1,1,2) [2024-12-21 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066609', 'tblTempUsageDetail_20' ) start [2024-12-21 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066609', 'tblTempUsageDetail_20' ) end [2024-12-21 00:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:52:20] Production.INFO: ==5065== Releasing lock... [2024-12-21 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:52:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:53:05 [end_date_ymd] => 2024-12-21 00:53:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:53:05' and `end` < '2024-12-21 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-21 00:53:17] Production.INFO: count ==481 [2024-12-21 00:53:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:53:05 - End Time 2024-12-21 00:53:05 [2024-12-21 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066614', 'tblTempUsageDetail_20' ) start [2024-12-21 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066614', 'tblTempUsageDetail_20' ) end [2024-12-21 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066614', 'tblTempVendorCDR_20' ) start [2024-12-21 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066614', 'tblTempVendorCDR_20' ) end [2024-12-21 00:53:17] Production.INFO: ProcessCDR(1,14066614,1,1,2) [2024-12-21 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066614', 'tblTempUsageDetail_20' ) start [2024-12-21 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066614', 'tblTempUsageDetail_20' ) end [2024-12-21 00:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:53:20] Production.INFO: ==5149== Releasing lock... [2024-12-21 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:53:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:54:05 [end_date_ymd] => 2024-12-21 00:54:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:54:05' and `end` < '2024-12-21 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-21 00:54:18] Production.INFO: count ==481 [2024-12-21 00:54:18] Production.ERROR: pbx CDR StartTime 2024-12-20 21:54:05 - End Time 2024-12-21 00:54:05 [2024-12-21 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066619', 'tblTempUsageDetail_20' ) start [2024-12-21 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066619', 'tblTempUsageDetail_20' ) end [2024-12-21 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066619', 'tblTempVendorCDR_20' ) start [2024-12-21 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066619', 'tblTempVendorCDR_20' ) end [2024-12-21 00:54:18] Production.INFO: ProcessCDR(1,14066619,1,1,2) [2024-12-21 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066619', 'tblTempUsageDetail_20' ) start [2024-12-21 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066619', 'tblTempUsageDetail_20' ) end [2024-12-21 00:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:54:21] Production.INFO: ==5234== Releasing lock... [2024-12-21 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:54:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:55:05 [end_date_ymd] => 2024-12-21 00:55:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:55:05' and `end` < '2024-12-21 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-21 00:55:17] Production.INFO: count ==481 [2024-12-21 00:55:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:55:05 - End Time 2024-12-21 00:55:05 [2024-12-21 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066624', 'tblTempUsageDetail_20' ) start [2024-12-21 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066624', 'tblTempUsageDetail_20' ) end [2024-12-21 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066624', 'tblTempVendorCDR_20' ) start [2024-12-21 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066624', 'tblTempVendorCDR_20' ) end [2024-12-21 00:55:17] Production.INFO: ProcessCDR(1,14066624,1,1,2) [2024-12-21 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066624', 'tblTempUsageDetail_20' ) start [2024-12-21 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066624', 'tblTempUsageDetail_20' ) end [2024-12-21 00:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:55:20] Production.INFO: ==5318== Releasing lock... [2024-12-21 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:55:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:56:05 [end_date_ymd] => 2024-12-21 00:56:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:56:05' and `end` < '2024-12-21 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-21 00:56:17] Production.INFO: count ==481 [2024-12-21 00:56:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:56:05 - End Time 2024-12-21 00:56:05 [2024-12-21 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066629', 'tblTempUsageDetail_20' ) start [2024-12-21 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066629', 'tblTempUsageDetail_20' ) end [2024-12-21 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066629', 'tblTempVendorCDR_20' ) start [2024-12-21 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066629', 'tblTempVendorCDR_20' ) end [2024-12-21 00:56:17] Production.INFO: ProcessCDR(1,14066629,1,1,2) [2024-12-21 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066629', 'tblTempUsageDetail_20' ) start [2024-12-21 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066629', 'tblTempUsageDetail_20' ) end [2024-12-21 00:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:56:20] Production.INFO: ==5394== Releasing lock... [2024-12-21 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:56:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:57:04 [end_date_ymd] => 2024-12-21 00:57:04 [RateCDR] => 1 ) [2024-12-21 00:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 21:57:04' and `end` < '2024-12-21 00:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 00:57:16] Production.INFO: count ==481 [2024-12-21 00:57:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:57:04 - End Time 2024-12-21 00:57:04 [2024-12-21 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066634', 'tblTempUsageDetail_20' ) start [2024-12-21 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066634', 'tblTempUsageDetail_20' ) end [2024-12-21 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066634', 'tblTempVendorCDR_20' ) start [2024-12-21 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066634', 'tblTempVendorCDR_20' ) end [2024-12-21 00:57:17] Production.INFO: ProcessCDR(1,14066634,1,1,2) [2024-12-21 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066634', 'tblTempUsageDetail_20' ) start [2024-12-21 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066634', 'tblTempUsageDetail_20' ) end [2024-12-21 00:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:57:20] Production.INFO: ==5474== Releasing lock... [2024-12-21 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:57:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:58:05 [end_date_ymd] => 2024-12-21 00:58:05 [RateCDR] => 1 ) [2024-12-21 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-20 21:58:05' and `end` < '2024-12-21 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-21 00:58:17] Production.INFO: count ==479 [2024-12-21 00:58:17] Production.ERROR: pbx CDR StartTime 2024-12-20 21:58:05 - End Time 2024-12-21 00:58:05 [2024-12-21 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066639', 'tblTempUsageDetail_20' ) start [2024-12-21 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066639', 'tblTempUsageDetail_20' ) end [2024-12-21 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066639', 'tblTempVendorCDR_20' ) start [2024-12-21 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066639', 'tblTempVendorCDR_20' ) end [2024-12-21 00:58:17] Production.INFO: ProcessCDR(1,14066639,1,1,2) [2024-12-21 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066639', 'tblTempUsageDetail_20' ) start [2024-12-21 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066639', 'tblTempUsageDetail_20' ) end [2024-12-21 00:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:58:20] Production.INFO: ==5554== Releasing lock... [2024-12-21 00:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:58:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 00:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 21:59:04 [end_date_ymd] => 2024-12-21 00:59:04 [RateCDR] => 1 ) [2024-12-21 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-20 21:59:04' and `end` < '2024-12-21 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-21 00:59:16] Production.INFO: count ==477 [2024-12-21 00:59:16] Production.ERROR: pbx CDR StartTime 2024-12-20 21:59:04 - End Time 2024-12-21 00:59:04 [2024-12-21 00:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066644', 'tblTempUsageDetail_20' ) start [2024-12-21 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066644', 'tblTempUsageDetail_20' ) end [2024-12-21 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066644', 'tblTempVendorCDR_20' ) start [2024-12-21 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066644', 'tblTempVendorCDR_20' ) end [2024-12-21 00:59:16] Production.INFO: ProcessCDR(1,14066644,1,1,2) [2024-12-21 00:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 00:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:59:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 00:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066644', 'tblTempUsageDetail_20' ) start [2024-12-21 00:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066644', 'tblTempUsageDetail_20' ) end [2024-12-21 00:59:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 00:59:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 00:59:19] Production.INFO: ==5631== Releasing lock... [2024-12-21 00:59:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 00:59:19] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:00:05 [end_date_ymd] => 2024-12-21 01:00:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:00:05' and `end` < '2024-12-21 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-21 01:00:17] Production.INFO: count ==482 [2024-12-21 01:00:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:00:05 - End Time 2024-12-21 01:00:05 [2024-12-21 01:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066649', 'tblTempUsageDetail_20' ) start [2024-12-21 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066649', 'tblTempUsageDetail_20' ) end [2024-12-21 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066649', 'tblTempVendorCDR_20' ) start [2024-12-21 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066649', 'tblTempVendorCDR_20' ) end [2024-12-21 01:00:17] Production.INFO: ProcessCDR(1,14066649,1,1,2) [2024-12-21 01:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066649', 'tblTempUsageDetail_20' ) start [2024-12-21 01:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066649', 'tblTempUsageDetail_20' ) end [2024-12-21 01:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:00:20] Production.INFO: ==5751== Releasing lock... [2024-12-21 01:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:00:20] Production.INFO: 32 MB #Memory Used# [2024-12-21 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:01:05 [end_date_ymd] => 2024-12-21 01:01:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:01:05' and `end` < '2024-12-21 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-21 01:01:18] Production.INFO: count ==515 [2024-12-21 01:01:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:01:05 - End Time 2024-12-21 01:01:05 [2024-12-21 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066655', 'tblTempUsageDetail_20' ) start [2024-12-21 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066655', 'tblTempUsageDetail_20' ) end [2024-12-21 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066655', 'tblTempVendorCDR_20' ) start [2024-12-21 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066655', 'tblTempVendorCDR_20' ) end [2024-12-21 01:01:18] Production.INFO: ProcessCDR(1,14066655,1,1,2) [2024-12-21 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066655', 'tblTempUsageDetail_20' ) start [2024-12-21 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066655', 'tblTempUsageDetail_20' ) end [2024-12-21 01:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:01:23] Production.INFO: ==5846== Releasing lock... [2024-12-21 01:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:01:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 01:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:02:04 [end_date_ymd] => 2024-12-21 01:02:04 [RateCDR] => 1 ) [2024-12-21 01: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-20 22:02:04' and `end` < '2024-12-21 01: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-21 01:02:16] Production.INFO: count ==515 [2024-12-21 01:02:16] Production.ERROR: pbx CDR StartTime 2024-12-20 22:02:04 - End Time 2024-12-21 01:02:04 [2024-12-21 01:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066660', 'tblTempUsageDetail_20' ) start [2024-12-21 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066660', 'tblTempUsageDetail_20' ) end [2024-12-21 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066660', 'tblTempVendorCDR_20' ) start [2024-12-21 01:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066660', 'tblTempVendorCDR_20' ) end [2024-12-21 01:02:16] Production.INFO: ProcessCDR(1,14066660,1,1,2) [2024-12-21 01:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:02:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:02:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:02:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066660', 'tblTempUsageDetail_20' ) start [2024-12-21 01:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066660', 'tblTempUsageDetail_20' ) end [2024-12-21 01:02:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:02:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:02:19] Production.INFO: ==5926== Releasing lock... [2024-12-21 01:02:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:02:19] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:03:05 [end_date_ymd] => 2024-12-21 01:03:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:03:05' and `end` < '2024-12-21 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-21 01:03:17] Production.INFO: count ==516 [2024-12-21 01:03:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:03:05 - End Time 2024-12-21 01:03:05 [2024-12-21 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066665', 'tblTempUsageDetail_20' ) start [2024-12-21 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066665', 'tblTempUsageDetail_20' ) end [2024-12-21 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066665', 'tblTempVendorCDR_20' ) start [2024-12-21 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066665', 'tblTempVendorCDR_20' ) end [2024-12-21 01:03:17] Production.INFO: ProcessCDR(1,14066665,1,1,2) [2024-12-21 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066665', 'tblTempUsageDetail_20' ) start [2024-12-21 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066665', 'tblTempUsageDetail_20' ) end [2024-12-21 01:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:03:20] Production.INFO: ==6008== Releasing lock... [2024-12-21 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:03:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:04:05 [end_date_ymd] => 2024-12-21 01:04:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:04:05' and `end` < '2024-12-21 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-21 01:04:17] Production.INFO: count ==512 [2024-12-21 01:04:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:04:05 - End Time 2024-12-21 01:04:05 [2024-12-21 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066670', 'tblTempUsageDetail_20' ) start [2024-12-21 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066670', 'tblTempUsageDetail_20' ) end [2024-12-21 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066670', 'tblTempVendorCDR_20' ) start [2024-12-21 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066670', 'tblTempVendorCDR_20' ) end [2024-12-21 01:04:17] Production.INFO: ProcessCDR(1,14066670,1,1,2) [2024-12-21 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066670', 'tblTempUsageDetail_20' ) start [2024-12-21 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066670', 'tblTempUsageDetail_20' ) end [2024-12-21 01:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:04:20] Production.INFO: ==6092== Releasing lock... [2024-12-21 01:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:04:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:05:05 [end_date_ymd] => 2024-12-21 01:05:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:05:05' and `end` < '2024-12-21 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-21 01:05:17] Production.INFO: count ==512 [2024-12-21 01:05:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:05:05 - End Time 2024-12-21 01:05:05 [2024-12-21 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066675', 'tblTempUsageDetail_20' ) start [2024-12-21 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066675', 'tblTempUsageDetail_20' ) end [2024-12-21 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066675', 'tblTempVendorCDR_20' ) start [2024-12-21 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066675', 'tblTempVendorCDR_20' ) end [2024-12-21 01:05:17] Production.INFO: ProcessCDR(1,14066675,1,1,2) [2024-12-21 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066675', 'tblTempUsageDetail_20' ) start [2024-12-21 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066675', 'tblTempUsageDetail_20' ) end [2024-12-21 01:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:05:20] Production.INFO: ==6174== Releasing lock... [2024-12-21 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:05:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:06:04 [end_date_ymd] => 2024-12-21 01:06:04 [RateCDR] => 1 ) [2024-12-21 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-20 22:06:04' and `end` < '2024-12-21 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-21 01:06:16] Production.INFO: count ==511 [2024-12-21 01:06:16] Production.ERROR: pbx CDR StartTime 2024-12-20 22:06:04 - End Time 2024-12-21 01:06:04 [2024-12-21 01:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066680', 'tblTempUsageDetail_20' ) start [2024-12-21 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066680', 'tblTempUsageDetail_20' ) end [2024-12-21 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066680', 'tblTempVendorCDR_20' ) start [2024-12-21 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066680', 'tblTempVendorCDR_20' ) end [2024-12-21 01:06:16] Production.INFO: ProcessCDR(1,14066680,1,1,2) [2024-12-21 01:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066680', 'tblTempUsageDetail_20' ) start [2024-12-21 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066680', 'tblTempUsageDetail_20' ) end [2024-12-21 01:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:06:20] Production.INFO: ==6250== Releasing lock... [2024-12-21 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:06:20] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:07:04 [end_date_ymd] => 2024-12-21 01:07:04 [RateCDR] => 1 ) [2024-12-21 01:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:07:04' and `end` < '2024-12-21 01:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:07:16] Production.INFO: count ==511 [2024-12-21 01:07:16] Production.ERROR: pbx CDR StartTime 2024-12-20 22:07:04 - End Time 2024-12-21 01:07:04 [2024-12-21 01:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066685', 'tblTempUsageDetail_20' ) start [2024-12-21 01:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066685', 'tblTempUsageDetail_20' ) end [2024-12-21 01:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066685', 'tblTempVendorCDR_20' ) start [2024-12-21 01:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066685', 'tblTempVendorCDR_20' ) end [2024-12-21 01:07:16] Production.INFO: ProcessCDR(1,14066685,1,1,2) [2024-12-21 01:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066685', 'tblTempUsageDetail_20' ) start [2024-12-21 01:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066685', 'tblTempUsageDetail_20' ) end [2024-12-21 01:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:07:19] Production.INFO: ==6327== Releasing lock... [2024-12-21 01:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:07:19] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:08:05 [end_date_ymd] => 2024-12-21 01:08:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:08:05' and `end` < '2024-12-21 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-21 01:08:17] Production.INFO: count ==509 [2024-12-21 01:08:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:08:05 - End Time 2024-12-21 01:08:05 [2024-12-21 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066690', 'tblTempUsageDetail_20' ) start [2024-12-21 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066690', 'tblTempUsageDetail_20' ) end [2024-12-21 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066690', 'tblTempVendorCDR_20' ) start [2024-12-21 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066690', 'tblTempVendorCDR_20' ) end [2024-12-21 01:08:17] Production.INFO: ProcessCDR(1,14066690,1,1,2) [2024-12-21 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066690', 'tblTempUsageDetail_20' ) start [2024-12-21 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066690', 'tblTempUsageDetail_20' ) end [2024-12-21 01:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:08:20] Production.INFO: ==6409== Releasing lock... [2024-12-21 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:08:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:09:04 [end_date_ymd] => 2024-12-21 01:09:04 [RateCDR] => 1 ) [2024-12-21 01:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:09:04' and `end` < '2024-12-21 01:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:09:16] Production.INFO: count ==509 [2024-12-21 01:09:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:09:04 - End Time 2024-12-21 01:09:04 [2024-12-21 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066695', 'tblTempUsageDetail_20' ) start [2024-12-21 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066695', 'tblTempUsageDetail_20' ) end [2024-12-21 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066695', 'tblTempVendorCDR_20' ) start [2024-12-21 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066695', 'tblTempVendorCDR_20' ) end [2024-12-21 01:09:17] Production.INFO: ProcessCDR(1,14066695,1,1,2) [2024-12-21 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066695', 'tblTempUsageDetail_20' ) start [2024-12-21 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066695', 'tblTempUsageDetail_20' ) end [2024-12-21 01:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:09:20] Production.INFO: ==6489== Releasing lock... [2024-12-21 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:09:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:10:05 [end_date_ymd] => 2024-12-21 01:10:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:10:05' and `end` < '2024-12-21 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-21 01:10:17] Production.INFO: count ==514 [2024-12-21 01:10:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:10:05 - End Time 2024-12-21 01:10:05 [2024-12-21 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066701', 'tblTempUsageDetail_20' ) start [2024-12-21 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066701', 'tblTempUsageDetail_20' ) end [2024-12-21 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066701', 'tblTempVendorCDR_20' ) start [2024-12-21 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066701', 'tblTempVendorCDR_20' ) end [2024-12-21 01:10:18] Production.INFO: ProcessCDR(1,14066701,1,1,2) [2024-12-21 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066701', 'tblTempUsageDetail_20' ) start [2024-12-21 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066701', 'tblTempUsageDetail_20' ) end [2024-12-21 01:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:10:21] Production.INFO: ==6569== Releasing lock... [2024-12-21 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:10:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:11:04 [end_date_ymd] => 2024-12-21 01:11:04 [RateCDR] => 1 ) [2024-12-21 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-20 22:11:04' and `end` < '2024-12-21 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-21 01:11:16] Production.INFO: count ==540 [2024-12-21 01:11:16] Production.ERROR: pbx CDR StartTime 2024-12-20 22:11:04 - End Time 2024-12-21 01:11:04 [2024-12-21 01:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066706', 'tblTempUsageDetail_20' ) start [2024-12-21 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066706', 'tblTempUsageDetail_20' ) end [2024-12-21 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066706', 'tblTempVendorCDR_20' ) start [2024-12-21 01:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066706', 'tblTempVendorCDR_20' ) end [2024-12-21 01:11:16] Production.INFO: ProcessCDR(1,14066706,1,1,2) [2024-12-21 01:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066706', 'tblTempUsageDetail_20' ) start [2024-12-21 01:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066706', 'tblTempUsageDetail_20' ) end [2024-12-21 01:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:11:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:11:19] Production.INFO: ==6648== Releasing lock... [2024-12-21 01:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:11:19] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:12:05 [end_date_ymd] => 2024-12-21 01:12:05 [RateCDR] => 1 ) [2024-12-21 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:12:05' and `end` < '2024-12-21 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:12:18] Production.INFO: count ==540 [2024-12-21 01:12:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:12:05 - End Time 2024-12-21 01:12:05 [2024-12-21 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066711', 'tblTempUsageDetail_20' ) start [2024-12-21 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066711', 'tblTempUsageDetail_20' ) end [2024-12-21 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066711', 'tblTempVendorCDR_20' ) start [2024-12-21 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066711', 'tblTempVendorCDR_20' ) end [2024-12-21 01:12:18] Production.INFO: ProcessCDR(1,14066711,1,1,2) [2024-12-21 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066711', 'tblTempUsageDetail_20' ) start [2024-12-21 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066711', 'tblTempUsageDetail_20' ) end [2024-12-21 01:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:12:21] Production.INFO: ==6727== Releasing lock... [2024-12-21 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:12:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:13:05 [end_date_ymd] => 2024-12-21 01:13:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:13:05' and `end` < '2024-12-21 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-21 01:13:18] Production.INFO: count ==540 [2024-12-21 01:13:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:13:05 - End Time 2024-12-21 01:13:05 [2024-12-21 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066716', 'tblTempUsageDetail_20' ) start [2024-12-21 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066716', 'tblTempUsageDetail_20' ) end [2024-12-21 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066716', 'tblTempVendorCDR_20' ) start [2024-12-21 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066716', 'tblTempVendorCDR_20' ) end [2024-12-21 01:13:18] Production.INFO: ProcessCDR(1,14066716,1,1,2) [2024-12-21 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066716', 'tblTempUsageDetail_20' ) start [2024-12-21 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066716', 'tblTempUsageDetail_20' ) end [2024-12-21 01:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:13:21] Production.INFO: ==6807== Releasing lock... [2024-12-21 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:13:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:14:04 [end_date_ymd] => 2024-12-21 01:14:04 [RateCDR] => 1 ) [2024-12-21 01: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-20 22:14:04' and `end` < '2024-12-21 01: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-21 01:14:16] Production.INFO: count ==537 [2024-12-21 01:14:16] Production.ERROR: pbx CDR StartTime 2024-12-20 22:14:04 - End Time 2024-12-21 01:14:04 [2024-12-21 01:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066721', 'tblTempUsageDetail_20' ) start [2024-12-21 01:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066721', 'tblTempUsageDetail_20' ) end [2024-12-21 01:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066721', 'tblTempVendorCDR_20' ) start [2024-12-21 01:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066721', 'tblTempVendorCDR_20' ) end [2024-12-21 01:14:16] Production.INFO: ProcessCDR(1,14066721,1,1,2) [2024-12-21 01:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:14:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066721', 'tblTempUsageDetail_20' ) start [2024-12-21 01:14:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066721', 'tblTempUsageDetail_20' ) end [2024-12-21 01:14:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:14:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:14:19] Production.INFO: ==6889== Releasing lock... [2024-12-21 01:14:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:14:19] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:15:05 [end_date_ymd] => 2024-12-21 01:15:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:15:05' and `end` < '2024-12-21 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-21 01:15:18] Production.INFO: count ==539 [2024-12-21 01:15:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:15:05 - End Time 2024-12-21 01:15:05 [2024-12-21 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066726', 'tblTempUsageDetail_20' ) start [2024-12-21 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066726', 'tblTempUsageDetail_20' ) end [2024-12-21 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066726', 'tblTempVendorCDR_20' ) start [2024-12-21 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066726', 'tblTempVendorCDR_20' ) end [2024-12-21 01:15:18] Production.INFO: ProcessCDR(1,14066726,1,1,2) [2024-12-21 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066726', 'tblTempUsageDetail_20' ) start [2024-12-21 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066726', 'tblTempUsageDetail_20' ) end [2024-12-21 01:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:15:22] Production.INFO: ==6970== Releasing lock... [2024-12-21 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:15:22] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:16:05 [end_date_ymd] => 2024-12-21 01:16:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:16:05' and `end` < '2024-12-21 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-21 01:16:18] Production.INFO: count ==539 [2024-12-21 01:16:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:16:05 - End Time 2024-12-21 01:16:05 [2024-12-21 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066731', 'tblTempUsageDetail_20' ) start [2024-12-21 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066731', 'tblTempUsageDetail_20' ) end [2024-12-21 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066731', 'tblTempVendorCDR_20' ) start [2024-12-21 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066731', 'tblTempVendorCDR_20' ) end [2024-12-21 01:16:18] Production.INFO: ProcessCDR(1,14066731,1,1,2) [2024-12-21 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066731', 'tblTempUsageDetail_20' ) start [2024-12-21 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066731', 'tblTempUsageDetail_20' ) end [2024-12-21 01:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:16:21] Production.INFO: ==7095== Releasing lock... [2024-12-21 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:16:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:17:04 [end_date_ymd] => 2024-12-21 01:17:04 [RateCDR] => 1 ) [2024-12-21 01:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:17:04' and `end` < '2024-12-21 01:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:17:16] Production.INFO: count ==543 [2024-12-21 01:17:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:17:04 - End Time 2024-12-21 01:17:04 [2024-12-21 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066736', 'tblTempUsageDetail_20' ) start [2024-12-21 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066736', 'tblTempUsageDetail_20' ) end [2024-12-21 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066736', 'tblTempVendorCDR_20' ) start [2024-12-21 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066736', 'tblTempVendorCDR_20' ) end [2024-12-21 01:17:17] Production.INFO: ProcessCDR(1,14066736,1,1,2) [2024-12-21 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066736', 'tblTempUsageDetail_20' ) start [2024-12-21 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066736', 'tblTempUsageDetail_20' ) end [2024-12-21 01:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:17:21] Production.INFO: ==7179== Releasing lock... [2024-12-21 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:17:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:18:05 [end_date_ymd] => 2024-12-21 01:18:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:18:05' and `end` < '2024-12-21 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-21 01:18:17] Production.INFO: count ==544 [2024-12-21 01:18:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:18:05 - End Time 2024-12-21 01:18:05 [2024-12-21 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066741', 'tblTempUsageDetail_20' ) start [2024-12-21 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066741', 'tblTempUsageDetail_20' ) end [2024-12-21 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066741', 'tblTempVendorCDR_20' ) start [2024-12-21 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066741', 'tblTempVendorCDR_20' ) end [2024-12-21 01:18:18] Production.INFO: ProcessCDR(1,14066741,1,1,2) [2024-12-21 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066741', 'tblTempUsageDetail_20' ) start [2024-12-21 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066741', 'tblTempUsageDetail_20' ) end [2024-12-21 01:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:18:22] Production.INFO: ==7257== Releasing lock... [2024-12-21 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:18:22] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:19:04 [end_date_ymd] => 2024-12-21 01:19:04 [RateCDR] => 1 ) [2024-12-21 01: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-20 22:19:04' and `end` < '2024-12-21 01: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-21 01:19:17] Production.INFO: count ==545 [2024-12-21 01:19:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:19:04 - End Time 2024-12-21 01:19:04 [2024-12-21 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066746', 'tblTempUsageDetail_20' ) start [2024-12-21 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066746', 'tblTempUsageDetail_20' ) end [2024-12-21 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066746', 'tblTempVendorCDR_20' ) start [2024-12-21 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066746', 'tblTempVendorCDR_20' ) end [2024-12-21 01:19:17] Production.INFO: ProcessCDR(1,14066746,1,1,2) [2024-12-21 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066746', 'tblTempUsageDetail_20' ) start [2024-12-21 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066746', 'tblTempUsageDetail_20' ) end [2024-12-21 01:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:19:21] Production.INFO: ==7338== Releasing lock... [2024-12-21 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:19:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:20:06 [end_date_ymd] => 2024-12-21 01:20:06 [RateCDR] => 1 ) [2024-12-21 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-20 22:20:06' and `end` < '2024-12-21 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-21 01:20:18] Production.INFO: count ==549 [2024-12-21 01:20:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:20:06 - End Time 2024-12-21 01:20:06 [2024-12-21 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066752', 'tblTempUsageDetail_20' ) start [2024-12-21 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066752', 'tblTempUsageDetail_20' ) end [2024-12-21 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066752', 'tblTempVendorCDR_20' ) start [2024-12-21 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066752', 'tblTempVendorCDR_20' ) end [2024-12-21 01:20:18] Production.INFO: ProcessCDR(1,14066752,1,1,2) [2024-12-21 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066752', 'tblTempUsageDetail_20' ) start [2024-12-21 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066752', 'tblTempUsageDetail_20' ) end [2024-12-21 01:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:20:21] Production.INFO: ==7423== Releasing lock... [2024-12-21 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:20:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:21:04 [end_date_ymd] => 2024-12-21 01:21:04 [RateCDR] => 1 ) [2024-12-21 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-20 22:21:04' and `end` < '2024-12-21 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-21 01:21:17] Production.INFO: count ==560 [2024-12-21 01:21:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:21:04 - End Time 2024-12-21 01:21:04 [2024-12-21 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066757', 'tblTempUsageDetail_20' ) start [2024-12-21 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066757', 'tblTempUsageDetail_20' ) end [2024-12-21 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066757', 'tblTempVendorCDR_20' ) start [2024-12-21 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066757', 'tblTempVendorCDR_20' ) end [2024-12-21 01:21:17] Production.INFO: ProcessCDR(1,14066757,1,1,2) [2024-12-21 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066757', 'tblTempUsageDetail_20' ) start [2024-12-21 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066757', 'tblTempUsageDetail_20' ) end [2024-12-21 01:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:21:20] Production.INFO: ==7501== Releasing lock... [2024-12-21 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:21:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:22:05 [end_date_ymd] => 2024-12-21 01:22:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:22:05' and `end` < '2024-12-21 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-21 01:22:17] Production.INFO: count ==551 [2024-12-21 01:22:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:22:05 - End Time 2024-12-21 01:22:05 [2024-12-21 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066762', 'tblTempUsageDetail_20' ) start [2024-12-21 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066762', 'tblTempUsageDetail_20' ) end [2024-12-21 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066762', 'tblTempVendorCDR_20' ) start [2024-12-21 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066762', 'tblTempVendorCDR_20' ) end [2024-12-21 01:22:17] Production.INFO: ProcessCDR(1,14066762,1,1,2) [2024-12-21 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066762', 'tblTempUsageDetail_20' ) start [2024-12-21 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066762', 'tblTempUsageDetail_20' ) end [2024-12-21 01:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:22:20] Production.INFO: ==7585== Releasing lock... [2024-12-21 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:22:20] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:23:04 [end_date_ymd] => 2024-12-21 01:23:04 [RateCDR] => 1 ) [2024-12-21 01:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:23:04' and `end` < '2024-12-21 01:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:23:16] Production.INFO: count ==548 [2024-12-21 01:23:16] Production.ERROR: pbx CDR StartTime 2024-12-20 22:23:04 - End Time 2024-12-21 01:23:04 [2024-12-21 01:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066767', 'tblTempUsageDetail_20' ) start [2024-12-21 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066767', 'tblTempUsageDetail_20' ) end [2024-12-21 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066767', 'tblTempVendorCDR_20' ) start [2024-12-21 01:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066767', 'tblTempVendorCDR_20' ) end [2024-12-21 01:23:16] Production.INFO: ProcessCDR(1,14066767,1,1,2) [2024-12-21 01:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066767', 'tblTempUsageDetail_20' ) start [2024-12-21 01:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066767', 'tblTempUsageDetail_20' ) end [2024-12-21 01:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:23:19] Production.INFO: ==7663== Releasing lock... [2024-12-21 01:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:23:19] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:24:05 [end_date_ymd] => 2024-12-21 01:24:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:24:05' and `end` < '2024-12-21 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-21 01:24:17] Production.INFO: count ==546 [2024-12-21 01:24:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:24:05 - End Time 2024-12-21 01:24:05 [2024-12-21 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066772', 'tblTempUsageDetail_20' ) start [2024-12-21 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066772', 'tblTempUsageDetail_20' ) end [2024-12-21 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066772', 'tblTempVendorCDR_20' ) start [2024-12-21 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066772', 'tblTempVendorCDR_20' ) end [2024-12-21 01:24:17] Production.INFO: ProcessCDR(1,14066772,1,1,2) [2024-12-21 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066772', 'tblTempUsageDetail_20' ) start [2024-12-21 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066772', 'tblTempUsageDetail_20' ) end [2024-12-21 01:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:24:20] Production.INFO: ==7742== Releasing lock... [2024-12-21 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:24:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:25:05 [end_date_ymd] => 2024-12-21 01:25:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:25:05' and `end` < '2024-12-21 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-21 01:25:17] Production.INFO: count ==548 [2024-12-21 01:25:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:25:05 - End Time 2024-12-21 01:25:05 [2024-12-21 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066777', 'tblTempUsageDetail_20' ) start [2024-12-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066777', 'tblTempUsageDetail_20' ) end [2024-12-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066777', 'tblTempVendorCDR_20' ) start [2024-12-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066777', 'tblTempVendorCDR_20' ) end [2024-12-21 01:25:17] Production.INFO: ProcessCDR(1,14066777,1,1,2) [2024-12-21 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066777', 'tblTempUsageDetail_20' ) start [2024-12-21 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066777', 'tblTempUsageDetail_20' ) end [2024-12-21 01:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:25:20] Production.INFO: ==7825== Releasing lock... [2024-12-21 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:25:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:26:04 [end_date_ymd] => 2024-12-21 01:26:04 [RateCDR] => 1 ) [2024-12-21 01:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:26:04' and `end` < '2024-12-21 01:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:26:16] Production.INFO: count ==551 [2024-12-21 01:26:16] Production.ERROR: pbx CDR StartTime 2024-12-20 22:26:04 - End Time 2024-12-21 01:26:04 [2024-12-21 01:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066782', 'tblTempUsageDetail_20' ) start [2024-12-21 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066782', 'tblTempUsageDetail_20' ) end [2024-12-21 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066782', 'tblTempVendorCDR_20' ) start [2024-12-21 01:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066782', 'tblTempVendorCDR_20' ) end [2024-12-21 01:26:16] Production.INFO: ProcessCDR(1,14066782,1,1,2) [2024-12-21 01:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066782', 'tblTempUsageDetail_20' ) start [2024-12-21 01:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066782', 'tblTempUsageDetail_20' ) end [2024-12-21 01:26:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:26:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:26:19] Production.INFO: ==7902== Releasing lock... [2024-12-21 01:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:26:19] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:27:05 [end_date_ymd] => 2024-12-21 01:27:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:27:05' and `end` < '2024-12-21 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-21 01:27:17] Production.INFO: count ==551 [2024-12-21 01:27:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:27:05 - End Time 2024-12-21 01:27:05 [2024-12-21 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066787', 'tblTempUsageDetail_20' ) start [2024-12-21 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066787', 'tblTempUsageDetail_20' ) end [2024-12-21 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066787', 'tblTempVendorCDR_20' ) start [2024-12-21 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066787', 'tblTempVendorCDR_20' ) end [2024-12-21 01:27:17] Production.INFO: ProcessCDR(1,14066787,1,1,2) [2024-12-21 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066787', 'tblTempUsageDetail_20' ) start [2024-12-21 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066787', 'tblTempUsageDetail_20' ) end [2024-12-21 01:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:27:20] Production.INFO: ==7981== Releasing lock... [2024-12-21 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:27:20] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:28:04 [end_date_ymd] => 2024-12-21 01:28:04 [RateCDR] => 1 ) [2024-12-21 01:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:28:04' and `end` < '2024-12-21 01:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:28:16] Production.INFO: count ==550 [2024-12-21 01:28:16] Production.ERROR: pbx CDR StartTime 2024-12-20 22:28:04 - End Time 2024-12-21 01:28:04 [2024-12-21 01:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066792', 'tblTempUsageDetail_20' ) start [2024-12-21 01:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066792', 'tblTempUsageDetail_20' ) end [2024-12-21 01:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066792', 'tblTempVendorCDR_20' ) start [2024-12-21 01:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066792', 'tblTempVendorCDR_20' ) end [2024-12-21 01:28:16] Production.INFO: ProcessCDR(1,14066792,1,1,2) [2024-12-21 01:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:28:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066792', 'tblTempUsageDetail_20' ) start [2024-12-21 01:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066792', 'tblTempUsageDetail_20' ) end [2024-12-21 01:28:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:28:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:28:19] Production.INFO: ==8063== Releasing lock... [2024-12-21 01:28:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:28:19] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:29:05 [end_date_ymd] => 2024-12-21 01:29:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:29:05' and `end` < '2024-12-21 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-21 01:29:17] Production.INFO: count ==544 [2024-12-21 01:29:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:29:05 - End Time 2024-12-21 01:29:05 [2024-12-21 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066797', 'tblTempUsageDetail_20' ) start [2024-12-21 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066797', 'tblTempUsageDetail_20' ) end [2024-12-21 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066797', 'tblTempVendorCDR_20' ) start [2024-12-21 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066797', 'tblTempVendorCDR_20' ) end [2024-12-21 01:29:17] Production.INFO: ProcessCDR(1,14066797,1,1,2) [2024-12-21 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066797', 'tblTempUsageDetail_20' ) start [2024-12-21 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066797', 'tblTempUsageDetail_20' ) end [2024-12-21 01:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:29:20] Production.INFO: ==8143== Releasing lock... [2024-12-21 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:29:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:30:06 [end_date_ymd] => 2024-12-21 01:30:06 [RateCDR] => 1 ) [2024-12-21 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-20 22:30:06' and `end` < '2024-12-21 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-21 01:30:18] Production.INFO: count ==552 [2024-12-21 01:30:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:30:06 - End Time 2024-12-21 01:30:06 [2024-12-21 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066803', 'tblTempUsageDetail_20' ) start [2024-12-21 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066803', 'tblTempUsageDetail_20' ) end [2024-12-21 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066803', 'tblTempVendorCDR_20' ) start [2024-12-21 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066803', 'tblTempVendorCDR_20' ) end [2024-12-21 01:30:18] Production.INFO: ProcessCDR(1,14066803,1,1,2) [2024-12-21 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066803', 'tblTempUsageDetail_20' ) start [2024-12-21 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066803', 'tblTempUsageDetail_20' ) end [2024-12-21 01:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:30:21] Production.INFO: ==8226== Releasing lock... [2024-12-21 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:30:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:31:05 [end_date_ymd] => 2024-12-21 01:31:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:31:05' and `end` < '2024-12-21 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-21 01:31:17] Production.INFO: count ==558 [2024-12-21 01:31:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:31:05 - End Time 2024-12-21 01:31:05 [2024-12-21 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066808', 'tblTempUsageDetail_20' ) start [2024-12-21 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066808', 'tblTempUsageDetail_20' ) end [2024-12-21 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066808', 'tblTempVendorCDR_20' ) start [2024-12-21 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066808', 'tblTempVendorCDR_20' ) end [2024-12-21 01:31:18] Production.INFO: ProcessCDR(1,14066808,1,1,2) [2024-12-21 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066808', 'tblTempUsageDetail_20' ) start [2024-12-21 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066808', 'tblTempUsageDetail_20' ) end [2024-12-21 01:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:31:21] Production.INFO: ==8310== Releasing lock... [2024-12-21 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:31:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:32:05 [end_date_ymd] => 2024-12-21 01:32:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:32:05' and `end` < '2024-12-21 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-21 01:32:17] Production.INFO: count ==559 [2024-12-21 01:32:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:32:05 - End Time 2024-12-21 01:32:05 [2024-12-21 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066813', 'tblTempUsageDetail_20' ) start [2024-12-21 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066813', 'tblTempUsageDetail_20' ) end [2024-12-21 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066813', 'tblTempVendorCDR_20' ) start [2024-12-21 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066813', 'tblTempVendorCDR_20' ) end [2024-12-21 01:32:17] Production.INFO: ProcessCDR(1,14066813,1,1,2) [2024-12-21 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066813', 'tblTempUsageDetail_20' ) start [2024-12-21 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066813', 'tblTempUsageDetail_20' ) end [2024-12-21 01:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:32:21] Production.INFO: ==8429== Releasing lock... [2024-12-21 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:32:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:33:04 [end_date_ymd] => 2024-12-21 01:33:04 [RateCDR] => 1 ) [2024-12-21 01:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:33:04' and `end` < '2024-12-21 01:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:33:18] Production.INFO: count ==565 [2024-12-21 01:33:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:33:04 - End Time 2024-12-21 01:33:04 [2024-12-21 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066818', 'tblTempUsageDetail_20' ) start [2024-12-21 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066818', 'tblTempUsageDetail_20' ) end [2024-12-21 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066818', 'tblTempVendorCDR_20' ) start [2024-12-21 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066818', 'tblTempVendorCDR_20' ) end [2024-12-21 01:33:18] Production.INFO: ProcessCDR(1,14066818,1,1,2) [2024-12-21 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066818', 'tblTempUsageDetail_20' ) start [2024-12-21 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066818', 'tblTempUsageDetail_20' ) end [2024-12-21 01:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:33:21] Production.INFO: ==8508== Releasing lock... [2024-12-21 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:33:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:34:05 [end_date_ymd] => 2024-12-21 01:34:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:34:05' and `end` < '2024-12-21 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-21 01:34:18] Production.INFO: count ==545 [2024-12-21 01:34:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:34:05 - End Time 2024-12-21 01:34:05 [2024-12-21 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066823', 'tblTempUsageDetail_20' ) start [2024-12-21 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066823', 'tblTempUsageDetail_20' ) end [2024-12-21 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066823', 'tblTempVendorCDR_20' ) start [2024-12-21 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066823', 'tblTempVendorCDR_20' ) end [2024-12-21 01:34:18] Production.INFO: ProcessCDR(1,14066823,1,1,2) [2024-12-21 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066823', 'tblTempUsageDetail_20' ) start [2024-12-21 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066823', 'tblTempUsageDetail_20' ) end [2024-12-21 01:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:34:21] Production.INFO: ==8589== Releasing lock... [2024-12-21 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:34:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:35:04 [end_date_ymd] => 2024-12-21 01:35:04 [RateCDR] => 1 ) [2024-12-21 01:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:35:04' and `end` < '2024-12-21 01:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:35:16] Production.INFO: count ==514 [2024-12-21 01:35:16] Production.ERROR: pbx CDR StartTime 2024-12-20 22:35:04 - End Time 2024-12-21 01:35:04 [2024-12-21 01:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066828', 'tblTempUsageDetail_20' ) start [2024-12-21 01:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066828', 'tblTempUsageDetail_20' ) end [2024-12-21 01:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066828', 'tblTempVendorCDR_20' ) start [2024-12-21 01:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066828', 'tblTempVendorCDR_20' ) end [2024-12-21 01:35:16] Production.INFO: ProcessCDR(1,14066828,1,1,2) [2024-12-21 01:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066828', 'tblTempUsageDetail_20' ) start [2024-12-21 01:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066828', 'tblTempUsageDetail_20' ) end [2024-12-21 01:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:35:19] Production.INFO: ==8667== Releasing lock... [2024-12-21 01:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:35:19] Production.INFO: 32 MB #Memory Used# [2024-12-21 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:36:05 [end_date_ymd] => 2024-12-21 01:36:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:36:05' and `end` < '2024-12-21 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-21 01:36:17] Production.INFO: count ==481 [2024-12-21 01:36:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:36:05 - End Time 2024-12-21 01:36:05 [2024-12-21 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066833', 'tblTempUsageDetail_20' ) start [2024-12-21 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066833', 'tblTempUsageDetail_20' ) end [2024-12-21 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066833', 'tblTempVendorCDR_20' ) start [2024-12-21 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066833', 'tblTempVendorCDR_20' ) end [2024-12-21 01:36:17] Production.INFO: ProcessCDR(1,14066833,1,1,2) [2024-12-21 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066833', 'tblTempUsageDetail_20' ) start [2024-12-21 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066833', 'tblTempUsageDetail_20' ) end [2024-12-21 01:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:36:20] Production.INFO: ==8751== Releasing lock... [2024-12-21 01:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:36:20] Production.INFO: 32 MB #Memory Used# [2024-12-21 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:37:05 [end_date_ymd] => 2024-12-21 01:37:05 [RateCDR] => 1 ) [2024-12-21 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:37:05' and `end` < '2024-12-21 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:37:17] Production.INFO: count ==448 [2024-12-21 01:37:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:37:05 - End Time 2024-12-21 01:37:05 [2024-12-21 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066838', 'tblTempUsageDetail_20' ) start [2024-12-21 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066838', 'tblTempUsageDetail_20' ) end [2024-12-21 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066838', 'tblTempVendorCDR_20' ) start [2024-12-21 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066838', 'tblTempVendorCDR_20' ) end [2024-12-21 01:37:17] Production.INFO: ProcessCDR(1,14066838,1,1,2) [2024-12-21 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066838', 'tblTempUsageDetail_20' ) start [2024-12-21 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066838', 'tblTempUsageDetail_20' ) end [2024-12-21 01:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:37:20] Production.INFO: ==8831== Releasing lock... [2024-12-21 01:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:37:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 01:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:38:04 [end_date_ymd] => 2024-12-21 01:38:04 [RateCDR] => 1 ) [2024-12-21 01: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-20 22:38:04' and `end` < '2024-12-21 01: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-21 01:38:16] Production.INFO: count ==420 [2024-12-21 01:38:16] Production.ERROR: pbx CDR StartTime 2024-12-20 22:38:04 - End Time 2024-12-21 01:38:04 [2024-12-21 01:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066843', 'tblTempUsageDetail_20' ) start [2024-12-21 01:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066843', 'tblTempUsageDetail_20' ) end [2024-12-21 01:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066843', 'tblTempVendorCDR_20' ) start [2024-12-21 01:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066843', 'tblTempVendorCDR_20' ) end [2024-12-21 01:38:16] Production.INFO: ProcessCDR(1,14066843,1,1,2) [2024-12-21 01:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066843', 'tblTempUsageDetail_20' ) start [2024-12-21 01:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066843', 'tblTempUsageDetail_20' ) end [2024-12-21 01:38:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:38:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:38:19] Production.INFO: ==8908== Releasing lock... [2024-12-21 01:38:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:38:19] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:39:05 [end_date_ymd] => 2024-12-21 01:39:05 [RateCDR] => 1 ) [2024-12-21 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:39:05' and `end` < '2024-12-21 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:39:18] Production.INFO: count ==420 [2024-12-21 01:39:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:39:05 - End Time 2024-12-21 01:39:05 [2024-12-21 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066848', 'tblTempUsageDetail_20' ) start [2024-12-21 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066848', 'tblTempUsageDetail_20' ) end [2024-12-21 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066848', 'tblTempVendorCDR_20' ) start [2024-12-21 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066848', 'tblTempVendorCDR_20' ) end [2024-12-21 01:39:18] Production.INFO: ProcessCDR(1,14066848,1,1,2) [2024-12-21 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066848', 'tblTempUsageDetail_20' ) start [2024-12-21 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066848', 'tblTempUsageDetail_20' ) end [2024-12-21 01:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:39:21] Production.INFO: ==8988== Releasing lock... [2024-12-21 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:39:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:40:06 [end_date_ymd] => 2024-12-21 01:40:06 [RateCDR] => 1 ) [2024-12-21 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:40:06' and `end` < '2024-12-21 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:40:19] Production.INFO: count ==428 [2024-12-21 01:40:19] Production.ERROR: pbx CDR StartTime 2024-12-20 22:40:06 - End Time 2024-12-21 01:40:06 [2024-12-21 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066853', 'tblTempUsageDetail_20' ) start [2024-12-21 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066853', 'tblTempUsageDetail_20' ) end [2024-12-21 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066853', 'tblTempVendorCDR_20' ) start [2024-12-21 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066853', 'tblTempVendorCDR_20' ) end [2024-12-21 01:40:19] Production.INFO: ProcessCDR(1,14066853,1,1,2) [2024-12-21 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066853', 'tblTempUsageDetail_20' ) start [2024-12-21 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066853', 'tblTempUsageDetail_20' ) end [2024-12-21 01:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:40:22] Production.INFO: ==9077== Releasing lock... [2024-12-21 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:40:22] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:41:05 [end_date_ymd] => 2024-12-21 01:41:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:41:05' and `end` < '2024-12-21 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-21 01:41:17] Production.INFO: count ==440 [2024-12-21 01:41:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:41:05 - End Time 2024-12-21 01:41:05 [2024-12-21 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066859', 'tblTempUsageDetail_20' ) start [2024-12-21 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066859', 'tblTempUsageDetail_20' ) end [2024-12-21 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066859', 'tblTempVendorCDR_20' ) start [2024-12-21 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066859', 'tblTempVendorCDR_20' ) end [2024-12-21 01:41:17] Production.INFO: ProcessCDR(1,14066859,1,1,2) [2024-12-21 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066859', 'tblTempUsageDetail_20' ) start [2024-12-21 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066859', 'tblTempUsageDetail_20' ) end [2024-12-21 01:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:41:21] Production.INFO: ==9157== Releasing lock... [2024-12-21 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:41:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:42:05 [end_date_ymd] => 2024-12-21 01:42:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:42:05' and `end` < '2024-12-21 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-21 01:42:17] Production.INFO: count ==440 [2024-12-21 01:42:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:42:05 - End Time 2024-12-21 01:42:05 [2024-12-21 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066864', 'tblTempUsageDetail_20' ) start [2024-12-21 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066864', 'tblTempUsageDetail_20' ) end [2024-12-21 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066864', 'tblTempVendorCDR_20' ) start [2024-12-21 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066864', 'tblTempVendorCDR_20' ) end [2024-12-21 01:42:17] Production.INFO: ProcessCDR(1,14066864,1,1,2) [2024-12-21 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066864', 'tblTempUsageDetail_20' ) start [2024-12-21 01:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066864', 'tblTempUsageDetail_20' ) end [2024-12-21 01:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:42:20] Production.INFO: ==9241== Releasing lock... [2024-12-21 01:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:42:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:43:05 [end_date_ymd] => 2024-12-21 01:43:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:43:05' and `end` < '2024-12-21 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-21 01:43:17] Production.INFO: count ==441 [2024-12-21 01:43:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:43:05 - End Time 2024-12-21 01:43:05 [2024-12-21 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066869', 'tblTempUsageDetail_20' ) start [2024-12-21 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066869', 'tblTempUsageDetail_20' ) end [2024-12-21 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066869', 'tblTempVendorCDR_20' ) start [2024-12-21 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066869', 'tblTempVendorCDR_20' ) end [2024-12-21 01:43:17] Production.INFO: ProcessCDR(1,14066869,1,1,2) [2024-12-21 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066869', 'tblTempUsageDetail_20' ) start [2024-12-21 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066869', 'tblTempUsageDetail_20' ) end [2024-12-21 01:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:43:21] Production.INFO: ==9342== Releasing lock... [2024-12-21 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:43:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:44:05 [end_date_ymd] => 2024-12-21 01:44:05 [RateCDR] => 1 ) [2024-12-21 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:44:05' and `end` < '2024-12-21 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:44:17] Production.INFO: count ==441 [2024-12-21 01:44:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:44:05 - End Time 2024-12-21 01:44:05 [2024-12-21 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066874', 'tblTempUsageDetail_20' ) start [2024-12-21 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066874', 'tblTempUsageDetail_20' ) end [2024-12-21 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066874', 'tblTempVendorCDR_20' ) start [2024-12-21 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066874', 'tblTempVendorCDR_20' ) end [2024-12-21 01:44:17] Production.INFO: ProcessCDR(1,14066874,1,1,2) [2024-12-21 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066874', 'tblTempUsageDetail_20' ) start [2024-12-21 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066874', 'tblTempUsageDetail_20' ) end [2024-12-21 01:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:44:20] Production.INFO: ==9436== Releasing lock... [2024-12-21 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:44:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:45:05 [end_date_ymd] => 2024-12-21 01:45:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:45:05' and `end` < '2024-12-21 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-21 01:45:17] Production.INFO: count ==442 [2024-12-21 01:45:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:45:05 - End Time 2024-12-21 01:45:05 [2024-12-21 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066879', 'tblTempUsageDetail_20' ) start [2024-12-21 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066879', 'tblTempUsageDetail_20' ) end [2024-12-21 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066879', 'tblTempVendorCDR_20' ) start [2024-12-21 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066879', 'tblTempVendorCDR_20' ) end [2024-12-21 01:45:17] Production.INFO: ProcessCDR(1,14066879,1,1,2) [2024-12-21 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066879', 'tblTempUsageDetail_20' ) start [2024-12-21 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066879', 'tblTempUsageDetail_20' ) end [2024-12-21 01:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:45:21] Production.INFO: ==9534== Releasing lock... [2024-12-21 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:45:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:46:05 [end_date_ymd] => 2024-12-21 01:46:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:46:05' and `end` < '2024-12-21 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-21 01:46:19] Production.INFO: count ==437 [2024-12-21 01:46:19] Production.ERROR: pbx CDR StartTime 2024-12-20 22:46:05 - End Time 2024-12-21 01:46:05 [2024-12-21 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066884', 'tblTempUsageDetail_20' ) start [2024-12-21 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066884', 'tblTempUsageDetail_20' ) end [2024-12-21 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066884', 'tblTempVendorCDR_20' ) start [2024-12-21 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066884', 'tblTempVendorCDR_20' ) end [2024-12-21 01:46:19] Production.INFO: ProcessCDR(1,14066884,1,1,2) [2024-12-21 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066884', 'tblTempUsageDetail_20' ) start [2024-12-21 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066884', 'tblTempUsageDetail_20' ) end [2024-12-21 01:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:46:22] Production.INFO: ==9631== Releasing lock... [2024-12-21 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:46:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:47:05 [end_date_ymd] => 2024-12-21 01:47:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:47:05' and `end` < '2024-12-21 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-21 01:47:17] Production.INFO: count ==436 [2024-12-21 01:47:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:47:05 - End Time 2024-12-21 01:47:05 [2024-12-21 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066889', 'tblTempUsageDetail_20' ) start [2024-12-21 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066889', 'tblTempUsageDetail_20' ) end [2024-12-21 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066889', 'tblTempVendorCDR_20' ) start [2024-12-21 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066889', 'tblTempVendorCDR_20' ) end [2024-12-21 01:47:17] Production.INFO: ProcessCDR(1,14066889,1,1,2) [2024-12-21 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066889', 'tblTempUsageDetail_20' ) start [2024-12-21 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066889', 'tblTempUsageDetail_20' ) end [2024-12-21 01:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:47:20] Production.INFO: ==9773== Releasing lock... [2024-12-21 01:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:47:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:48:04 [end_date_ymd] => 2024-12-21 01:48:04 [RateCDR] => 1 ) [2024-12-21 01:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:48:04' and `end` < '2024-12-21 01:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:48:17] Production.INFO: count ==435 [2024-12-21 01:48:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:48:04 - End Time 2024-12-21 01:48:04 [2024-12-21 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066894', 'tblTempUsageDetail_20' ) start [2024-12-21 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066894', 'tblTempUsageDetail_20' ) end [2024-12-21 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066894', 'tblTempVendorCDR_20' ) start [2024-12-21 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066894', 'tblTempVendorCDR_20' ) end [2024-12-21 01:48:17] Production.INFO: ProcessCDR(1,14066894,1,1,2) [2024-12-21 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066894', 'tblTempUsageDetail_20' ) start [2024-12-21 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066894', 'tblTempUsageDetail_20' ) end [2024-12-21 01:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:48:20] Production.INFO: ==9861== Releasing lock... [2024-12-21 01:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:48:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:49:05 [end_date_ymd] => 2024-12-21 01:49:05 [RateCDR] => 1 ) [2024-12-21 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:49:05' and `end` < '2024-12-21 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:49:17] Production.INFO: count ==435 [2024-12-21 01:49:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:49:05 - End Time 2024-12-21 01:49:05 [2024-12-21 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066899', 'tblTempUsageDetail_20' ) start [2024-12-21 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066899', 'tblTempUsageDetail_20' ) end [2024-12-21 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066899', 'tblTempVendorCDR_20' ) start [2024-12-21 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066899', 'tblTempVendorCDR_20' ) end [2024-12-21 01:49:17] Production.INFO: ProcessCDR(1,14066899,1,1,2) [2024-12-21 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066899', 'tblTempUsageDetail_20' ) start [2024-12-21 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066899', 'tblTempUsageDetail_20' ) end [2024-12-21 01:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:49:21] Production.INFO: ==9955== Releasing lock... [2024-12-21 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:49:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:50:05 [end_date_ymd] => 2024-12-21 01:50:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:50:05' and `end` < '2024-12-21 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-21 01:50:16] Production.INFO: count ==444 [2024-12-21 01:50:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:50:05 - End Time 2024-12-21 01:50:05 [2024-12-21 01:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066905', 'tblTempUsageDetail_20' ) start [2024-12-21 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066905', 'tblTempUsageDetail_20' ) end [2024-12-21 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066905', 'tblTempVendorCDR_20' ) start [2024-12-21 01:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066905', 'tblTempVendorCDR_20' ) end [2024-12-21 01:50:17] Production.INFO: ProcessCDR(1,14066905,1,1,2) [2024-12-21 01:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066905', 'tblTempUsageDetail_20' ) start [2024-12-21 01:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066905', 'tblTempUsageDetail_20' ) end [2024-12-21 01:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:50:20] Production.INFO: ==10066== Releasing lock... [2024-12-21 01:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:50:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:51:04 [end_date_ymd] => 2024-12-21 01:51:04 [RateCDR] => 1 ) [2024-12-21 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-20 22:51:04' and `end` < '2024-12-21 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-21 01:51:16] Production.INFO: count ==463 [2024-12-21 01:51:16] Production.ERROR: pbx CDR StartTime 2024-12-20 22:51:04 - End Time 2024-12-21 01:51:04 [2024-12-21 01:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066910', 'tblTempUsageDetail_20' ) start [2024-12-21 01:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066910', 'tblTempUsageDetail_20' ) end [2024-12-21 01:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066910', 'tblTempVendorCDR_20' ) start [2024-12-21 01:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066910', 'tblTempVendorCDR_20' ) end [2024-12-21 01:51:16] Production.INFO: ProcessCDR(1,14066910,1,1,2) [2024-12-21 01:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:51:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066910', 'tblTempUsageDetail_20' ) start [2024-12-21 01:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066910', 'tblTempUsageDetail_20' ) end [2024-12-21 01:51:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:51:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:51:19] Production.INFO: ==10165== Releasing lock... [2024-12-21 01:51:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:51:19] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:52:05 [end_date_ymd] => 2024-12-21 01:52:05 [RateCDR] => 1 ) [2024-12-21 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:52:05' and `end` < '2024-12-21 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:52:17] Production.INFO: count ==462 [2024-12-21 01:52:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:52:05 - End Time 2024-12-21 01:52:05 [2024-12-21 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066915', 'tblTempUsageDetail_20' ) start [2024-12-21 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066915', 'tblTempUsageDetail_20' ) end [2024-12-21 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066915', 'tblTempVendorCDR_20' ) start [2024-12-21 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066915', 'tblTempVendorCDR_20' ) end [2024-12-21 01:52:17] Production.INFO: ProcessCDR(1,14066915,1,1,2) [2024-12-21 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066915', 'tblTempUsageDetail_20' ) start [2024-12-21 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066915', 'tblTempUsageDetail_20' ) end [2024-12-21 01:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:52:20] Production.INFO: ==10265== Releasing lock... [2024-12-21 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:52:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:53:05 [end_date_ymd] => 2024-12-21 01:53:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:53:05' and `end` < '2024-12-21 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-21 01:53:18] Production.INFO: count ==460 [2024-12-21 01:53:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:53:05 - End Time 2024-12-21 01:53:05 [2024-12-21 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066920', 'tblTempUsageDetail_20' ) start [2024-12-21 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066920', 'tblTempUsageDetail_20' ) end [2024-12-21 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066920', 'tblTempVendorCDR_20' ) start [2024-12-21 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066920', 'tblTempVendorCDR_20' ) end [2024-12-21 01:53:18] Production.INFO: ProcessCDR(1,14066920,1,1,2) [2024-12-21 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066920', 'tblTempUsageDetail_20' ) start [2024-12-21 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066920', 'tblTempUsageDetail_20' ) end [2024-12-21 01:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:53:21] Production.INFO: ==10354== Releasing lock... [2024-12-21 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:53:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:54:05 [end_date_ymd] => 2024-12-21 01:54:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:54:05' and `end` < '2024-12-21 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-21 01:54:18] Production.INFO: count ==459 [2024-12-21 01:54:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:54:05 - End Time 2024-12-21 01:54:05 [2024-12-21 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066925', 'tblTempUsageDetail_20' ) start [2024-12-21 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066925', 'tblTempUsageDetail_20' ) end [2024-12-21 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066925', 'tblTempVendorCDR_20' ) start [2024-12-21 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066925', 'tblTempVendorCDR_20' ) end [2024-12-21 01:54:18] Production.INFO: ProcessCDR(1,14066925,1,1,2) [2024-12-21 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066925', 'tblTempUsageDetail_20' ) start [2024-12-21 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066925', 'tblTempUsageDetail_20' ) end [2024-12-21 01:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:54:21] Production.INFO: ==10447== Releasing lock... [2024-12-21 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:54:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:55:04 [end_date_ymd] => 2024-12-21 01:55:04 [RateCDR] => 1 ) [2024-12-21 01: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-20 22:55:04' and `end` < '2024-12-21 01: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-21 01:55:16] Production.INFO: count ==457 [2024-12-21 01:55:16] Production.ERROR: pbx CDR StartTime 2024-12-20 22:55:04 - End Time 2024-12-21 01:55:04 [2024-12-21 01:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066930', 'tblTempUsageDetail_20' ) start [2024-12-21 01:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066930', 'tblTempUsageDetail_20' ) end [2024-12-21 01:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066930', 'tblTempVendorCDR_20' ) start [2024-12-21 01:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066930', 'tblTempVendorCDR_20' ) end [2024-12-21 01:55:16] Production.INFO: ProcessCDR(1,14066930,1,1,2) [2024-12-21 01:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066930', 'tblTempUsageDetail_20' ) start [2024-12-21 01:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066930', 'tblTempUsageDetail_20' ) end [2024-12-21 01:55:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:55:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:55:19] Production.INFO: ==10547== Releasing lock... [2024-12-21 01:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:55:19] Production.INFO: 31 MB #Memory Used# [2024-12-21 01:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:56:04 [end_date_ymd] => 2024-12-21 01:56:04 [RateCDR] => 1 ) [2024-12-21 01:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 22:56:04' and `end` < '2024-12-21 01:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 01:56:16] Production.INFO: count ==455 [2024-12-21 01:56:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:56:04 - End Time 2024-12-21 01:56:04 [2024-12-21 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066935', 'tblTempUsageDetail_20' ) start [2024-12-21 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066935', 'tblTempUsageDetail_20' ) end [2024-12-21 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066935', 'tblTempVendorCDR_20' ) start [2024-12-21 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066935', 'tblTempVendorCDR_20' ) end [2024-12-21 01:56:17] Production.INFO: ProcessCDR(1,14066935,1,1,2) [2024-12-21 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066935', 'tblTempUsageDetail_20' ) start [2024-12-21 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066935', 'tblTempUsageDetail_20' ) end [2024-12-21 01:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:56:20] Production.INFO: ==10645== Releasing lock... [2024-12-21 01:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:56:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:57:05 [end_date_ymd] => 2024-12-21 01:57:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:57:05' and `end` < '2024-12-21 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-21 01:57:19] Production.INFO: count ==455 [2024-12-21 01:57:19] Production.ERROR: pbx CDR StartTime 2024-12-20 22:57:05 - End Time 2024-12-21 01:57:05 [2024-12-21 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066940', 'tblTempUsageDetail_20' ) start [2024-12-21 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066940', 'tblTempUsageDetail_20' ) end [2024-12-21 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066940', 'tblTempVendorCDR_20' ) start [2024-12-21 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066940', 'tblTempVendorCDR_20' ) end [2024-12-21 01:57:19] Production.INFO: ProcessCDR(1,14066940,1,1,2) [2024-12-21 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066940', 'tblTempUsageDetail_20' ) start [2024-12-21 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066940', 'tblTempUsageDetail_20' ) end [2024-12-21 01:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:57:23] Production.INFO: ==10736== Releasing lock... [2024-12-21 01:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:57:23] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:58:05 [end_date_ymd] => 2024-12-21 01:58:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:58:05' and `end` < '2024-12-21 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-21 01:58:18] Production.INFO: count ==447 [2024-12-21 01:58:18] Production.ERROR: pbx CDR StartTime 2024-12-20 22:58:05 - End Time 2024-12-21 01:58:05 [2024-12-21 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066945', 'tblTempUsageDetail_20' ) start [2024-12-21 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066945', 'tblTempUsageDetail_20' ) end [2024-12-21 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066945', 'tblTempVendorCDR_20' ) start [2024-12-21 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066945', 'tblTempVendorCDR_20' ) end [2024-12-21 01:58:18] Production.INFO: ProcessCDR(1,14066945,1,1,2) [2024-12-21 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066945', 'tblTempUsageDetail_20' ) start [2024-12-21 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066945', 'tblTempUsageDetail_20' ) end [2024-12-21 01:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:58:21] Production.INFO: ==10833== Releasing lock... [2024-12-21 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:58:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 22:59:05 [end_date_ymd] => 2024-12-21 01:59:05 [RateCDR] => 1 ) [2024-12-21 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-20 22:59:05' and `end` < '2024-12-21 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-21 01:59:17] Production.INFO: count ==446 [2024-12-21 01:59:17] Production.ERROR: pbx CDR StartTime 2024-12-20 22:59:05 - End Time 2024-12-21 01:59:05 [2024-12-21 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066950', 'tblTempUsageDetail_20' ) start [2024-12-21 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066950', 'tblTempUsageDetail_20' ) end [2024-12-21 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066950', 'tblTempVendorCDR_20' ) start [2024-12-21 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066950', 'tblTempVendorCDR_20' ) end [2024-12-21 01:59:17] Production.INFO: ProcessCDR(1,14066950,1,1,2) [2024-12-21 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066950', 'tblTempUsageDetail_20' ) start [2024-12-21 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066950', 'tblTempUsageDetail_20' ) end [2024-12-21 01:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 01:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 01:59:20] Production.INFO: ==10928== Releasing lock... [2024-12-21 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 01:59:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:00:05 [end_date_ymd] => 2024-12-21 02:00:05 [RateCDR] => 1 ) [2024-12-21 02: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-20 23:00:05' and `end` < '2024-12-21 02: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-21 02:00:17] Production.INFO: count ==452 [2024-12-21 02:00:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:00:05 - End Time 2024-12-21 02:00:05 [2024-12-21 02:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066955', 'tblTempUsageDetail_20' ) start [2024-12-21 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066955', 'tblTempUsageDetail_20' ) end [2024-12-21 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066955', 'tblTempVendorCDR_20' ) start [2024-12-21 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066955', 'tblTempVendorCDR_20' ) end [2024-12-21 02:00:17] Production.INFO: ProcessCDR(1,14066955,1,1,2) [2024-12-21 02:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066955', 'tblTempUsageDetail_20' ) start [2024-12-21 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066955', 'tblTempUsageDetail_20' ) end [2024-12-21 02:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:00:21] Production.INFO: ==11031== Releasing lock... [2024-12-21 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:00:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:01:05 [end_date_ymd] => 2024-12-21 02:01:05 [RateCDR] => 1 ) [2024-12-21 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:01:05' and `end` < '2024-12-21 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:01:20] Production.INFO: count ==452 [2024-12-21 02:01:20] Production.ERROR: pbx CDR StartTime 2024-12-20 23:01:05 - End Time 2024-12-21 02:01:05 [2024-12-21 02:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066961', 'tblTempUsageDetail_20' ) start [2024-12-21 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066961', 'tblTempUsageDetail_20' ) end [2024-12-21 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066961', 'tblTempVendorCDR_20' ) start [2024-12-21 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066961', 'tblTempVendorCDR_20' ) end [2024-12-21 02:01:20] Production.INFO: ProcessCDR(1,14066961,1,1,2) [2024-12-21 02:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066961', 'tblTempUsageDetail_20' ) start [2024-12-21 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066961', 'tblTempUsageDetail_20' ) end [2024-12-21 02:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:01:23] Production.INFO: ==11223== Releasing lock... [2024-12-21 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:01:23] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:02:05 [end_date_ymd] => 2024-12-21 02:02:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:02:05' and `end` < '2024-12-21 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-21 02:02:17] Production.INFO: count ==452 [2024-12-21 02:02:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:02:05 - End Time 2024-12-21 02:02:05 [2024-12-21 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066966', 'tblTempUsageDetail_20' ) start [2024-12-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066966', 'tblTempUsageDetail_20' ) end [2024-12-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066966', 'tblTempVendorCDR_20' ) start [2024-12-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066966', 'tblTempVendorCDR_20' ) end [2024-12-21 02:02:17] Production.INFO: ProcessCDR(1,14066966,1,1,2) [2024-12-21 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066966', 'tblTempUsageDetail_20' ) start [2024-12-21 02:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066966', 'tblTempUsageDetail_20' ) end [2024-12-21 02:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:02:20] Production.INFO: ==11320== Releasing lock... [2024-12-21 02:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:02:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:03:04 [end_date_ymd] => 2024-12-21 02:03:04 [RateCDR] => 1 ) [2024-12-21 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-20 23:03:04' and `end` < '2024-12-21 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-21 02:03:19] Production.INFO: count ==452 [2024-12-21 02:03:19] Production.ERROR: pbx CDR StartTime 2024-12-20 23:03:04 - End Time 2024-12-21 02:03:04 [2024-12-21 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066971', 'tblTempUsageDetail_20' ) start [2024-12-21 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066971', 'tblTempUsageDetail_20' ) end [2024-12-21 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066971', 'tblTempVendorCDR_20' ) start [2024-12-21 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066971', 'tblTempVendorCDR_20' ) end [2024-12-21 02:03:19] Production.INFO: ProcessCDR(1,14066971,1,1,2) [2024-12-21 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066971', 'tblTempUsageDetail_20' ) start [2024-12-21 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066971', 'tblTempUsageDetail_20' ) end [2024-12-21 02:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:03:22] Production.INFO: ==11447== Releasing lock... [2024-12-21 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:03:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:04:04 [end_date_ymd] => 2024-12-21 02:04:04 [RateCDR] => 1 ) [2024-12-21 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-20 23:04:04' and `end` < '2024-12-21 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-21 02:04:18] Production.INFO: count ==452 [2024-12-21 02:04:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:04:04 - End Time 2024-12-21 02:04:04 [2024-12-21 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066976', 'tblTempUsageDetail_20' ) start [2024-12-21 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066976', 'tblTempUsageDetail_20' ) end [2024-12-21 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066976', 'tblTempVendorCDR_20' ) start [2024-12-21 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066976', 'tblTempVendorCDR_20' ) end [2024-12-21 02:04:18] Production.INFO: ProcessCDR(1,14066976,1,1,2) [2024-12-21 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066976', 'tblTempUsageDetail_20' ) start [2024-12-21 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066976', 'tblTempUsageDetail_20' ) end [2024-12-21 02:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:04:21] Production.INFO: ==11542== Releasing lock... [2024-12-21 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:04:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:05:04 [end_date_ymd] => 2024-12-21 02:05:04 [RateCDR] => 1 ) [2024-12-21 02: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-20 23:05:04' and `end` < '2024-12-21 02: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-21 02:05:16] Production.INFO: count ==451 [2024-12-21 02:05:16] Production.ERROR: pbx CDR StartTime 2024-12-20 23:05:04 - End Time 2024-12-21 02:05:04 [2024-12-21 02:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066981', 'tblTempUsageDetail_20' ) start [2024-12-21 02:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066981', 'tblTempUsageDetail_20' ) end [2024-12-21 02:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066981', 'tblTempVendorCDR_20' ) start [2024-12-21 02:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066981', 'tblTempVendorCDR_20' ) end [2024-12-21 02:05:16] Production.INFO: ProcessCDR(1,14066981,1,1,2) [2024-12-21 02:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066981', 'tblTempUsageDetail_20' ) start [2024-12-21 02:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066981', 'tblTempUsageDetail_20' ) end [2024-12-21 02:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:05:19] Production.INFO: ==11633== Releasing lock... [2024-12-21 02:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:05:19] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:06:04 [end_date_ymd] => 2024-12-21 02:06:04 [RateCDR] => 1 ) [2024-12-21 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:06:04' and `end` < '2024-12-21 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-21 02:06:17] Production.INFO: count ==451 [2024-12-21 02:06:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:06:04 - End Time 2024-12-21 02:06:04 [2024-12-21 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066986', 'tblTempUsageDetail_20' ) start [2024-12-21 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066986', 'tblTempUsageDetail_20' ) end [2024-12-21 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066986', 'tblTempVendorCDR_20' ) start [2024-12-21 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066986', 'tblTempVendorCDR_20' ) end [2024-12-21 02:06:17] Production.INFO: ProcessCDR(1,14066986,1,1,2) [2024-12-21 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066986', 'tblTempUsageDetail_20' ) start [2024-12-21 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066986', 'tblTempUsageDetail_20' ) end [2024-12-21 02:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:06:21] Production.INFO: ==11710== Releasing lock... [2024-12-21 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:06:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:07:05 [end_date_ymd] => 2024-12-21 02:07:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:07:05' and `end` < '2024-12-21 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-21 02:07:17] Production.INFO: count ==450 [2024-12-21 02:07:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:07:05 - End Time 2024-12-21 02:07:05 [2024-12-21 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066991', 'tblTempUsageDetail_20' ) start [2024-12-21 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066991', 'tblTempUsageDetail_20' ) end [2024-12-21 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066991', 'tblTempVendorCDR_20' ) start [2024-12-21 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066991', 'tblTempVendorCDR_20' ) end [2024-12-21 02:07:17] Production.INFO: ProcessCDR(1,14066991,1,1,2) [2024-12-21 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066991', 'tblTempUsageDetail_20' ) start [2024-12-21 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066991', 'tblTempUsageDetail_20' ) end [2024-12-21 02:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:07:21] Production.INFO: ==11820== Releasing lock... [2024-12-21 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:07:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:08:04 [end_date_ymd] => 2024-12-21 02:08:04 [RateCDR] => 1 ) [2024-12-21 02:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:08:04' and `end` < '2024-12-21 02:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:08:18] Production.INFO: count ==451 [2024-12-21 02:08:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:08:04 - End Time 2024-12-21 02:08:04 [2024-12-21 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066996', 'tblTempUsageDetail_20' ) start [2024-12-21 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14066996', 'tblTempUsageDetail_20' ) end [2024-12-21 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066996', 'tblTempVendorCDR_20' ) start [2024-12-21 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14066996', 'tblTempVendorCDR_20' ) end [2024-12-21 02:08:18] Production.INFO: ProcessCDR(1,14066996,1,1,2) [2024-12-21 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14066996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14066996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14066996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14066996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066996', 'tblTempUsageDetail_20' ) start [2024-12-21 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14066996', 'tblTempUsageDetail_20' ) end [2024-12-21 02:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:08:21] Production.INFO: ==11900== Releasing lock... [2024-12-21 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:08:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:09:05 [end_date_ymd] => 2024-12-21 02:09:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:09:05' and `end` < '2024-12-21 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-21 02:09:17] Production.INFO: count ==450 [2024-12-21 02:09:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:09:05 - End Time 2024-12-21 02:09:05 [2024-12-21 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067001', 'tblTempUsageDetail_20' ) start [2024-12-21 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067001', 'tblTempUsageDetail_20' ) end [2024-12-21 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067001', 'tblTempVendorCDR_20' ) start [2024-12-21 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067001', 'tblTempVendorCDR_20' ) end [2024-12-21 02:09:17] Production.INFO: ProcessCDR(1,14067001,1,1,2) [2024-12-21 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067001', 'tblTempUsageDetail_20' ) start [2024-12-21 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067001', 'tblTempUsageDetail_20' ) end [2024-12-21 02:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:09:20] Production.INFO: ==11981== Releasing lock... [2024-12-21 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:09:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:10:05 [end_date_ymd] => 2024-12-21 02:10:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:10:05' and `end` < '2024-12-21 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-21 02:10:18] Production.INFO: count ==459 [2024-12-21 02:10:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:10:05 - End Time 2024-12-21 02:10:05 [2024-12-21 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067005', 'tblTempUsageDetail_20' ) start [2024-12-21 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067005', 'tblTempUsageDetail_20' ) end [2024-12-21 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067005', 'tblTempVendorCDR_20' ) start [2024-12-21 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067005', 'tblTempVendorCDR_20' ) end [2024-12-21 02:10:18] Production.INFO: ProcessCDR(1,14067005,1,1,2) [2024-12-21 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067005', 'tblTempUsageDetail_20' ) start [2024-12-21 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067005', 'tblTempUsageDetail_20' ) end [2024-12-21 02:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:10:21] Production.INFO: ==12062== Releasing lock... [2024-12-21 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:10:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:11:05 [end_date_ymd] => 2024-12-21 02:11:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:11:05' and `end` < '2024-12-21 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:11:17] Production.INFO: count ==469 [2024-12-21 02:11:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:11:05 - End Time 2024-12-21 02:11:05 [2024-12-21 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067012', 'tblTempUsageDetail_20' ) start [2024-12-21 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067012', 'tblTempUsageDetail_20' ) end [2024-12-21 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067012', 'tblTempVendorCDR_20' ) start [2024-12-21 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067012', 'tblTempVendorCDR_20' ) end [2024-12-21 02:11:17] Production.INFO: ProcessCDR(1,14067012,1,1,2) [2024-12-21 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067012', 'tblTempUsageDetail_20' ) start [2024-12-21 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067012', 'tblTempUsageDetail_20' ) end [2024-12-21 02:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:11:20] Production.INFO: ==12149== Releasing lock... [2024-12-21 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:11:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:12:05 [end_date_ymd] => 2024-12-21 02:12:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:12:05' and `end` < '2024-12-21 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-21 02:12:17] Production.INFO: count ==472 [2024-12-21 02:12:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:12:05 - End Time 2024-12-21 02:12:05 [2024-12-21 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067017', 'tblTempUsageDetail_20' ) start [2024-12-21 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067017', 'tblTempUsageDetail_20' ) end [2024-12-21 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067017', 'tblTempVendorCDR_20' ) start [2024-12-21 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067017', 'tblTempVendorCDR_20' ) end [2024-12-21 02:12:17] Production.INFO: ProcessCDR(1,14067017,1,1,2) [2024-12-21 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067017', 'tblTempUsageDetail_20' ) start [2024-12-21 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067017', 'tblTempUsageDetail_20' ) end [2024-12-21 02:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:12:20] Production.INFO: ==12230== Releasing lock... [2024-12-21 02:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:12:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:13:04 [end_date_ymd] => 2024-12-21 02:13:04 [RateCDR] => 1 ) [2024-12-21 02: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-20 23:13:04' and `end` < '2024-12-21 02: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-21 02:13:18] Production.INFO: count ==471 [2024-12-21 02:13:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:13:04 - End Time 2024-12-21 02:13:04 [2024-12-21 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067022', 'tblTempUsageDetail_20' ) start [2024-12-21 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067022', 'tblTempUsageDetail_20' ) end [2024-12-21 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067022', 'tblTempVendorCDR_20' ) start [2024-12-21 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067022', 'tblTempVendorCDR_20' ) end [2024-12-21 02:13:18] Production.INFO: ProcessCDR(1,14067022,1,1,2) [2024-12-21 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067022', 'tblTempUsageDetail_20' ) start [2024-12-21 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067022', 'tblTempUsageDetail_20' ) end [2024-12-21 02:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:13:21] Production.INFO: ==12308== Releasing lock... [2024-12-21 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:13:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:14:06 [end_date_ymd] => 2024-12-21 02:14:06 [RateCDR] => 1 ) [2024-12-21 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:14:06' and `end` < '2024-12-21 02:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:14:18] Production.INFO: count ==469 [2024-12-21 02:14:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:14:06 - End Time 2024-12-21 02:14:06 [2024-12-21 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067027', 'tblTempUsageDetail_20' ) start [2024-12-21 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067027', 'tblTempUsageDetail_20' ) end [2024-12-21 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067027', 'tblTempVendorCDR_20' ) start [2024-12-21 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067027', 'tblTempVendorCDR_20' ) end [2024-12-21 02:14:18] Production.INFO: ProcessCDR(1,14067027,1,1,2) [2024-12-21 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067027', 'tblTempUsageDetail_20' ) start [2024-12-21 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067027', 'tblTempUsageDetail_20' ) end [2024-12-21 02:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:14:22] Production.INFO: ==12393== Releasing lock... [2024-12-21 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:14:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:15:05 [end_date_ymd] => 2024-12-21 02:15:05 [RateCDR] => 1 ) [2024-12-21 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:15:05' and `end` < '2024-12-21 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:15:17] Production.INFO: count ==469 [2024-12-21 02:15:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:15:05 - End Time 2024-12-21 02:15:05 [2024-12-21 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067032', 'tblTempUsageDetail_20' ) start [2024-12-21 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067032', 'tblTempUsageDetail_20' ) end [2024-12-21 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067032', 'tblTempVendorCDR_20' ) start [2024-12-21 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067032', 'tblTempVendorCDR_20' ) end [2024-12-21 02:15:17] Production.INFO: ProcessCDR(1,14067032,1,1,2) [2024-12-21 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067032', 'tblTempUsageDetail_20' ) start [2024-12-21 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067032', 'tblTempUsageDetail_20' ) end [2024-12-21 02:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:15:20] Production.INFO: ==12471== Releasing lock... [2024-12-21 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:15:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:16:05 [end_date_ymd] => 2024-12-21 02:16:05 [RateCDR] => 1 ) [2024-12-21 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:16:05' and `end` < '2024-12-21 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:16:17] Production.INFO: count ==469 [2024-12-21 02:16:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:16:05 - End Time 2024-12-21 02:16:05 [2024-12-21 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067037', 'tblTempUsageDetail_20' ) start [2024-12-21 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067037', 'tblTempUsageDetail_20' ) end [2024-12-21 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067037', 'tblTempVendorCDR_20' ) start [2024-12-21 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067037', 'tblTempVendorCDR_20' ) end [2024-12-21 02:16:18] Production.INFO: ProcessCDR(1,14067037,1,1,2) [2024-12-21 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067037', 'tblTempUsageDetail_20' ) start [2024-12-21 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067037', 'tblTempUsageDetail_20' ) end [2024-12-21 02:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:16:21] Production.INFO: ==12550== Releasing lock... [2024-12-21 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:16:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:17:04 [end_date_ymd] => 2024-12-21 02:17:04 [RateCDR] => 1 ) [2024-12-21 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-20 23:17:04' and `end` < '2024-12-21 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-21 02:17:16] Production.INFO: count ==469 [2024-12-21 02:17:16] Production.ERROR: pbx CDR StartTime 2024-12-20 23:17:04 - End Time 2024-12-21 02:17:04 [2024-12-21 02:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067042', 'tblTempUsageDetail_20' ) start [2024-12-21 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067042', 'tblTempUsageDetail_20' ) end [2024-12-21 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067042', 'tblTempVendorCDR_20' ) start [2024-12-21 02:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067042', 'tblTempVendorCDR_20' ) end [2024-12-21 02:17:16] Production.INFO: ProcessCDR(1,14067042,1,1,2) [2024-12-21 02:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067042', 'tblTempUsageDetail_20' ) start [2024-12-21 02:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067042', 'tblTempUsageDetail_20' ) end [2024-12-21 02:17:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:17:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:17:19] Production.INFO: ==12629== Releasing lock... [2024-12-21 02:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:17:19] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:18:05 [end_date_ymd] => 2024-12-21 02:18:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:18:05' and `end` < '2024-12-21 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-21 02:18:17] Production.INFO: count ==467 [2024-12-21 02:18:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:18:05 - End Time 2024-12-21 02:18:05 [2024-12-21 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067047', 'tblTempUsageDetail_20' ) start [2024-12-21 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067047', 'tblTempUsageDetail_20' ) end [2024-12-21 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067047', 'tblTempVendorCDR_20' ) start [2024-12-21 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067047', 'tblTempVendorCDR_20' ) end [2024-12-21 02:18:17] Production.INFO: ProcessCDR(1,14067047,1,1,2) [2024-12-21 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067047', 'tblTempUsageDetail_20' ) start [2024-12-21 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067047', 'tblTempUsageDetail_20' ) end [2024-12-21 02:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:18:20] Production.INFO: ==12714== Releasing lock... [2024-12-21 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:18:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:19:04 [end_date_ymd] => 2024-12-21 02:19:04 [RateCDR] => 1 ) [2024-12-21 02: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-20 23:19:04' and `end` < '2024-12-21 02: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-21 02:19:17] Production.INFO: count ==467 [2024-12-21 02:19:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:19:04 - End Time 2024-12-21 02:19:04 [2024-12-21 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067052', 'tblTempUsageDetail_20' ) start [2024-12-21 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067052', 'tblTempUsageDetail_20' ) end [2024-12-21 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067052', 'tblTempVendorCDR_20' ) start [2024-12-21 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067052', 'tblTempVendorCDR_20' ) end [2024-12-21 02:19:17] Production.INFO: ProcessCDR(1,14067052,1,1,2) [2024-12-21 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067052', 'tblTempUsageDetail_20' ) start [2024-12-21 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067052', 'tblTempUsageDetail_20' ) end [2024-12-21 02:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:19:20] Production.INFO: ==12833== Releasing lock... [2024-12-21 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:19:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:20:05 [end_date_ymd] => 2024-12-21 02:20:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:20:05' and `end` < '2024-12-21 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-21 02:20:17] Production.INFO: count ==475 [2024-12-21 02:20:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:20:05 - End Time 2024-12-21 02:20:05 [2024-12-21 02:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067057', 'tblTempUsageDetail_20' ) start [2024-12-21 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067057', 'tblTempUsageDetail_20' ) end [2024-12-21 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067057', 'tblTempVendorCDR_20' ) start [2024-12-21 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067057', 'tblTempVendorCDR_20' ) end [2024-12-21 02:20:17] Production.INFO: ProcessCDR(1,14067057,1,1,2) [2024-12-21 02:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067057', 'tblTempUsageDetail_20' ) start [2024-12-21 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067057', 'tblTempUsageDetail_20' ) end [2024-12-21 02:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:20:21] Production.INFO: ==12915== Releasing lock... [2024-12-21 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:20:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:21:05 [end_date_ymd] => 2024-12-21 02:21:05 [RateCDR] => 1 ) [2024-12-21 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:21:05' and `end` < '2024-12-21 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:21:17] Production.INFO: count ==486 [2024-12-21 02:21:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:21:05 - End Time 2024-12-21 02:21:05 [2024-12-21 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067063', 'tblTempUsageDetail_20' ) start [2024-12-21 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067063', 'tblTempUsageDetail_20' ) end [2024-12-21 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067063', 'tblTempVendorCDR_20' ) start [2024-12-21 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067063', 'tblTempVendorCDR_20' ) end [2024-12-21 02:21:17] Production.INFO: ProcessCDR(1,14067063,1,1,2) [2024-12-21 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067063', 'tblTempUsageDetail_20' ) start [2024-12-21 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067063', 'tblTempUsageDetail_20' ) end [2024-12-21 02:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:21:20] Production.INFO: ==12990== Releasing lock... [2024-12-21 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:21:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:22:05 [end_date_ymd] => 2024-12-21 02:22:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:22:05' and `end` < '2024-12-21 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-21 02:22:18] Production.INFO: count ==486 [2024-12-21 02:22:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:22:05 - End Time 2024-12-21 02:22:05 [2024-12-21 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067068', 'tblTempUsageDetail_20' ) start [2024-12-21 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067068', 'tblTempUsageDetail_20' ) end [2024-12-21 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067068', 'tblTempVendorCDR_20' ) start [2024-12-21 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067068', 'tblTempVendorCDR_20' ) end [2024-12-21 02:22:18] Production.INFO: ProcessCDR(1,14067068,1,1,2) [2024-12-21 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067068', 'tblTempUsageDetail_20' ) start [2024-12-21 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067068', 'tblTempUsageDetail_20' ) end [2024-12-21 02:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:22:21] Production.INFO: ==13062== Releasing lock... [2024-12-21 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:22:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:23:05 [end_date_ymd] => 2024-12-21 02:23:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:23:05' and `end` < '2024-12-21 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-21 02:23:17] Production.INFO: count ==486 [2024-12-21 02:23:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:23:05 - End Time 2024-12-21 02:23:05 [2024-12-21 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067073', 'tblTempUsageDetail_20' ) start [2024-12-21 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067073', 'tblTempUsageDetail_20' ) end [2024-12-21 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067073', 'tblTempVendorCDR_20' ) start [2024-12-21 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067073', 'tblTempVendorCDR_20' ) end [2024-12-21 02:23:17] Production.INFO: ProcessCDR(1,14067073,1,1,2) [2024-12-21 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067073', 'tblTempUsageDetail_20' ) start [2024-12-21 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067073', 'tblTempUsageDetail_20' ) end [2024-12-21 02:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:23:20] Production.INFO: ==13138== Releasing lock... [2024-12-21 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:23:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:24:05 [end_date_ymd] => 2024-12-21 02:24:05 [RateCDR] => 1 ) [2024-12-21 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:24:05' and `end` < '2024-12-21 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:24:17] Production.INFO: count ==486 [2024-12-21 02:24:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:24:05 - End Time 2024-12-21 02:24:05 [2024-12-21 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067078', 'tblTempUsageDetail_20' ) start [2024-12-21 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067078', 'tblTempUsageDetail_20' ) end [2024-12-21 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067078', 'tblTempVendorCDR_20' ) start [2024-12-21 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067078', 'tblTempVendorCDR_20' ) end [2024-12-21 02:24:17] Production.INFO: ProcessCDR(1,14067078,1,1,2) [2024-12-21 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:24:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:24:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067078', 'tblTempUsageDetail_20' ) start [2024-12-21 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067078', 'tblTempUsageDetail_20' ) end [2024-12-21 02:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:24:20] Production.INFO: ==13212== Releasing lock... [2024-12-21 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:24:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:25:05 [end_date_ymd] => 2024-12-21 02:25:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:25:05' and `end` < '2024-12-21 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-21 02:25:18] Production.INFO: count ==484 [2024-12-21 02:25:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:25:05 - End Time 2024-12-21 02:25:05 [2024-12-21 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067083', 'tblTempUsageDetail_20' ) start [2024-12-21 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067083', 'tblTempUsageDetail_20' ) end [2024-12-21 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067083', 'tblTempVendorCDR_20' ) start [2024-12-21 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067083', 'tblTempVendorCDR_20' ) end [2024-12-21 02:25:18] Production.INFO: ProcessCDR(1,14067083,1,1,2) [2024-12-21 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067083', 'tblTempUsageDetail_20' ) start [2024-12-21 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067083', 'tblTempUsageDetail_20' ) end [2024-12-21 02:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:25:21] Production.INFO: ==13287== Releasing lock... [2024-12-21 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:25:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:26:04 [end_date_ymd] => 2024-12-21 02:26:04 [RateCDR] => 1 ) [2024-12-21 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-20 23:26:04' and `end` < '2024-12-21 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-21 02:26:16] Production.INFO: count ==484 [2024-12-21 02:26:16] Production.ERROR: pbx CDR StartTime 2024-12-20 23:26:04 - End Time 2024-12-21 02:26:04 [2024-12-21 02:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067088', 'tblTempUsageDetail_20' ) start [2024-12-21 02:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067088', 'tblTempUsageDetail_20' ) end [2024-12-21 02:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067088', 'tblTempVendorCDR_20' ) start [2024-12-21 02:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067088', 'tblTempVendorCDR_20' ) end [2024-12-21 02:26:16] Production.INFO: ProcessCDR(1,14067088,1,1,2) [2024-12-21 02:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067088', 'tblTempUsageDetail_20' ) start [2024-12-21 02:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067088', 'tblTempUsageDetail_20' ) end [2024-12-21 02:26:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:26:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:26:19] Production.INFO: ==13359== Releasing lock... [2024-12-21 02:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:26:19] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:27:04 [end_date_ymd] => 2024-12-21 02:27:04 [RateCDR] => 1 ) [2024-12-21 02:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:27:04' and `end` < '2024-12-21 02:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:27:16] Production.INFO: count ==484 [2024-12-21 02:27:16] Production.ERROR: pbx CDR StartTime 2024-12-20 23:27:04 - End Time 2024-12-21 02:27:04 [2024-12-21 02:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067093', 'tblTempUsageDetail_20' ) start [2024-12-21 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067093', 'tblTempUsageDetail_20' ) end [2024-12-21 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067093', 'tblTempVendorCDR_20' ) start [2024-12-21 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067093', 'tblTempVendorCDR_20' ) end [2024-12-21 02:27:16] Production.INFO: ProcessCDR(1,14067093,1,1,2) [2024-12-21 02:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067093', 'tblTempUsageDetail_20' ) start [2024-12-21 02:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067093', 'tblTempUsageDetail_20' ) end [2024-12-21 02:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:27:19] Production.INFO: ==13432== Releasing lock... [2024-12-21 02:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:27:19] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:28:05 [end_date_ymd] => 2024-12-21 02:28:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:28:05' and `end` < '2024-12-21 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-21 02:28:18] Production.INFO: count ==483 [2024-12-21 02:28:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:28:05 - End Time 2024-12-21 02:28:05 [2024-12-21 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067098', 'tblTempUsageDetail_20' ) start [2024-12-21 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067098', 'tblTempUsageDetail_20' ) end [2024-12-21 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067098', 'tblTempVendorCDR_20' ) start [2024-12-21 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067098', 'tblTempVendorCDR_20' ) end [2024-12-21 02:28:18] Production.INFO: ProcessCDR(1,14067098,1,1,2) [2024-12-21 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067098', 'tblTempUsageDetail_20' ) start [2024-12-21 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067098', 'tblTempUsageDetail_20' ) end [2024-12-21 02:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:28:21] Production.INFO: ==13503== Releasing lock... [2024-12-21 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:28:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:29:04 [end_date_ymd] => 2024-12-21 02:29:04 [RateCDR] => 1 ) [2024-12-21 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-20 23:29:04' and `end` < '2024-12-21 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-21 02:29:18] Production.INFO: count ==487 [2024-12-21 02:29:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:29:04 - End Time 2024-12-21 02:29:04 [2024-12-21 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067103', 'tblTempUsageDetail_20' ) start [2024-12-21 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067103', 'tblTempUsageDetail_20' ) end [2024-12-21 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067103', 'tblTempVendorCDR_20' ) start [2024-12-21 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067103', 'tblTempVendorCDR_20' ) end [2024-12-21 02:29:18] Production.INFO: ProcessCDR(1,14067103,1,1,2) [2024-12-21 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067103', 'tblTempUsageDetail_20' ) start [2024-12-21 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067103', 'tblTempUsageDetail_20' ) end [2024-12-21 02:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:29:22] Production.INFO: ==13574== Releasing lock... [2024-12-21 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:29:22] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:30:06 [end_date_ymd] => 2024-12-21 02:30:06 [RateCDR] => 1 ) [2024-12-21 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:30:06' and `end` < '2024-12-21 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:30:18] Production.INFO: count ==500 [2024-12-21 02:30:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:30:06 - End Time 2024-12-21 02:30:06 [2024-12-21 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067109', 'tblTempUsageDetail_20' ) start [2024-12-21 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067109', 'tblTempUsageDetail_20' ) end [2024-12-21 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067109', 'tblTempVendorCDR_20' ) start [2024-12-21 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067109', 'tblTempVendorCDR_20' ) end [2024-12-21 02:30:18] Production.INFO: ProcessCDR(1,14067109,1,1,2) [2024-12-21 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067109', 'tblTempUsageDetail_20' ) start [2024-12-21 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067109', 'tblTempUsageDetail_20' ) end [2024-12-21 02:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:30:21] Production.INFO: ==13648== Releasing lock... [2024-12-21 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:30:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:31:05 [end_date_ymd] => 2024-12-21 02:31:05 [RateCDR] => 1 ) [2024-12-21 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:31:05' and `end` < '2024-12-21 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:31:18] Production.INFO: count ==513 [2024-12-21 02:31:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:31:05 - End Time 2024-12-21 02:31:05 [2024-12-21 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067114', 'tblTempUsageDetail_20' ) start [2024-12-21 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067114', 'tblTempUsageDetail_20' ) end [2024-12-21 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067114', 'tblTempVendorCDR_20' ) start [2024-12-21 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067114', 'tblTempVendorCDR_20' ) end [2024-12-21 02:31:18] Production.INFO: ProcessCDR(1,14067114,1,1,2) [2024-12-21 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067114', 'tblTempUsageDetail_20' ) start [2024-12-21 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067114', 'tblTempUsageDetail_20' ) end [2024-12-21 02:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:31:21] Production.INFO: ==13724== Releasing lock... [2024-12-21 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:31:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:32:05 [end_date_ymd] => 2024-12-21 02:32:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:32:05' and `end` < '2024-12-21 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-21 02:32:17] Production.INFO: count ==513 [2024-12-21 02:32:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:32:05 - End Time 2024-12-21 02:32:05 [2024-12-21 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067119', 'tblTempUsageDetail_20' ) start [2024-12-21 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067119', 'tblTempUsageDetail_20' ) end [2024-12-21 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067119', 'tblTempVendorCDR_20' ) start [2024-12-21 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067119', 'tblTempVendorCDR_20' ) end [2024-12-21 02:32:17] Production.INFO: ProcessCDR(1,14067119,1,1,2) [2024-12-21 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067119', 'tblTempUsageDetail_20' ) start [2024-12-21 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067119', 'tblTempUsageDetail_20' ) end [2024-12-21 02:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:32:20] Production.INFO: ==13801== Releasing lock... [2024-12-21 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:32:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:33:05 [end_date_ymd] => 2024-12-21 02:33:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:33:05' and `end` < '2024-12-21 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-21 02:33:17] Production.INFO: count ==512 [2024-12-21 02:33:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:33:05 - End Time 2024-12-21 02:33:05 [2024-12-21 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067124', 'tblTempUsageDetail_20' ) start [2024-12-21 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067124', 'tblTempUsageDetail_20' ) end [2024-12-21 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067124', 'tblTempVendorCDR_20' ) start [2024-12-21 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067124', 'tblTempVendorCDR_20' ) end [2024-12-21 02:33:17] Production.INFO: ProcessCDR(1,14067124,1,1,2) [2024-12-21 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067124', 'tblTempUsageDetail_20' ) start [2024-12-21 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067124', 'tblTempUsageDetail_20' ) end [2024-12-21 02:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:33:20] Production.INFO: ==13882== Releasing lock... [2024-12-21 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:33:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:34:04 [end_date_ymd] => 2024-12-21 02:34:04 [RateCDR] => 1 ) [2024-12-21 02:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:34:04' and `end` < '2024-12-21 02:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:34:16] Production.INFO: count ==511 [2024-12-21 02:34:16] Production.ERROR: pbx CDR StartTime 2024-12-20 23:34:04 - End Time 2024-12-21 02:34:04 [2024-12-21 02:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067129', 'tblTempUsageDetail_20' ) start [2024-12-21 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067129', 'tblTempUsageDetail_20' ) end [2024-12-21 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067129', 'tblTempVendorCDR_20' ) start [2024-12-21 02:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067129', 'tblTempVendorCDR_20' ) end [2024-12-21 02:34:16] Production.INFO: ProcessCDR(1,14067129,1,1,2) [2024-12-21 02:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:34:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067129', 'tblTempUsageDetail_20' ) start [2024-12-21 02:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067129', 'tblTempUsageDetail_20' ) end [2024-12-21 02:34:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:34:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:34:19] Production.INFO: ==13979== Releasing lock... [2024-12-21 02:34:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:34:19] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:35:05 [end_date_ymd] => 2024-12-21 02:35:05 [RateCDR] => 1 ) [2024-12-21 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:35:05' and `end` < '2024-12-21 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:35:17] Production.INFO: count ==511 [2024-12-21 02:35:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:35:05 - End Time 2024-12-21 02:35:05 [2024-12-21 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067134', 'tblTempUsageDetail_20' ) start [2024-12-21 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067134', 'tblTempUsageDetail_20' ) end [2024-12-21 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067134', 'tblTempVendorCDR_20' ) start [2024-12-21 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067134', 'tblTempVendorCDR_20' ) end [2024-12-21 02:35:17] Production.INFO: ProcessCDR(1,14067134,1,1,2) [2024-12-21 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067134', 'tblTempUsageDetail_20' ) start [2024-12-21 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067134', 'tblTempUsageDetail_20' ) end [2024-12-21 02:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:35:20] Production.INFO: ==14105== Releasing lock... [2024-12-21 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:35:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:36:05 [end_date_ymd] => 2024-12-21 02:36:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:36:05' and `end` < '2024-12-21 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-21 02:36:17] Production.INFO: count ==510 [2024-12-21 02:36:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:36:05 - End Time 2024-12-21 02:36:05 [2024-12-21 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067139', 'tblTempUsageDetail_20' ) start [2024-12-21 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067139', 'tblTempUsageDetail_20' ) end [2024-12-21 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067139', 'tblTempVendorCDR_20' ) start [2024-12-21 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067139', 'tblTempVendorCDR_20' ) end [2024-12-21 02:36:17] Production.INFO: ProcessCDR(1,14067139,1,1,2) [2024-12-21 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067139', 'tblTempUsageDetail_20' ) start [2024-12-21 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067139', 'tblTempUsageDetail_20' ) end [2024-12-21 02:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:36:21] Production.INFO: ==14199== Releasing lock... [2024-12-21 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:36:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:37:04 [end_date_ymd] => 2024-12-21 02:37:04 [RateCDR] => 1 ) [2024-12-21 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-20 23:37:04' and `end` < '2024-12-21 02:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:37:18] Production.INFO: count ==507 [2024-12-21 02:37:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:37:04 - End Time 2024-12-21 02:37:04 [2024-12-21 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067144', 'tblTempUsageDetail_20' ) start [2024-12-21 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067144', 'tblTempUsageDetail_20' ) end [2024-12-21 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067144', 'tblTempVendorCDR_20' ) start [2024-12-21 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067144', 'tblTempVendorCDR_20' ) end [2024-12-21 02:37:18] Production.INFO: ProcessCDR(1,14067144,1,1,2) [2024-12-21 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067144', 'tblTempUsageDetail_20' ) start [2024-12-21 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067144', 'tblTempUsageDetail_20' ) end [2024-12-21 02:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:37:21] Production.INFO: ==14279== Releasing lock... [2024-12-21 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:37:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:38:05 [end_date_ymd] => 2024-12-21 02:38:05 [RateCDR] => 1 ) [2024-12-21 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:38:05' and `end` < '2024-12-21 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:38:17] Production.INFO: count ==509 [2024-12-21 02:38:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:38:05 - End Time 2024-12-21 02:38:05 [2024-12-21 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067149', 'tblTempUsageDetail_20' ) start [2024-12-21 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067149', 'tblTempUsageDetail_20' ) end [2024-12-21 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067149', 'tblTempVendorCDR_20' ) start [2024-12-21 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067149', 'tblTempVendorCDR_20' ) end [2024-12-21 02:38:17] Production.INFO: ProcessCDR(1,14067149,1,1,2) [2024-12-21 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067149', 'tblTempUsageDetail_20' ) start [2024-12-21 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067149', 'tblTempUsageDetail_20' ) end [2024-12-21 02:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:38:21] Production.INFO: ==14367== Releasing lock... [2024-12-21 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:38:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:39:05 [end_date_ymd] => 2024-12-21 02:39:05 [RateCDR] => 1 ) [2024-12-21 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:39:05' and `end` < '2024-12-21 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:39:17] Production.INFO: count ==509 [2024-12-21 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:39:05 - End Time 2024-12-21 02:39:05 [2024-12-21 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067154', 'tblTempUsageDetail_20' ) start [2024-12-21 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067154', 'tblTempUsageDetail_20' ) end [2024-12-21 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067154', 'tblTempVendorCDR_20' ) start [2024-12-21 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067154', 'tblTempVendorCDR_20' ) end [2024-12-21 02:39:17] Production.INFO: ProcessCDR(1,14067154,1,1,2) [2024-12-21 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067154', 'tblTempUsageDetail_20' ) start [2024-12-21 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067154', 'tblTempUsageDetail_20' ) end [2024-12-21 02:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:39:20] Production.INFO: ==14457== Releasing lock... [2024-12-21 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:39:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:40:05 [end_date_ymd] => 2024-12-21 02:40:05 [RateCDR] => 1 ) [2024-12-21 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:40:05' and `end` < '2024-12-21 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-21 02:40:19] Production.INFO: count ==515 [2024-12-21 02:40:19] Production.ERROR: pbx CDR StartTime 2024-12-20 23:40:05 - End Time 2024-12-21 02:40:05 [2024-12-21 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067160', 'tblTempUsageDetail_20' ) start [2024-12-21 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067160', 'tblTempUsageDetail_20' ) end [2024-12-21 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067160', 'tblTempVendorCDR_20' ) start [2024-12-21 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067160', 'tblTempVendorCDR_20' ) end [2024-12-21 02:40:19] Production.INFO: ProcessCDR(1,14067160,1,1,2) [2024-12-21 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067160', 'tblTempUsageDetail_20' ) start [2024-12-21 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067160', 'tblTempUsageDetail_20' ) end [2024-12-21 02:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:40:22] Production.INFO: ==14533== Releasing lock... [2024-12-21 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:40:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:41:04 [end_date_ymd] => 2024-12-21 02:41:04 [RateCDR] => 1 ) [2024-12-21 02:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:41:04' and `end` < '2024-12-21 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-21 02:41:17] Production.INFO: count ==521 [2024-12-21 02:41:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:41:04 - End Time 2024-12-21 02:41:04 [2024-12-21 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067165', 'tblTempUsageDetail_20' ) start [2024-12-21 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067165', 'tblTempUsageDetail_20' ) end [2024-12-21 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067165', 'tblTempVendorCDR_20' ) start [2024-12-21 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067165', 'tblTempVendorCDR_20' ) end [2024-12-21 02:41:17] Production.INFO: ProcessCDR(1,14067165,1,1,2) [2024-12-21 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067165', 'tblTempUsageDetail_20' ) start [2024-12-21 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067165', 'tblTempUsageDetail_20' ) end [2024-12-21 02:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:41:20] Production.INFO: ==14608== Releasing lock... [2024-12-21 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:41:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:42:05 [end_date_ymd] => 2024-12-21 02:42:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:42:05' and `end` < '2024-12-21 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-21 02:42:18] Production.INFO: count ==519 [2024-12-21 02:42:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:42:05 - End Time 2024-12-21 02:42:05 [2024-12-21 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067170', 'tblTempUsageDetail_20' ) start [2024-12-21 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067170', 'tblTempUsageDetail_20' ) end [2024-12-21 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067170', 'tblTempVendorCDR_20' ) start [2024-12-21 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067170', 'tblTempVendorCDR_20' ) end [2024-12-21 02:42:18] Production.INFO: ProcessCDR(1,14067170,1,1,2) [2024-12-21 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067170', 'tblTempUsageDetail_20' ) start [2024-12-21 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067170', 'tblTempUsageDetail_20' ) end [2024-12-21 02:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:42:21] Production.INFO: ==14677== Releasing lock... [2024-12-21 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:42:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:43:04 [end_date_ymd] => 2024-12-21 02:43:04 [RateCDR] => 1 ) [2024-12-21 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-20 23:43:04' and `end` < '2024-12-21 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-21 02:43:17] Production.INFO: count ==515 [2024-12-21 02:43:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:43:04 - End Time 2024-12-21 02:43:04 [2024-12-21 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067175', 'tblTempUsageDetail_20' ) start [2024-12-21 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067175', 'tblTempUsageDetail_20' ) end [2024-12-21 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067175', 'tblTempVendorCDR_20' ) start [2024-12-21 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067175', 'tblTempVendorCDR_20' ) end [2024-12-21 02:43:17] Production.INFO: ProcessCDR(1,14067175,1,1,2) [2024-12-21 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067175', 'tblTempUsageDetail_20' ) start [2024-12-21 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067175', 'tblTempUsageDetail_20' ) end [2024-12-21 02:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:43:20] Production.INFO: ==14747== Releasing lock... [2024-12-21 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:43:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:44:05 [end_date_ymd] => 2024-12-21 02:44:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:44:05' and `end` < '2024-12-21 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-21 02:44:17] Production.INFO: count ==514 [2024-12-21 02:44:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:44:05 - End Time 2024-12-21 02:44:05 [2024-12-21 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067180', 'tblTempUsageDetail_20' ) start [2024-12-21 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067180', 'tblTempUsageDetail_20' ) end [2024-12-21 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067180', 'tblTempVendorCDR_20' ) start [2024-12-21 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067180', 'tblTempVendorCDR_20' ) end [2024-12-21 02:44:17] Production.INFO: ProcessCDR(1,14067180,1,1,2) [2024-12-21 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067180', 'tblTempUsageDetail_20' ) start [2024-12-21 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067180', 'tblTempUsageDetail_20' ) end [2024-12-21 02:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:44:20] Production.INFO: ==14818== Releasing lock... [2024-12-21 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:44:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:45:05 [end_date_ymd] => 2024-12-21 02:45:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:45:05' and `end` < '2024-12-21 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-21 02:45:17] Production.INFO: count ==514 [2024-12-21 02:45:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:45:05 - End Time 2024-12-21 02:45:05 [2024-12-21 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067185', 'tblTempUsageDetail_20' ) start [2024-12-21 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067185', 'tblTempUsageDetail_20' ) end [2024-12-21 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067185', 'tblTempVendorCDR_20' ) start [2024-12-21 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067185', 'tblTempVendorCDR_20' ) end [2024-12-21 02:45:17] Production.INFO: ProcessCDR(1,14067185,1,1,2) [2024-12-21 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067185', 'tblTempUsageDetail_20' ) start [2024-12-21 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067185', 'tblTempUsageDetail_20' ) end [2024-12-21 02:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:45:20] Production.INFO: ==14892== Releasing lock... [2024-12-21 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:45:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:46:05 [end_date_ymd] => 2024-12-21 02:46:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:46:05' and `end` < '2024-12-21 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-21 02:46:18] Production.INFO: count ==513 [2024-12-21 02:46:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:46:05 - End Time 2024-12-21 02:46:05 [2024-12-21 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067190', 'tblTempUsageDetail_20' ) start [2024-12-21 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067190', 'tblTempUsageDetail_20' ) end [2024-12-21 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067190', 'tblTempVendorCDR_20' ) start [2024-12-21 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067190', 'tblTempVendorCDR_20' ) end [2024-12-21 02:46:18] Production.INFO: ProcessCDR(1,14067190,1,1,2) [2024-12-21 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067190', 'tblTempUsageDetail_20' ) start [2024-12-21 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067190', 'tblTempUsageDetail_20' ) end [2024-12-21 02:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:46:21] Production.INFO: ==14963== Releasing lock... [2024-12-21 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:46:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:47:05 [end_date_ymd] => 2024-12-21 02:47:05 [RateCDR] => 1 ) [2024-12-21 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:47:05' and `end` < '2024-12-21 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:47:17] Production.INFO: count ==513 [2024-12-21 02:47:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:47:05 - End Time 2024-12-21 02:47:05 [2024-12-21 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067195', 'tblTempUsageDetail_20' ) start [2024-12-21 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067195', 'tblTempUsageDetail_20' ) end [2024-12-21 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067195', 'tblTempVendorCDR_20' ) start [2024-12-21 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067195', 'tblTempVendorCDR_20' ) end [2024-12-21 02:47:17] Production.INFO: ProcessCDR(1,14067195,1,1,2) [2024-12-21 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067195', 'tblTempUsageDetail_20' ) start [2024-12-21 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067195', 'tblTempUsageDetail_20' ) end [2024-12-21 02:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:47:20] Production.INFO: ==15036== Releasing lock... [2024-12-21 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:47:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:48:04 [end_date_ymd] => 2024-12-21 02:48:04 [RateCDR] => 1 ) [2024-12-21 02: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-20 23:48:04' and `end` < '2024-12-21 02: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-21 02:48:16] Production.INFO: count ==513 [2024-12-21 02:48:16] Production.ERROR: pbx CDR StartTime 2024-12-20 23:48:04 - End Time 2024-12-21 02:48:04 [2024-12-21 02:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067200', 'tblTempUsageDetail_20' ) start [2024-12-21 02:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067200', 'tblTempUsageDetail_20' ) end [2024-12-21 02:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067200', 'tblTempVendorCDR_20' ) start [2024-12-21 02:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067200', 'tblTempVendorCDR_20' ) end [2024-12-21 02:48:16] Production.INFO: ProcessCDR(1,14067200,1,1,2) [2024-12-21 02:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:48:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067200', 'tblTempUsageDetail_20' ) start [2024-12-21 02:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067200', 'tblTempUsageDetail_20' ) end [2024-12-21 02:48:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:48:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:48:19] Production.INFO: ==15109== Releasing lock... [2024-12-21 02:48:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:48:19] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:49:05 [end_date_ymd] => 2024-12-21 02:49:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:49:05' and `end` < '2024-12-21 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-21 02:49:17] Production.INFO: count ==514 [2024-12-21 02:49:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:49:05 - End Time 2024-12-21 02:49:05 [2024-12-21 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067205', 'tblTempUsageDetail_20' ) start [2024-12-21 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067205', 'tblTempUsageDetail_20' ) end [2024-12-21 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067205', 'tblTempVendorCDR_20' ) start [2024-12-21 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067205', 'tblTempVendorCDR_20' ) end [2024-12-21 02:49:17] Production.INFO: ProcessCDR(1,14067205,1,1,2) [2024-12-21 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067205', 'tblTempUsageDetail_20' ) start [2024-12-21 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067205', 'tblTempUsageDetail_20' ) end [2024-12-21 02:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:49:20] Production.INFO: ==15183== Releasing lock... [2024-12-21 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:49:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:50:05 [end_date_ymd] => 2024-12-21 02:50:05 [RateCDR] => 1 ) [2024-12-21 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:50:05' and `end` < '2024-12-21 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:50:17] Production.INFO: count ==517 [2024-12-21 02:50:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:50:05 - End Time 2024-12-21 02:50:05 [2024-12-21 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067211', 'tblTempUsageDetail_20' ) start [2024-12-21 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067211', 'tblTempUsageDetail_20' ) end [2024-12-21 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067211', 'tblTempVendorCDR_20' ) start [2024-12-21 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067211', 'tblTempVendorCDR_20' ) end [2024-12-21 02:50:18] Production.INFO: ProcessCDR(1,14067211,1,1,2) [2024-12-21 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067211', 'tblTempUsageDetail_20' ) start [2024-12-21 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067211', 'tblTempUsageDetail_20' ) end [2024-12-21 02:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:50:21] Production.INFO: ==15297== Releasing lock... [2024-12-21 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:50:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:51:04 [end_date_ymd] => 2024-12-21 02:51:04 [RateCDR] => 1 ) [2024-12-21 02:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:51:04' and `end` < '2024-12-21 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-21 02:51:17] Production.INFO: count ==519 [2024-12-21 02:51:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:51:04 - End Time 2024-12-21 02:51:04 [2024-12-21 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067216', 'tblTempUsageDetail_20' ) start [2024-12-21 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067216', 'tblTempUsageDetail_20' ) end [2024-12-21 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067216', 'tblTempVendorCDR_20' ) start [2024-12-21 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067216', 'tblTempVendorCDR_20' ) end [2024-12-21 02:51:17] Production.INFO: ProcessCDR(1,14067216,1,1,2) [2024-12-21 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067216', 'tblTempUsageDetail_20' ) start [2024-12-21 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067216', 'tblTempUsageDetail_20' ) end [2024-12-21 02:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:51:20] Production.INFO: ==15368== Releasing lock... [2024-12-21 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:51:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:52:05 [end_date_ymd] => 2024-12-21 02:52:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:52:05' and `end` < '2024-12-21 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-21 02:52:17] Production.INFO: count ==519 [2024-12-21 02:52:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:52:05 - End Time 2024-12-21 02:52:05 [2024-12-21 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067221', 'tblTempUsageDetail_20' ) start [2024-12-21 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067221', 'tblTempUsageDetail_20' ) end [2024-12-21 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067221', 'tblTempVendorCDR_20' ) start [2024-12-21 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067221', 'tblTempVendorCDR_20' ) end [2024-12-21 02:52:17] Production.INFO: ProcessCDR(1,14067221,1,1,2) [2024-12-21 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067221', 'tblTempUsageDetail_20' ) start [2024-12-21 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067221', 'tblTempUsageDetail_20' ) end [2024-12-21 02:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:52:20] Production.INFO: ==15442== Releasing lock... [2024-12-21 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:52:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:53:04 [end_date_ymd] => 2024-12-21 02:53:04 [RateCDR] => 1 ) [2024-12-21 02:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:53:04' and `end` < '2024-12-21 02:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:53:17] Production.INFO: count ==515 [2024-12-21 02:53:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:53:04 - End Time 2024-12-21 02:53:04 [2024-12-21 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067226', 'tblTempUsageDetail_20' ) start [2024-12-21 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067226', 'tblTempUsageDetail_20' ) end [2024-12-21 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067226', 'tblTempVendorCDR_20' ) start [2024-12-21 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067226', 'tblTempVendorCDR_20' ) end [2024-12-21 02:53:17] Production.INFO: ProcessCDR(1,14067226,1,1,2) [2024-12-21 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067226', 'tblTempUsageDetail_20' ) start [2024-12-21 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067226', 'tblTempUsageDetail_20' ) end [2024-12-21 02:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:53:20] Production.INFO: ==15514== Releasing lock... [2024-12-21 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:53:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:54:05 [end_date_ymd] => 2024-12-21 02:54:05 [RateCDR] => 1 ) [2024-12-21 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-20 23:54:05' and `end` < '2024-12-21 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-21 02:54:17] Production.INFO: count ==514 [2024-12-21 02:54:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:54:05 - End Time 2024-12-21 02:54:05 [2024-12-21 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067231', 'tblTempUsageDetail_20' ) start [2024-12-21 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067231', 'tblTempUsageDetail_20' ) end [2024-12-21 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067231', 'tblTempVendorCDR_20' ) start [2024-12-21 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067231', 'tblTempVendorCDR_20' ) end [2024-12-21 02:54:17] Production.INFO: ProcessCDR(1,14067231,1,1,2) [2024-12-21 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067231', 'tblTempUsageDetail_20' ) start [2024-12-21 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067231', 'tblTempUsageDetail_20' ) end [2024-12-21 02:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:54:20] Production.INFO: ==15591== Releasing lock... [2024-12-21 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:54:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:55:05 [end_date_ymd] => 2024-12-21 02:55:05 [RateCDR] => 1 ) [2024-12-21 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:55:05' and `end` < '2024-12-21 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:55:17] Production.INFO: count ==517 [2024-12-21 02:55:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:55:05 - End Time 2024-12-21 02:55:05 [2024-12-21 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067236', 'tblTempUsageDetail_20' ) start [2024-12-21 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067236', 'tblTempUsageDetail_20' ) end [2024-12-21 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067236', 'tblTempVendorCDR_20' ) start [2024-12-21 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067236', 'tblTempVendorCDR_20' ) end [2024-12-21 02:55:17] Production.INFO: ProcessCDR(1,14067236,1,1,2) [2024-12-21 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067236', 'tblTempUsageDetail_20' ) start [2024-12-21 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067236', 'tblTempUsageDetail_20' ) end [2024-12-21 02:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:55:20] Production.INFO: ==15668== Releasing lock... [2024-12-21 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:55:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:56:04 [end_date_ymd] => 2024-12-21 02:56:04 [RateCDR] => 1 ) [2024-12-21 02: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-20 23:56:04' and `end` < '2024-12-21 02: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-21 02:56:16] Production.INFO: count ==517 [2024-12-21 02:56:16] Production.ERROR: pbx CDR StartTime 2024-12-20 23:56:04 - End Time 2024-12-21 02:56:04 [2024-12-21 02:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067241', 'tblTempUsageDetail_20' ) start [2024-12-21 02:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067241', 'tblTempUsageDetail_20' ) end [2024-12-21 02:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067241', 'tblTempVendorCDR_20' ) start [2024-12-21 02:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067241', 'tblTempVendorCDR_20' ) end [2024-12-21 02:56:16] Production.INFO: ProcessCDR(1,14067241,1,1,2) [2024-12-21 02:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067241', 'tblTempUsageDetail_20' ) start [2024-12-21 02:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067241', 'tblTempUsageDetail_20' ) end [2024-12-21 02:56:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:56:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:56:19] Production.INFO: ==15742== Releasing lock... [2024-12-21 02:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:56:19] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:57:05 [end_date_ymd] => 2024-12-21 02:57:05 [RateCDR] => 1 ) [2024-12-21 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:57:05' and `end` < '2024-12-21 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:57:18] Production.INFO: count ==515 [2024-12-21 02:57:18] Production.ERROR: pbx CDR StartTime 2024-12-20 23:57:05 - End Time 2024-12-21 02:57:05 [2024-12-21 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067246', 'tblTempUsageDetail_20' ) start [2024-12-21 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067246', 'tblTempUsageDetail_20' ) end [2024-12-21 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067246', 'tblTempVendorCDR_20' ) start [2024-12-21 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067246', 'tblTempVendorCDR_20' ) end [2024-12-21 02:57:18] Production.INFO: ProcessCDR(1,14067246,1,1,2) [2024-12-21 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067246', 'tblTempUsageDetail_20' ) start [2024-12-21 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067246', 'tblTempUsageDetail_20' ) end [2024-12-21 02:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:57:21] Production.INFO: ==15811== Releasing lock... [2024-12-21 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:57:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:58:06 [end_date_ymd] => 2024-12-21 02:58:06 [RateCDR] => 1 ) [2024-12-21 02:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:58:06' and `end` < '2024-12-21 02:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 02:58:19] Production.INFO: count ==515 [2024-12-21 02:58:19] Production.ERROR: pbx CDR StartTime 2024-12-20 23:58:06 - End Time 2024-12-21 02:58:06 [2024-12-21 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067251', 'tblTempUsageDetail_20' ) start [2024-12-21 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067251', 'tblTempUsageDetail_20' ) end [2024-12-21 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067251', 'tblTempVendorCDR_20' ) start [2024-12-21 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067251', 'tblTempVendorCDR_20' ) end [2024-12-21 02:58:19] Production.INFO: ProcessCDR(1,14067251,1,1,2) [2024-12-21 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067251', 'tblTempUsageDetail_20' ) start [2024-12-21 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067251', 'tblTempUsageDetail_20' ) end [2024-12-21 02:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:58:22] Production.INFO: ==15881== Releasing lock... [2024-12-21 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:58:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-20 23:59:04 [end_date_ymd] => 2024-12-21 02:59:04 [RateCDR] => 1 ) [2024-12-21 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-20 23:59:04' and `end` < '2024-12-21 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-21 02:59:16] Production.INFO: count ==514 [2024-12-21 02:59:17] Production.ERROR: pbx CDR StartTime 2024-12-20 23:59:04 - End Time 2024-12-21 02:59:04 [2024-12-21 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067256', 'tblTempUsageDetail_20' ) start [2024-12-21 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067256', 'tblTempUsageDetail_20' ) end [2024-12-21 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067256', 'tblTempVendorCDR_20' ) start [2024-12-21 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067256', 'tblTempVendorCDR_20' ) end [2024-12-21 02:59:17] Production.INFO: ProcessCDR(1,14067256,1,1,2) [2024-12-21 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067256', 'tblTempUsageDetail_20' ) start [2024-12-21 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067256', 'tblTempUsageDetail_20' ) end [2024-12-21 02:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 02:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 02:59:20] Production.INFO: ==15951== Releasing lock... [2024-12-21 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 02:59:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:00:05 [end_date_ymd] => 2024-12-21 03:00:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:00:05' and `end` < '2024-12-21 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-21 03:00:18] Production.INFO: count ==516 [2024-12-21 03:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:00:05 - End Time 2024-12-21 03:00:05 [2024-12-21 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067262', 'tblTempUsageDetail_20' ) start [2024-12-21 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067262', 'tblTempUsageDetail_20' ) end [2024-12-21 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067262', 'tblTempVendorCDR_20' ) start [2024-12-21 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067262', 'tblTempVendorCDR_20' ) end [2024-12-21 03:00:18] Production.INFO: ProcessCDR(1,14067262,1,1,2) [2024-12-21 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067262', 'tblTempUsageDetail_20' ) start [2024-12-21 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067262', 'tblTempUsageDetail_20' ) end [2024-12-21 03:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:00:21] Production.INFO: ==16028== Releasing lock... [2024-12-21 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:00:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:01:04 [end_date_ymd] => 2024-12-21 03:01:04 [RateCDR] => 1 ) [2024-12-21 03:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:01:04' and `end` < '2024-12-21 03:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:01:17] Production.INFO: count ==515 [2024-12-21 03:01:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:01:04 - End Time 2024-12-21 03:01:04 [2024-12-21 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067267', 'tblTempUsageDetail_20' ) start [2024-12-21 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067267', 'tblTempUsageDetail_20' ) end [2024-12-21 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067267', 'tblTempVendorCDR_20' ) start [2024-12-21 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067267', 'tblTempVendorCDR_20' ) end [2024-12-21 03:01:17] Production.INFO: ProcessCDR(1,14067267,1,1,2) [2024-12-21 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067267', 'tblTempUsageDetail_20' ) start [2024-12-21 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067267', 'tblTempUsageDetail_20' ) end [2024-12-21 03:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:01:20] Production.INFO: ==16116== Releasing lock... [2024-12-21 03:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:01:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:02:05 [end_date_ymd] => 2024-12-21 03:02:05 [RateCDR] => 1 ) [2024-12-21 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:02:05' and `end` < '2024-12-21 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:02:17] Production.INFO: count ==518 [2024-12-21 03:02:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:02:05 - End Time 2024-12-21 03:02:05 [2024-12-21 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067272', 'tblTempUsageDetail_20' ) start [2024-12-21 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067272', 'tblTempUsageDetail_20' ) end [2024-12-21 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067272', 'tblTempVendorCDR_20' ) start [2024-12-21 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067272', 'tblTempVendorCDR_20' ) end [2024-12-21 03:02:17] Production.INFO: ProcessCDR(1,14067272,1,1,2) [2024-12-21 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067272', 'tblTempUsageDetail_20' ) start [2024-12-21 03:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067272', 'tblTempUsageDetail_20' ) end [2024-12-21 03:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:02:20] Production.INFO: ==16264== Releasing lock... [2024-12-21 03:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:02:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:03:05 [end_date_ymd] => 2024-12-21 03:03:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:03:05' and `end` < '2024-12-21 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-21 03:03:18] Production.INFO: count ==518 [2024-12-21 03:03:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:03:05 - End Time 2024-12-21 03:03:05 [2024-12-21 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067277', 'tblTempUsageDetail_20' ) start [2024-12-21 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067277', 'tblTempUsageDetail_20' ) end [2024-12-21 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067277', 'tblTempVendorCDR_20' ) start [2024-12-21 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067277', 'tblTempVendorCDR_20' ) end [2024-12-21 03:03:18] Production.INFO: ProcessCDR(1,14067277,1,1,2) [2024-12-21 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067277', 'tblTempUsageDetail_20' ) start [2024-12-21 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067277', 'tblTempUsageDetail_20' ) end [2024-12-21 03:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:03:21] Production.INFO: ==16335== Releasing lock... [2024-12-21 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:03:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 03:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:04:04 [end_date_ymd] => 2024-12-21 03:04:04 [RateCDR] => 1 ) [2024-12-21 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-21 00:04:04' and `end` < '2024-12-21 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-21 03:04:17] Production.INFO: count ==516 [2024-12-21 03:04:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:04:04 - End Time 2024-12-21 03:04:04 [2024-12-21 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067282', 'tblTempUsageDetail_20' ) start [2024-12-21 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067282', 'tblTempUsageDetail_20' ) end [2024-12-21 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067282', 'tblTempVendorCDR_20' ) start [2024-12-21 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067282', 'tblTempVendorCDR_20' ) end [2024-12-21 03:04:17] Production.INFO: ProcessCDR(1,14067282,1,1,2) [2024-12-21 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067282', 'tblTempUsageDetail_20' ) start [2024-12-21 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067282', 'tblTempUsageDetail_20' ) end [2024-12-21 03:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:04:20] Production.INFO: ==16406== Releasing lock... [2024-12-21 03:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:04:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:05:05 [end_date_ymd] => 2024-12-21 03:05:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:05:05' and `end` < '2024-12-21 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-21 03:05:17] Production.INFO: count ==516 [2024-12-21 03:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:05:05 - End Time 2024-12-21 03:05:05 [2024-12-21 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067287', 'tblTempUsageDetail_20' ) start [2024-12-21 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067287', 'tblTempUsageDetail_20' ) end [2024-12-21 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067287', 'tblTempVendorCDR_20' ) start [2024-12-21 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067287', 'tblTempVendorCDR_20' ) end [2024-12-21 03:05:17] Production.INFO: ProcessCDR(1,14067287,1,1,2) [2024-12-21 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067287', 'tblTempUsageDetail_20' ) start [2024-12-21 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067287', 'tblTempUsageDetail_20' ) end [2024-12-21 03:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:05:20] Production.INFO: ==16474== Releasing lock... [2024-12-21 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:05:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 03:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:06:04 [end_date_ymd] => 2024-12-21 03:06:04 [RateCDR] => 1 ) [2024-12-21 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-21 00:06:04' and `end` < '2024-12-21 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-21 03:06:16] Production.INFO: count ==513 [2024-12-21 03:06:16] Production.ERROR: pbx CDR StartTime 2024-12-21 00:06:04 - End Time 2024-12-21 03:06:04 [2024-12-21 03:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067292', 'tblTempUsageDetail_20' ) start [2024-12-21 03:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067292', 'tblTempUsageDetail_20' ) end [2024-12-21 03:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067292', 'tblTempVendorCDR_20' ) start [2024-12-21 03:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067292', 'tblTempVendorCDR_20' ) end [2024-12-21 03:06:16] Production.INFO: ProcessCDR(1,14067292,1,1,2) [2024-12-21 03:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067292', 'tblTempUsageDetail_20' ) start [2024-12-21 03:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067292', 'tblTempUsageDetail_20' ) end [2024-12-21 03:06:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:06:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:06:19] Production.INFO: ==16661== Releasing lock... [2024-12-21 03:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:06:19] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:07:05 [end_date_ymd] => 2024-12-21 03:07:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:07:05' and `end` < '2024-12-21 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-21 03:07:18] Production.INFO: count ==512 [2024-12-21 03:07:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:07:05 - End Time 2024-12-21 03:07:05 [2024-12-21 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067297', 'tblTempUsageDetail_20' ) start [2024-12-21 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067297', 'tblTempUsageDetail_20' ) end [2024-12-21 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067297', 'tblTempVendorCDR_20' ) start [2024-12-21 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067297', 'tblTempVendorCDR_20' ) end [2024-12-21 03:07:18] Production.INFO: ProcessCDR(1,14067297,1,1,2) [2024-12-21 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067297', 'tblTempUsageDetail_20' ) start [2024-12-21 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067297', 'tblTempUsageDetail_20' ) end [2024-12-21 03:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:07:21] Production.INFO: ==16732== Releasing lock... [2024-12-21 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:07:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:08:06 [end_date_ymd] => 2024-12-21 03:08:06 [RateCDR] => 1 ) [2024-12-21 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:08:06' and `end` < '2024-12-21 03:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:08:18] Production.INFO: count ==511 [2024-12-21 03:08:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:08:06 - End Time 2024-12-21 03:08:06 [2024-12-21 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067302', 'tblTempUsageDetail_20' ) start [2024-12-21 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067302', 'tblTempUsageDetail_20' ) end [2024-12-21 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067302', 'tblTempVendorCDR_20' ) start [2024-12-21 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067302', 'tblTempVendorCDR_20' ) end [2024-12-21 03:08:18] Production.INFO: ProcessCDR(1,14067302,1,1,2) [2024-12-21 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067302', 'tblTempUsageDetail_20' ) start [2024-12-21 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067302', 'tblTempUsageDetail_20' ) end [2024-12-21 03:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:08:21] Production.INFO: ==16803== Releasing lock... [2024-12-21 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:08:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:09:05 [end_date_ymd] => 2024-12-21 03:09:05 [RateCDR] => 1 ) [2024-12-21 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:09:05' and `end` < '2024-12-21 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:09:18] Production.INFO: count ==510 [2024-12-21 03:09:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:09:05 - End Time 2024-12-21 03:09:05 [2024-12-21 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067307', 'tblTempUsageDetail_20' ) start [2024-12-21 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067307', 'tblTempUsageDetail_20' ) end [2024-12-21 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067307', 'tblTempVendorCDR_20' ) start [2024-12-21 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067307', 'tblTempVendorCDR_20' ) end [2024-12-21 03:09:18] Production.INFO: ProcessCDR(1,14067307,1,1,2) [2024-12-21 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067307', 'tblTempUsageDetail_20' ) start [2024-12-21 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067307', 'tblTempUsageDetail_20' ) end [2024-12-21 03:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:09:21] Production.INFO: ==16949== Releasing lock... [2024-12-21 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:09:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:10:06 [end_date_ymd] => 2024-12-21 03:10:06 [RateCDR] => 1 ) [2024-12-21 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-21 00:10:06' and `end` < '2024-12-21 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-21 03:10:18] Production.INFO: count ==508 [2024-12-21 03:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:10:06 - End Time 2024-12-21 03:10:06 [2024-12-21 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067312', 'tblTempUsageDetail_20' ) start [2024-12-21 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067312', 'tblTempUsageDetail_20' ) end [2024-12-21 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067312', 'tblTempVendorCDR_20' ) start [2024-12-21 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067312', 'tblTempVendorCDR_20' ) end [2024-12-21 03:10:18] Production.INFO: ProcessCDR(1,14067312,1,1,2) [2024-12-21 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067312', 'tblTempUsageDetail_20' ) start [2024-12-21 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067312', 'tblTempUsageDetail_20' ) end [2024-12-21 03:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:10:21] Production.INFO: ==17028== Releasing lock... [2024-12-21 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:10:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:11:05 [end_date_ymd] => 2024-12-21 03:11:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:11:05' and `end` < '2024-12-21 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-21 03:11:18] Production.INFO: count ==496 [2024-12-21 03:11:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:11:05 - End Time 2024-12-21 03:11:05 [2024-12-21 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067318', 'tblTempUsageDetail_20' ) start [2024-12-21 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067318', 'tblTempUsageDetail_20' ) end [2024-12-21 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067318', 'tblTempVendorCDR_20' ) start [2024-12-21 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067318', 'tblTempVendorCDR_20' ) end [2024-12-21 03:11:18] Production.INFO: ProcessCDR(1,14067318,1,1,2) [2024-12-21 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067318', 'tblTempUsageDetail_20' ) start [2024-12-21 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067318', 'tblTempUsageDetail_20' ) end [2024-12-21 03:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:11:21] Production.INFO: ==17099== Releasing lock... [2024-12-21 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:11:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:12:06 [end_date_ymd] => 2024-12-21 03:12:06 [RateCDR] => 1 ) [2024-12-21 03:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:12:06' and `end` < '2024-12-21 03:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:12:19] Production.INFO: count ==496 [2024-12-21 03:12:19] Production.ERROR: pbx CDR StartTime 2024-12-21 00:12:06 - End Time 2024-12-21 03:12:06 [2024-12-21 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067323', 'tblTempUsageDetail_20' ) start [2024-12-21 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067323', 'tblTempUsageDetail_20' ) end [2024-12-21 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067323', 'tblTempVendorCDR_20' ) start [2024-12-21 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067323', 'tblTempVendorCDR_20' ) end [2024-12-21 03:12:19] Production.INFO: ProcessCDR(1,14067323,1,1,2) [2024-12-21 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067323', 'tblTempUsageDetail_20' ) start [2024-12-21 03:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067323', 'tblTempUsageDetail_20' ) end [2024-12-21 03:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:12:23] Production.INFO: ==17171== Releasing lock... [2024-12-21 03:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:12:23] Production.INFO: 31 MB #Memory Used# [2024-12-21 03:13:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:13:06 [end_date_ymd] => 2024-12-21 03:13:06 [RateCDR] => 1 ) [2024-12-21 03:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:13:06' and `end` < '2024-12-21 03:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:13:19] Production.INFO: count ==496 [2024-12-21 03:13:19] Production.ERROR: pbx CDR StartTime 2024-12-21 00:13:06 - End Time 2024-12-21 03:13:06 [2024-12-21 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067328', 'tblTempUsageDetail_20' ) start [2024-12-21 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067328', 'tblTempUsageDetail_20' ) end [2024-12-21 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067328', 'tblTempVendorCDR_20' ) start [2024-12-21 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067328', 'tblTempVendorCDR_20' ) end [2024-12-21 03:13:19] Production.INFO: ProcessCDR(1,14067328,1,1,2) [2024-12-21 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067328', 'tblTempUsageDetail_20' ) start [2024-12-21 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067328', 'tblTempUsageDetail_20' ) end [2024-12-21 03:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:13:22] Production.INFO: ==17317== Releasing lock... [2024-12-21 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:13:22] Production.INFO: 31 MB #Memory Used# [2024-12-21 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:14:05 [end_date_ymd] => 2024-12-21 03:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:14:05' and `end` < '2024-12-21 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-21 03:14:17] Production.INFO: count ==496 [2024-12-21 03:14:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:14:05 - End Time 2024-12-21 03:14:05 [2024-12-21 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067333', 'tblTempUsageDetail_20' ) start [2024-12-21 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067333', 'tblTempUsageDetail_20' ) end [2024-12-21 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067333', 'tblTempVendorCDR_20' ) start [2024-12-21 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067333', 'tblTempVendorCDR_20' ) end [2024-12-21 03:14:17] Production.INFO: ProcessCDR(1,14067333,1,1,2) [2024-12-21 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067333', 'tblTempUsageDetail_20' ) start [2024-12-21 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067333', 'tblTempUsageDetail_20' ) end [2024-12-21 03:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:14:21] Production.INFO: ==17389== Releasing lock... [2024-12-21 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:14:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:15:05 [end_date_ymd] => 2024-12-21 03:15:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:15:05' and `end` < '2024-12-21 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-21 03:15:17] Production.INFO: count ==496 [2024-12-21 03:15:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:15:05 - End Time 2024-12-21 03:15:05 [2024-12-21 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067338', 'tblTempUsageDetail_20' ) start [2024-12-21 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067338', 'tblTempUsageDetail_20' ) end [2024-12-21 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067338', 'tblTempVendorCDR_20' ) start [2024-12-21 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067338', 'tblTempVendorCDR_20' ) end [2024-12-21 03:15:17] Production.INFO: ProcessCDR(1,14067338,1,1,2) [2024-12-21 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067338', 'tblTempUsageDetail_20' ) start [2024-12-21 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067338', 'tblTempUsageDetail_20' ) end [2024-12-21 03:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:15:20] Production.INFO: ==17457== Releasing lock... [2024-12-21 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:15:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 03:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:16:04 [end_date_ymd] => 2024-12-21 03:16:04 [RateCDR] => 1 ) [2024-12-21 03:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:16:04' and `end` < '2024-12-21 03:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:16:17] Production.INFO: count ==494 [2024-12-21 03:16:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:16:04 - End Time 2024-12-21 03:16:04 [2024-12-21 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067343', 'tblTempUsageDetail_20' ) start [2024-12-21 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067343', 'tblTempUsageDetail_20' ) end [2024-12-21 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067343', 'tblTempVendorCDR_20' ) start [2024-12-21 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067343', 'tblTempVendorCDR_20' ) end [2024-12-21 03:16:17] Production.INFO: ProcessCDR(1,14067343,1,1,2) [2024-12-21 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067343', 'tblTempUsageDetail_20' ) start [2024-12-21 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067343', 'tblTempUsageDetail_20' ) end [2024-12-21 03:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:16:20] Production.INFO: ==17528== Releasing lock... [2024-12-21 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:16:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 03:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:17:04 [end_date_ymd] => 2024-12-21 03:17:04 [RateCDR] => 1 ) [2024-12-21 03:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:17:04' and `end` < '2024-12-21 03:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:17:16] Production.INFO: count ==493 [2024-12-21 03:17:16] Production.ERROR: pbx CDR StartTime 2024-12-21 00:17:04 - End Time 2024-12-21 03:17:04 [2024-12-21 03:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067348', 'tblTempUsageDetail_20' ) start [2024-12-21 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067348', 'tblTempUsageDetail_20' ) end [2024-12-21 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067348', 'tblTempVendorCDR_20' ) start [2024-12-21 03:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067348', 'tblTempVendorCDR_20' ) end [2024-12-21 03:17:16] Production.INFO: ProcessCDR(1,14067348,1,1,2) [2024-12-21 03:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067348', 'tblTempUsageDetail_20' ) start [2024-12-21 03:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067348', 'tblTempUsageDetail_20' ) end [2024-12-21 03:17:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:17:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:17:19] Production.INFO: ==17674== Releasing lock... [2024-12-21 03:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:17:19] Production.INFO: 31 MB #Memory Used# [2024-12-21 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:18:05 [end_date_ymd] => 2024-12-21 03:18:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:18:05' and `end` < '2024-12-21 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-21 03:18:18] Production.INFO: count ==493 [2024-12-21 03:18:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:18:05 - End Time 2024-12-21 03:18:05 [2024-12-21 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067353', 'tblTempUsageDetail_20' ) start [2024-12-21 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067353', 'tblTempUsageDetail_20' ) end [2024-12-21 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067353', 'tblTempVendorCDR_20' ) start [2024-12-21 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067353', 'tblTempVendorCDR_20' ) end [2024-12-21 03:18:18] Production.INFO: ProcessCDR(1,14067353,1,1,2) [2024-12-21 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067353', 'tblTempUsageDetail_20' ) start [2024-12-21 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067353', 'tblTempUsageDetail_20' ) end [2024-12-21 03:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:18:21] Production.INFO: ==17744== Releasing lock... [2024-12-21 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:18:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:19:05 [end_date_ymd] => 2024-12-21 03:19:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:19:05' and `end` < '2024-12-21 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-21 03:19:17] Production.INFO: count ==490 [2024-12-21 03:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:19:05 - End Time 2024-12-21 03:19:05 [2024-12-21 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067358', 'tblTempUsageDetail_20' ) start [2024-12-21 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067358', 'tblTempUsageDetail_20' ) end [2024-12-21 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067358', 'tblTempVendorCDR_20' ) start [2024-12-21 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067358', 'tblTempVendorCDR_20' ) end [2024-12-21 03:19:17] Production.INFO: ProcessCDR(1,14067358,1,1,2) [2024-12-21 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067358', 'tblTempUsageDetail_20' ) start [2024-12-21 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067358', 'tblTempUsageDetail_20' ) end [2024-12-21 03:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:19:20] Production.INFO: ==17812== Releasing lock... [2024-12-21 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:19:20] Production.INFO: 31 MB #Memory Used# [2024-12-21 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:20:06 [end_date_ymd] => 2024-12-21 03:20:06 [RateCDR] => 1 ) [2024-12-21 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:20:06' and `end` < '2024-12-21 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:20:18] Production.INFO: count ==480 [2024-12-21 03:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:20:06 - End Time 2024-12-21 03:20:06 [2024-12-21 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067364', 'tblTempUsageDetail_20' ) start [2024-12-21 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067364', 'tblTempUsageDetail_20' ) end [2024-12-21 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067364', 'tblTempVendorCDR_20' ) start [2024-12-21 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067364', 'tblTempVendorCDR_20' ) end [2024-12-21 03:20:18] Production.INFO: ProcessCDR(1,14067364,1,1,2) [2024-12-21 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067364', 'tblTempUsageDetail_20' ) start [2024-12-21 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067364', 'tblTempUsageDetail_20' ) end [2024-12-21 03:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:20:21] Production.INFO: ==17924== Releasing lock... [2024-12-21 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:20:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:21:05 [end_date_ymd] => 2024-12-21 03:21:05 [RateCDR] => 1 ) [2024-12-21 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:21:05' and `end` < '2024-12-21 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:21:17] Production.INFO: count ==445 [2024-12-21 03:21:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:21:05 - End Time 2024-12-21 03:21:05 [2024-12-21 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067369', 'tblTempUsageDetail_20' ) start [2024-12-21 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067369', 'tblTempUsageDetail_20' ) end [2024-12-21 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067369', 'tblTempVendorCDR_20' ) start [2024-12-21 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067369', 'tblTempVendorCDR_20' ) end [2024-12-21 03:21:18] Production.INFO: ProcessCDR(1,14067369,1,1,2) [2024-12-21 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067369', 'tblTempUsageDetail_20' ) start [2024-12-21 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067369', 'tblTempUsageDetail_20' ) end [2024-12-21 03:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:21:21] Production.INFO: ==17998== Releasing lock... [2024-12-21 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:21:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:22:05 [end_date_ymd] => 2024-12-21 03:22:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:22:05' and `end` < '2024-12-21 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-21 03:22:17] Production.INFO: count ==445 [2024-12-21 03:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:22:05 - End Time 2024-12-21 03:22:05 [2024-12-21 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067374', 'tblTempUsageDetail_20' ) start [2024-12-21 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067374', 'tblTempUsageDetail_20' ) end [2024-12-21 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067374', 'tblTempVendorCDR_20' ) start [2024-12-21 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067374', 'tblTempVendorCDR_20' ) end [2024-12-21 03:22:18] Production.INFO: ProcessCDR(1,14067374,1,1,2) [2024-12-21 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067374', 'tblTempUsageDetail_20' ) start [2024-12-21 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067374', 'tblTempUsageDetail_20' ) end [2024-12-21 03:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:22:21] Production.INFO: ==18067== Releasing lock... [2024-12-21 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:22:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:23:06 [end_date_ymd] => 2024-12-21 03:23:06 [RateCDR] => 1 ) [2024-12-21 03:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:23:06' and `end` < '2024-12-21 03:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:23:18] Production.INFO: count ==442 [2024-12-21 03:23:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:23:06 - End Time 2024-12-21 03:23:06 [2024-12-21 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067379', 'tblTempUsageDetail_20' ) start [2024-12-21 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067379', 'tblTempUsageDetail_20' ) end [2024-12-21 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067379', 'tblTempVendorCDR_20' ) start [2024-12-21 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067379', 'tblTempVendorCDR_20' ) end [2024-12-21 03:23:18] Production.INFO: ProcessCDR(1,14067379,1,1,2) [2024-12-21 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067379', 'tblTempUsageDetail_20' ) start [2024-12-21 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067379', 'tblTempUsageDetail_20' ) end [2024-12-21 03:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:23:21] Production.INFO: ==18176== Releasing lock... [2024-12-21 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:23:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:24:05 [end_date_ymd] => 2024-12-21 03:24:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:24:05' and `end` < '2024-12-21 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-21 03:24:18] Production.INFO: count ==440 [2024-12-21 03:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:24:05 - End Time 2024-12-21 03:24:05 [2024-12-21 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067384', 'tblTempUsageDetail_20' ) start [2024-12-21 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067384', 'tblTempUsageDetail_20' ) end [2024-12-21 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067384', 'tblTempVendorCDR_20' ) start [2024-12-21 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067384', 'tblTempVendorCDR_20' ) end [2024-12-21 03:24:18] Production.INFO: ProcessCDR(1,14067384,1,1,2) [2024-12-21 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067384', 'tblTempUsageDetail_20' ) start [2024-12-21 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067384', 'tblTempUsageDetail_20' ) end [2024-12-21 03:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:24:21] Production.INFO: ==18245== Releasing lock... [2024-12-21 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:24:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:25:04 [end_date_ymd] => 2024-12-21 03:25:04 [RateCDR] => 1 ) [2024-12-21 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-21 00:25:04' and `end` < '2024-12-21 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-21 03:25:17] Production.INFO: count ==440 [2024-12-21 03:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:25:04 - End Time 2024-12-21 03:25:04 [2024-12-21 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067389', 'tblTempUsageDetail_20' ) start [2024-12-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067389', 'tblTempUsageDetail_20' ) end [2024-12-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067389', 'tblTempVendorCDR_20' ) start [2024-12-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067389', 'tblTempVendorCDR_20' ) end [2024-12-21 03:25:17] Production.INFO: ProcessCDR(1,14067389,1,1,2) [2024-12-21 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067389', 'tblTempUsageDetail_20' ) start [2024-12-21 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067389', 'tblTempUsageDetail_20' ) end [2024-12-21 03:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:25:20] Production.INFO: ==18319== Releasing lock... [2024-12-21 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:25:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:26:05 [end_date_ymd] => 2024-12-21 03:26:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:26:05' and `end` < '2024-12-21 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-21 03:26:17] Production.INFO: count ==438 [2024-12-21 03:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:26:05 - End Time 2024-12-21 03:26:05 [2024-12-21 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067394', 'tblTempUsageDetail_20' ) start [2024-12-21 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067394', 'tblTempUsageDetail_20' ) end [2024-12-21 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067394', 'tblTempVendorCDR_20' ) start [2024-12-21 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067394', 'tblTempVendorCDR_20' ) end [2024-12-21 03:26:17] Production.INFO: ProcessCDR(1,14067394,1,1,2) [2024-12-21 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067394', 'tblTempUsageDetail_20' ) start [2024-12-21 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067394', 'tblTempUsageDetail_20' ) end [2024-12-21 03:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:26:20] Production.INFO: ==18397== Releasing lock... [2024-12-21 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:26:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:27:05 [end_date_ymd] => 2024-12-21 03:27:05 [RateCDR] => 1 ) [2024-12-21 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:27:05' and `end` < '2024-12-21 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:27:18] Production.INFO: count ==438 [2024-12-21 03:27:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:27:05 - End Time 2024-12-21 03:27:05 [2024-12-21 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067399', 'tblTempUsageDetail_20' ) start [2024-12-21 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067399', 'tblTempUsageDetail_20' ) end [2024-12-21 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067399', 'tblTempVendorCDR_20' ) start [2024-12-21 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067399', 'tblTempVendorCDR_20' ) end [2024-12-21 03:27:18] Production.INFO: ProcessCDR(1,14067399,1,1,2) [2024-12-21 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067399', 'tblTempUsageDetail_20' ) start [2024-12-21 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067399', 'tblTempUsageDetail_20' ) end [2024-12-21 03:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:27:21] Production.INFO: ==18466== Releasing lock... [2024-12-21 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:27:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:28:05 [end_date_ymd] => 2024-12-21 03:28:05 [RateCDR] => 1 ) [2024-12-21 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:28:05' and `end` < '2024-12-21 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:28:17] Production.INFO: count ==438 [2024-12-21 03:28:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:28:05 - End Time 2024-12-21 03:28:05 [2024-12-21 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067404', 'tblTempUsageDetail_20' ) start [2024-12-21 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067404', 'tblTempUsageDetail_20' ) end [2024-12-21 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067404', 'tblTempVendorCDR_20' ) start [2024-12-21 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067404', 'tblTempVendorCDR_20' ) end [2024-12-21 03:28:17] Production.INFO: ProcessCDR(1,14067404,1,1,2) [2024-12-21 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067404', 'tblTempUsageDetail_20' ) start [2024-12-21 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067404', 'tblTempUsageDetail_20' ) end [2024-12-21 03:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:28:20] Production.INFO: ==18543== Releasing lock... [2024-12-21 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:28:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:29:05 [end_date_ymd] => 2024-12-21 03:29:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:29:05' and `end` < '2024-12-21 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-21 03:29:17] Production.INFO: count ==436 [2024-12-21 03:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:29:05 - End Time 2024-12-21 03:29:05 [2024-12-21 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067409', 'tblTempUsageDetail_20' ) start [2024-12-21 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067409', 'tblTempUsageDetail_20' ) end [2024-12-21 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067409', 'tblTempVendorCDR_20' ) start [2024-12-21 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067409', 'tblTempVendorCDR_20' ) end [2024-12-21 03:29:17] Production.INFO: ProcessCDR(1,14067409,1,1,2) [2024-12-21 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067409', 'tblTempUsageDetail_20' ) start [2024-12-21 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067409', 'tblTempUsageDetail_20' ) end [2024-12-21 03:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:29:21] Production.INFO: ==18615== Releasing lock... [2024-12-21 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:29:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:30:05 [end_date_ymd] => 2024-12-21 03:30:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:30:05' and `end` < '2024-12-21 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-21 03:30:17] Production.INFO: count ==433 [2024-12-21 03:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:30:05 - End Time 2024-12-21 03:30:05 [2024-12-21 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067415', 'tblTempUsageDetail_20' ) start [2024-12-21 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067415', 'tblTempUsageDetail_20' ) end [2024-12-21 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067415', 'tblTempVendorCDR_20' ) start [2024-12-21 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067415', 'tblTempVendorCDR_20' ) end [2024-12-21 03:30:18] Production.INFO: ProcessCDR(1,14067415,1,1,2) [2024-12-21 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067415', 'tblTempUsageDetail_20' ) start [2024-12-21 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067415', 'tblTempUsageDetail_20' ) end [2024-12-21 03:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:30:21] Production.INFO: ==18688== Releasing lock... [2024-12-21 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:30:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:31:05 [end_date_ymd] => 2024-12-21 03:31:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:31:05' and `end` < '2024-12-21 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-21 03:31:18] Production.INFO: count ==397 [2024-12-21 03:31:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:31:05 - End Time 2024-12-21 03:31:05 [2024-12-21 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067420', 'tblTempUsageDetail_20' ) start [2024-12-21 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067420', 'tblTempUsageDetail_20' ) end [2024-12-21 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067420', 'tblTempVendorCDR_20' ) start [2024-12-21 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067420', 'tblTempVendorCDR_20' ) end [2024-12-21 03:31:18] Production.INFO: ProcessCDR(1,14067420,1,1,2) [2024-12-21 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067420', 'tblTempUsageDetail_20' ) start [2024-12-21 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067420', 'tblTempUsageDetail_20' ) end [2024-12-21 03:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:31:21] Production.INFO: ==18760== Releasing lock... [2024-12-21 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:31:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:32:05 [end_date_ymd] => 2024-12-21 03:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:32:05' and `end` < '2024-12-21 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-21 03:32:17] Production.INFO: count ==396 [2024-12-21 03:32:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:32:05 - End Time 2024-12-21 03:32:05 [2024-12-21 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067425', 'tblTempUsageDetail_20' ) start [2024-12-21 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067425', 'tblTempUsageDetail_20' ) end [2024-12-21 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067425', 'tblTempVendorCDR_20' ) start [2024-12-21 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067425', 'tblTempVendorCDR_20' ) end [2024-12-21 03:32:17] Production.INFO: ProcessCDR(1,14067425,1,1,2) [2024-12-21 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067425', 'tblTempUsageDetail_20' ) start [2024-12-21 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067425', 'tblTempUsageDetail_20' ) end [2024-12-21 03:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:32:20] Production.INFO: ==18831== Releasing lock... [2024-12-21 03:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:32:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:33:04 [end_date_ymd] => 2024-12-21 03:33:04 [RateCDR] => 1 ) [2024-12-21 03:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:33:04' and `end` < '2024-12-21 03:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:33:17] Production.INFO: count ==396 [2024-12-21 03:33:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:33:04 - End Time 2024-12-21 03:33:04 [2024-12-21 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067430', 'tblTempUsageDetail_20' ) start [2024-12-21 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067430', 'tblTempUsageDetail_20' ) end [2024-12-21 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067430', 'tblTempVendorCDR_20' ) start [2024-12-21 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067430', 'tblTempVendorCDR_20' ) end [2024-12-21 03:33:17] Production.INFO: ProcessCDR(1,14067430,1,1,2) [2024-12-21 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067430', 'tblTempUsageDetail_20' ) start [2024-12-21 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067430', 'tblTempUsageDetail_20' ) end [2024-12-21 03:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:33:21] Production.INFO: ==18902== Releasing lock... [2024-12-21 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:33:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:34:04 [end_date_ymd] => 2024-12-21 03:34:04 [RateCDR] => 1 ) [2024-12-21 03: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-21 00:34:04' and `end` < '2024-12-21 03: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-21 03:34:17] Production.INFO: count ==396 [2024-12-21 03:34:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:34:04 - End Time 2024-12-21 03:34:04 [2024-12-21 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067435', 'tblTempUsageDetail_20' ) start [2024-12-21 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067435', 'tblTempUsageDetail_20' ) end [2024-12-21 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067435', 'tblTempVendorCDR_20' ) start [2024-12-21 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067435', 'tblTempVendorCDR_20' ) end [2024-12-21 03:34:17] Production.INFO: ProcessCDR(1,14067435,1,1,2) [2024-12-21 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067435', 'tblTempUsageDetail_20' ) start [2024-12-21 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067435', 'tblTempUsageDetail_20' ) end [2024-12-21 03:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:34:21] Production.INFO: ==18971== Releasing lock... [2024-12-21 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:34:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:35:04 [end_date_ymd] => 2024-12-21 03:35:04 [RateCDR] => 1 ) [2024-12-21 03: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-21 00:35:04' and `end` < '2024-12-21 03: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-21 03:35:16] Production.INFO: count ==395 [2024-12-21 03:35:16] Production.ERROR: pbx CDR StartTime 2024-12-21 00:35:04 - End Time 2024-12-21 03:35:04 [2024-12-21 03:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067440', 'tblTempUsageDetail_20' ) start [2024-12-21 03:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067440', 'tblTempUsageDetail_20' ) end [2024-12-21 03:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067440', 'tblTempVendorCDR_20' ) start [2024-12-21 03:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067440', 'tblTempVendorCDR_20' ) end [2024-12-21 03:35:16] Production.INFO: ProcessCDR(1,14067440,1,1,2) [2024-12-21 03:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067440', 'tblTempUsageDetail_20' ) start [2024-12-21 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067440', 'tblTempUsageDetail_20' ) end [2024-12-21 03:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:35:20] Production.INFO: ==19043== Releasing lock... [2024-12-21 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:35:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:36:05 [end_date_ymd] => 2024-12-21 03:36:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:36:05' and `end` < '2024-12-21 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-21 03:36:18] Production.INFO: count ==395 [2024-12-21 03:36:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:36:05 - End Time 2024-12-21 03:36:05 [2024-12-21 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067445', 'tblTempUsageDetail_20' ) start [2024-12-21 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067445', 'tblTempUsageDetail_20' ) end [2024-12-21 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067445', 'tblTempVendorCDR_20' ) start [2024-12-21 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067445', 'tblTempVendorCDR_20' ) end [2024-12-21 03:36:18] Production.INFO: ProcessCDR(1,14067445,1,1,2) [2024-12-21 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067445', 'tblTempUsageDetail_20' ) start [2024-12-21 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067445', 'tblTempUsageDetail_20' ) end [2024-12-21 03:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:36:21] Production.INFO: ==19117== Releasing lock... [2024-12-21 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:36:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:37:05 [end_date_ymd] => 2024-12-21 03:37:05 [RateCDR] => 1 ) [2024-12-21 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:37:05' and `end` < '2024-12-21 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:37:17] Production.INFO: count ==394 [2024-12-21 03:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:37:05 - End Time 2024-12-21 03:37:05 [2024-12-21 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067450', 'tblTempUsageDetail_20' ) start [2024-12-21 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067450', 'tblTempUsageDetail_20' ) end [2024-12-21 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067450', 'tblTempVendorCDR_20' ) start [2024-12-21 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067450', 'tblTempVendorCDR_20' ) end [2024-12-21 03:37:17] Production.INFO: ProcessCDR(1,14067450,1,1,2) [2024-12-21 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067450', 'tblTempUsageDetail_20' ) start [2024-12-21 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067450', 'tblTempUsageDetail_20' ) end [2024-12-21 03:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:37:20] Production.INFO: ==19187== Releasing lock... [2024-12-21 03:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:37:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:38:06 [end_date_ymd] => 2024-12-21 03:38:06 [RateCDR] => 1 ) [2024-12-21 03:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:38:06' and `end` < '2024-12-21 03:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:38:18] Production.INFO: count ==394 [2024-12-21 03:38:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:38:06 - End Time 2024-12-21 03:38:06 [2024-12-21 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067455', 'tblTempUsageDetail_20' ) start [2024-12-21 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067455', 'tblTempUsageDetail_20' ) end [2024-12-21 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067455', 'tblTempVendorCDR_20' ) start [2024-12-21 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067455', 'tblTempVendorCDR_20' ) end [2024-12-21 03:38:18] Production.INFO: ProcessCDR(1,14067455,1,1,2) [2024-12-21 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067455', 'tblTempUsageDetail_20' ) start [2024-12-21 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067455', 'tblTempUsageDetail_20' ) end [2024-12-21 03:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:38:21] Production.INFO: ==19258== Releasing lock... [2024-12-21 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:38:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:39:05 [end_date_ymd] => 2024-12-21 03:39:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:39:05' and `end` < '2024-12-21 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-21 03:39:17] Production.INFO: count ==394 [2024-12-21 03:39:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:39:05 - End Time 2024-12-21 03:39:05 [2024-12-21 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067460', 'tblTempUsageDetail_20' ) start [2024-12-21 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067460', 'tblTempUsageDetail_20' ) end [2024-12-21 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067460', 'tblTempVendorCDR_20' ) start [2024-12-21 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067460', 'tblTempVendorCDR_20' ) end [2024-12-21 03:39:17] Production.INFO: ProcessCDR(1,14067460,1,1,2) [2024-12-21 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067460', 'tblTempUsageDetail_20' ) start [2024-12-21 03:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067460', 'tblTempUsageDetail_20' ) end [2024-12-21 03:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:39:20] Production.INFO: ==19367== Releasing lock... [2024-12-21 03:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:39:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:40:06 [end_date_ymd] => 2024-12-21 03:40:06 [RateCDR] => 1 ) [2024-12-21 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:40:06' and `end` < '2024-12-21 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:40:18] Production.INFO: count ==392 [2024-12-21 03:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:40:06 - End Time 2024-12-21 03:40:06 [2024-12-21 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067465', 'tblTempUsageDetail_20' ) start [2024-12-21 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067465', 'tblTempUsageDetail_20' ) end [2024-12-21 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067465', 'tblTempVendorCDR_20' ) start [2024-12-21 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067465', 'tblTempVendorCDR_20' ) end [2024-12-21 03:40:18] Production.INFO: ProcessCDR(1,14067465,1,1,2) [2024-12-21 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067465', 'tblTempUsageDetail_20' ) start [2024-12-21 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067465', 'tblTempUsageDetail_20' ) end [2024-12-21 03:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:40:21] Production.INFO: ==19439== Releasing lock... [2024-12-21 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:40:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:41:04 [end_date_ymd] => 2024-12-21 03:41:04 [RateCDR] => 1 ) [2024-12-21 03:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:41:04' and `end` < '2024-12-21 03:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:41:16] Production.INFO: count ==380 [2024-12-21 03:41:16] Production.ERROR: pbx CDR StartTime 2024-12-21 00:41:04 - End Time 2024-12-21 03:41:04 [2024-12-21 03:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067471', 'tblTempUsageDetail_20' ) start [2024-12-21 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067471', 'tblTempUsageDetail_20' ) end [2024-12-21 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067471', 'tblTempVendorCDR_20' ) start [2024-12-21 03:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067471', 'tblTempVendorCDR_20' ) end [2024-12-21 03:41:16] Production.INFO: ProcessCDR(1,14067471,1,1,2) [2024-12-21 03:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067471', 'tblTempUsageDetail_20' ) start [2024-12-21 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067471', 'tblTempUsageDetail_20' ) end [2024-12-21 03:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:41:20] Production.INFO: ==19521== Releasing lock... [2024-12-21 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:41:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:42:05 [end_date_ymd] => 2024-12-21 03:42:05 [RateCDR] => 1 ) [2024-12-21 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:42:05' and `end` < '2024-12-21 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:42:17] Production.INFO: count ==380 [2024-12-21 03:42:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:42:05 - End Time 2024-12-21 03:42:05 [2024-12-21 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067476', 'tblTempUsageDetail_20' ) start [2024-12-21 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067476', 'tblTempUsageDetail_20' ) end [2024-12-21 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067476', 'tblTempVendorCDR_20' ) start [2024-12-21 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067476', 'tblTempVendorCDR_20' ) end [2024-12-21 03:42:17] Production.INFO: ProcessCDR(1,14067476,1,1,2) [2024-12-21 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067476', 'tblTempUsageDetail_20' ) start [2024-12-21 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067476', 'tblTempUsageDetail_20' ) end [2024-12-21 03:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:42:20] Production.INFO: ==19594== Releasing lock... [2024-12-21 03:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:42:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:43:05 [end_date_ymd] => 2024-12-21 03:43:05 [RateCDR] => 1 ) [2024-12-21 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:43:05' and `end` < '2024-12-21 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:43:17] Production.INFO: count ==381 [2024-12-21 03:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:43:05 - End Time 2024-12-21 03:43:05 [2024-12-21 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067481', 'tblTempUsageDetail_20' ) start [2024-12-21 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067481', 'tblTempUsageDetail_20' ) end [2024-12-21 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067481', 'tblTempVendorCDR_20' ) start [2024-12-21 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067481', 'tblTempVendorCDR_20' ) end [2024-12-21 03:43:17] Production.INFO: ProcessCDR(1,14067481,1,1,2) [2024-12-21 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067481', 'tblTempUsageDetail_20' ) start [2024-12-21 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067481', 'tblTempUsageDetail_20' ) end [2024-12-21 03:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:43:21] Production.INFO: ==19663== Releasing lock... [2024-12-21 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:43:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:44:05 [end_date_ymd] => 2024-12-21 03:44:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:44:05' and `end` < '2024-12-21 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-21 03:44:17] Production.INFO: count ==379 [2024-12-21 03:44:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:44:05 - End Time 2024-12-21 03:44:05 [2024-12-21 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067486', 'tblTempUsageDetail_20' ) start [2024-12-21 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067486', 'tblTempUsageDetail_20' ) end [2024-12-21 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067486', 'tblTempVendorCDR_20' ) start [2024-12-21 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067486', 'tblTempVendorCDR_20' ) end [2024-12-21 03:44:17] Production.INFO: ProcessCDR(1,14067486,1,1,2) [2024-12-21 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067486', 'tblTempUsageDetail_20' ) start [2024-12-21 03:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067486', 'tblTempUsageDetail_20' ) end [2024-12-21 03:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:44:20] Production.INFO: ==19737== Releasing lock... [2024-12-21 03:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:44:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 03:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:45:04 [end_date_ymd] => 2024-12-21 03:45:04 [RateCDR] => 1 ) [2024-12-21 03:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:45:04' and `end` < '2024-12-21 03:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:45:16] Production.INFO: count ==374 [2024-12-21 03:45:16] Production.ERROR: pbx CDR StartTime 2024-12-21 00:45:04 - End Time 2024-12-21 03:45:04 [2024-12-21 03:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067491', 'tblTempUsageDetail_20' ) start [2024-12-21 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067491', 'tblTempUsageDetail_20' ) end [2024-12-21 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067491', 'tblTempVendorCDR_20' ) start [2024-12-21 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067491', 'tblTempVendorCDR_20' ) end [2024-12-21 03:45:16] Production.INFO: ProcessCDR(1,14067491,1,1,2) [2024-12-21 03:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067491', 'tblTempUsageDetail_20' ) start [2024-12-21 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067491', 'tblTempUsageDetail_20' ) end [2024-12-21 03:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:45:20] Production.INFO: ==19810== Releasing lock... [2024-12-21 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:45:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:46:05 [end_date_ymd] => 2024-12-21 03:46:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:46:05' and `end` < '2024-12-21 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-21 03:46:19] Production.INFO: count ==370 [2024-12-21 03:46:19] Production.ERROR: pbx CDR StartTime 2024-12-21 00:46:05 - End Time 2024-12-21 03:46:05 [2024-12-21 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067496', 'tblTempUsageDetail_20' ) start [2024-12-21 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067496', 'tblTempUsageDetail_20' ) end [2024-12-21 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067496', 'tblTempVendorCDR_20' ) start [2024-12-21 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067496', 'tblTempVendorCDR_20' ) end [2024-12-21 03:46:19] Production.INFO: ProcessCDR(1,14067496,1,1,2) [2024-12-21 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067496', 'tblTempUsageDetail_20' ) start [2024-12-21 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067496', 'tblTempUsageDetail_20' ) end [2024-12-21 03:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:46:22] Production.INFO: ==19882== Releasing lock... [2024-12-21 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:46:22] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:47:05 [end_date_ymd] => 2024-12-21 03:47:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:47:05' and `end` < '2024-12-21 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-21 03:47:17] Production.INFO: count ==371 [2024-12-21 03:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:47:05 - End Time 2024-12-21 03:47:05 [2024-12-21 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067501', 'tblTempUsageDetail_20' ) start [2024-12-21 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067501', 'tblTempUsageDetail_20' ) end [2024-12-21 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067501', 'tblTempVendorCDR_20' ) start [2024-12-21 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067501', 'tblTempVendorCDR_20' ) end [2024-12-21 03:47:17] Production.INFO: ProcessCDR(1,14067501,1,1,2) [2024-12-21 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067501', 'tblTempUsageDetail_20' ) start [2024-12-21 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067501', 'tblTempUsageDetail_20' ) end [2024-12-21 03:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:47:22] Production.INFO: ==19956== Releasing lock... [2024-12-21 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:47:22] Production.INFO: 30 MB #Memory Used# [2024-12-21 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:48:05 [end_date_ymd] => 2024-12-21 03:48:05 [RateCDR] => 1 ) [2024-12-21 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:48:05' and `end` < '2024-12-21 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:48:18] Production.INFO: count ==370 [2024-12-21 03:48:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:48:05 - End Time 2024-12-21 03:48:05 [2024-12-21 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067506', 'tblTempUsageDetail_20' ) start [2024-12-21 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067506', 'tblTempUsageDetail_20' ) end [2024-12-21 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067506', 'tblTempVendorCDR_20' ) start [2024-12-21 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067506', 'tblTempVendorCDR_20' ) end [2024-12-21 03:48:18] Production.INFO: ProcessCDR(1,14067506,1,1,2) [2024-12-21 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067506', 'tblTempUsageDetail_20' ) start [2024-12-21 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067506', 'tblTempUsageDetail_20' ) end [2024-12-21 03:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:48:21] Production.INFO: ==20029== Releasing lock... [2024-12-21 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:48:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:49:05 [end_date_ymd] => 2024-12-21 03:49:05 [RateCDR] => 1 ) [2024-12-21 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:49:05' and `end` < '2024-12-21 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:49:18] Production.INFO: count ==374 [2024-12-21 03:49:18] Production.ERROR: pbx CDR StartTime 2024-12-21 00:49:05 - End Time 2024-12-21 03:49:05 [2024-12-21 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067511', 'tblTempUsageDetail_20' ) start [2024-12-21 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067511', 'tblTempUsageDetail_20' ) end [2024-12-21 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067511', 'tblTempVendorCDR_20' ) start [2024-12-21 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067511', 'tblTempVendorCDR_20' ) end [2024-12-21 03:49:18] Production.INFO: ProcessCDR(1,14067511,1,1,2) [2024-12-21 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067511', 'tblTempUsageDetail_20' ) start [2024-12-21 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067511', 'tblTempUsageDetail_20' ) end [2024-12-21 03:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:49:21] Production.INFO: ==20099== Releasing lock... [2024-12-21 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:49:21] Production.INFO: 30 MB #Memory Used# [2024-12-21 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:50:05 [end_date_ymd] => 2024-12-21 03:50:05 [RateCDR] => 1 ) [2024-12-21 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:50:05' and `end` < '2024-12-21 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:50:17] Production.INFO: count ==369 [2024-12-21 03:50:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:50:05 - End Time 2024-12-21 03:50:05 [2024-12-21 03:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067517', 'tblTempUsageDetail_20' ) start [2024-12-21 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067517', 'tblTempUsageDetail_20' ) end [2024-12-21 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067517', 'tblTempVendorCDR_20' ) start [2024-12-21 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067517', 'tblTempVendorCDR_20' ) end [2024-12-21 03:50:17] Production.INFO: ProcessCDR(1,14067517,1,1,2) [2024-12-21 03:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067517', 'tblTempUsageDetail_20' ) start [2024-12-21 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067517', 'tblTempUsageDetail_20' ) end [2024-12-21 03:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:50:21] Production.INFO: ==20176== Releasing lock... [2024-12-21 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:50:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:51:05 [end_date_ymd] => 2024-12-21 03:51:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:51:05' and `end` < '2024-12-21 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-21 03:51:19] Production.INFO: count ==349 [2024-12-21 03:51:19] Production.ERROR: pbx CDR StartTime 2024-12-21 00:51:05 - End Time 2024-12-21 03:51:05 [2024-12-21 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067522', 'tblTempUsageDetail_20' ) start [2024-12-21 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067522', 'tblTempUsageDetail_20' ) end [2024-12-21 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067522', 'tblTempVendorCDR_20' ) start [2024-12-21 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067522', 'tblTempVendorCDR_20' ) end [2024-12-21 03:51:19] Production.INFO: ProcessCDR(1,14067522,1,1,2) [2024-12-21 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067522', 'tblTempUsageDetail_20' ) start [2024-12-21 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067522', 'tblTempUsageDetail_20' ) end [2024-12-21 03:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:51:23] Production.INFO: ==20255== Releasing lock... [2024-12-21 03:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:51:23] Production.INFO: 30 MB #Memory Used# [2024-12-21 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:52:05 [end_date_ymd] => 2024-12-21 03:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:52:05' and `end` < '2024-12-21 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-21 03:52:17] Production.INFO: count ==349 [2024-12-21 03:52:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:52:05 - End Time 2024-12-21 03:52:05 [2024-12-21 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067527', 'tblTempUsageDetail_20' ) start [2024-12-21 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067527', 'tblTempUsageDetail_20' ) end [2024-12-21 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067527', 'tblTempVendorCDR_20' ) start [2024-12-21 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067527', 'tblTempVendorCDR_20' ) end [2024-12-21 03:52:17] Production.INFO: ProcessCDR(1,14067527,1,1,2) [2024-12-21 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067527', 'tblTempUsageDetail_20' ) start [2024-12-21 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067527', 'tblTempUsageDetail_20' ) end [2024-12-21 03:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:52:20] Production.INFO: ==20332== Releasing lock... [2024-12-21 03:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:52:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:53:05 [end_date_ymd] => 2024-12-21 03:53:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:53:05' and `end` < '2024-12-21 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-21 03:53:16] Production.INFO: count ==348 [2024-12-21 03:53:16] Production.ERROR: pbx CDR StartTime 2024-12-21 00:53:05 - End Time 2024-12-21 03:53:05 [2024-12-21 03:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067532', 'tblTempUsageDetail_20' ) start [2024-12-21 03:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067532', 'tblTempUsageDetail_20' ) end [2024-12-21 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067532', 'tblTempVendorCDR_20' ) start [2024-12-21 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067532', 'tblTempVendorCDR_20' ) end [2024-12-21 03:53:17] Production.INFO: ProcessCDR(1,14067532,1,1,2) [2024-12-21 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067532', 'tblTempUsageDetail_20' ) start [2024-12-21 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067532', 'tblTempUsageDetail_20' ) end [2024-12-21 03:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:53:20] Production.INFO: ==20405== Releasing lock... [2024-12-21 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:53:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:54:05 [end_date_ymd] => 2024-12-21 03:54:05 [RateCDR] => 1 ) [2024-12-21 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:54:05' and `end` < '2024-12-21 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:54:17] Production.INFO: count ==346 [2024-12-21 03:54:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:54:05 - End Time 2024-12-21 03:54:05 [2024-12-21 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067537', 'tblTempUsageDetail_20' ) start [2024-12-21 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067537', 'tblTempUsageDetail_20' ) end [2024-12-21 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067537', 'tblTempVendorCDR_20' ) start [2024-12-21 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067537', 'tblTempVendorCDR_20' ) end [2024-12-21 03:54:17] Production.INFO: ProcessCDR(1,14067537,1,1,2) [2024-12-21 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067537', 'tblTempUsageDetail_20' ) start [2024-12-21 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067537', 'tblTempUsageDetail_20' ) end [2024-12-21 03:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:54:20] Production.INFO: ==20477== Releasing lock... [2024-12-21 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:54:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:55:05 [end_date_ymd] => 2024-12-21 03:55:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:55:05' and `end` < '2024-12-21 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-21 03:55:17] Production.INFO: count ==346 [2024-12-21 03:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:55:05 - End Time 2024-12-21 03:55:05 [2024-12-21 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067542', 'tblTempUsageDetail_20' ) start [2024-12-21 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067542', 'tblTempUsageDetail_20' ) end [2024-12-21 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067542', 'tblTempVendorCDR_20' ) start [2024-12-21 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067542', 'tblTempVendorCDR_20' ) end [2024-12-21 03:55:17] Production.INFO: ProcessCDR(1,14067542,1,1,2) [2024-12-21 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067542', 'tblTempUsageDetail_20' ) start [2024-12-21 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067542', 'tblTempUsageDetail_20' ) end [2024-12-21 03:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:55:20] Production.INFO: ==20590== Releasing lock... [2024-12-21 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:55:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:56:05 [end_date_ymd] => 2024-12-21 03:56:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:56:05' and `end` < '2024-12-21 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-21 03:56:17] Production.INFO: count ==344 [2024-12-21 03:56:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:56:05 - End Time 2024-12-21 03:56:05 [2024-12-21 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067547', 'tblTempUsageDetail_20' ) start [2024-12-21 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067547', 'tblTempUsageDetail_20' ) end [2024-12-21 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067547', 'tblTempVendorCDR_20' ) start [2024-12-21 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067547', 'tblTempVendorCDR_20' ) end [2024-12-21 03:56:17] Production.INFO: ProcessCDR(1,14067547,1,1,2) [2024-12-21 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067547', 'tblTempUsageDetail_20' ) start [2024-12-21 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067547', 'tblTempUsageDetail_20' ) end [2024-12-21 03:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:56:20] Production.INFO: ==20671== Releasing lock... [2024-12-21 03:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:56:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 03:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:57:04 [end_date_ymd] => 2024-12-21 03:57:04 [RateCDR] => 1 ) [2024-12-21 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-21 00:57:04' and `end` < '2024-12-21 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-21 03:57:17] Production.INFO: count ==344 [2024-12-21 03:57:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:57:04 - End Time 2024-12-21 03:57:04 [2024-12-21 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067552', 'tblTempUsageDetail_20' ) start [2024-12-21 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067552', 'tblTempUsageDetail_20' ) end [2024-12-21 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067552', 'tblTempVendorCDR_20' ) start [2024-12-21 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067552', 'tblTempVendorCDR_20' ) end [2024-12-21 03:57:17] Production.INFO: ProcessCDR(1,14067552,1,1,2) [2024-12-21 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067552', 'tblTempUsageDetail_20' ) start [2024-12-21 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067552', 'tblTempUsageDetail_20' ) end [2024-12-21 03:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:57:20] Production.INFO: ==20747== Releasing lock... [2024-12-21 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:57:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:58:05 [end_date_ymd] => 2024-12-21 03:58:05 [RateCDR] => 1 ) [2024-12-21 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-21 00:58:05' and `end` < '2024-12-21 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-21 03:58:17] Production.INFO: count ==343 [2024-12-21 03:58:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:58:05 - End Time 2024-12-21 03:58:05 [2024-12-21 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067557', 'tblTempUsageDetail_20' ) start [2024-12-21 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067557', 'tblTempUsageDetail_20' ) end [2024-12-21 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067557', 'tblTempVendorCDR_20' ) start [2024-12-21 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067557', 'tblTempVendorCDR_20' ) end [2024-12-21 03:58:17] Production.INFO: ProcessCDR(1,14067557,1,1,2) [2024-12-21 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067557', 'tblTempUsageDetail_20' ) start [2024-12-21 03:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067557', 'tblTempUsageDetail_20' ) end [2024-12-21 03:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:58:20] Production.INFO: ==20818== Releasing lock... [2024-12-21 03:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:58:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 00:59:05 [end_date_ymd] => 2024-12-21 03:59:05 [RateCDR] => 1 ) [2024-12-21 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 00:59:05' and `end` < '2024-12-21 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 03:59:17] Production.INFO: count ==343 [2024-12-21 03:59:17] Production.ERROR: pbx CDR StartTime 2024-12-21 00:59:05 - End Time 2024-12-21 03:59:05 [2024-12-21 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067562', 'tblTempUsageDetail_20' ) start [2024-12-21 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067562', 'tblTempUsageDetail_20' ) end [2024-12-21 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067562', 'tblTempVendorCDR_20' ) start [2024-12-21 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067562', 'tblTempVendorCDR_20' ) end [2024-12-21 03:59:17] Production.INFO: ProcessCDR(1,14067562,1,1,2) [2024-12-21 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067562', 'tblTempUsageDetail_20' ) start [2024-12-21 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067562', 'tblTempUsageDetail_20' ) end [2024-12-21 03:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 03:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 03:59:20] Production.INFO: ==20890== Releasing lock... [2024-12-21 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 03:59:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:00:06 [end_date_ymd] => 2024-12-21 04:00:06 [RateCDR] => 1 ) [2024-12-21 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:00:06' and `end` < '2024-12-21 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:00:18] Production.INFO: count ==335 [2024-12-21 04:00:19] Production.ERROR: pbx CDR StartTime 2024-12-21 01:00:06 - End Time 2024-12-21 04:00:06 [2024-12-21 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067569', 'tblTempUsageDetail_20' ) start [2024-12-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067569', 'tblTempUsageDetail_20' ) end [2024-12-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067569', 'tblTempVendorCDR_20' ) start [2024-12-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067569', 'tblTempVendorCDR_20' ) end [2024-12-21 04:00:19] Production.INFO: ProcessCDR(1,14067569,1,1,2) [2024-12-21 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067569', 'tblTempUsageDetail_20' ) start [2024-12-21 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067569', 'tblTempUsageDetail_20' ) end [2024-12-21 04:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:00:22] Production.INFO: ==20972== Releasing lock... [2024-12-21 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:00:22] Production.INFO: 30 MB #Memory Used# [2024-12-21 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:01:05 [end_date_ymd] => 2024-12-21 04:01:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:01:05' and `end` < '2024-12-21 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-21 04:01:17] Production.INFO: count ==306 [2024-12-21 04:01:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:01:05 - End Time 2024-12-21 04:01:05 [2024-12-21 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067574', 'tblTempUsageDetail_20' ) start [2024-12-21 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067574', 'tblTempUsageDetail_20' ) end [2024-12-21 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067574', 'tblTempVendorCDR_20' ) start [2024-12-21 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067574', 'tblTempVendorCDR_20' ) end [2024-12-21 04:01:17] Production.INFO: ProcessCDR(1,14067574,1,1,2) [2024-12-21 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067574', 'tblTempUsageDetail_20' ) start [2024-12-21 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067574', 'tblTempUsageDetail_20' ) end [2024-12-21 04:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:01:20] Production.INFO: ==21059== Releasing lock... [2024-12-21 04:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:01:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-21 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:02:05 [end_date_ymd] => 2024-12-21 04:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:02:05' and `end` < '2024-12-21 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-21 04:02:18] Production.INFO: count ==305 [2024-12-21 04:02:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:02:05 - End Time 2024-12-21 04:02:05 [2024-12-21 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067579', 'tblTempUsageDetail_20' ) start [2024-12-21 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067579', 'tblTempUsageDetail_20' ) end [2024-12-21 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067579', 'tblTempVendorCDR_20' ) start [2024-12-21 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067579', 'tblTempVendorCDR_20' ) end [2024-12-21 04:02:18] Production.INFO: ProcessCDR(1,14067579,1,1,2) [2024-12-21 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067579', 'tblTempUsageDetail_20' ) start [2024-12-21 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067579', 'tblTempUsageDetail_20' ) end [2024-12-21 04:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:02:21] Production.INFO: ==21145== Releasing lock... [2024-12-21 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:02:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-21 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:03:05 [end_date_ymd] => 2024-12-21 04:03:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:03:05' and `end` < '2024-12-21 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-21 04:03:17] Production.INFO: count ==304 [2024-12-21 04:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:03:05 - End Time 2024-12-21 04:03:05 [2024-12-21 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067584', 'tblTempUsageDetail_20' ) start [2024-12-21 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067584', 'tblTempUsageDetail_20' ) end [2024-12-21 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067584', 'tblTempVendorCDR_20' ) start [2024-12-21 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067584', 'tblTempVendorCDR_20' ) end [2024-12-21 04:03:17] Production.INFO: ProcessCDR(1,14067584,1,1,2) [2024-12-21 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067584', 'tblTempUsageDetail_20' ) start [2024-12-21 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067584', 'tblTempUsageDetail_20' ) end [2024-12-21 04:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:03:20] Production.INFO: ==21230== Releasing lock... [2024-12-21 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:03:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-21 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:04:05 [end_date_ymd] => 2024-12-21 04:04:05 [RateCDR] => 1 ) [2024-12-21 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:04:05' and `end` < '2024-12-21 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:04:18] Production.INFO: count ==304 [2024-12-21 04:04:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:04:05 - End Time 2024-12-21 04:04:05 [2024-12-21 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067589', 'tblTempUsageDetail_20' ) start [2024-12-21 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067589', 'tblTempUsageDetail_20' ) end [2024-12-21 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067589', 'tblTempVendorCDR_20' ) start [2024-12-21 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067589', 'tblTempVendorCDR_20' ) end [2024-12-21 04:04:18] Production.INFO: ProcessCDR(1,14067589,1,1,2) [2024-12-21 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067589', 'tblTempUsageDetail_20' ) start [2024-12-21 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067589', 'tblTempUsageDetail_20' ) end [2024-12-21 04:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:04:21] Production.INFO: ==21311== Releasing lock... [2024-12-21 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:04:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-21 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:05:04 [end_date_ymd] => 2024-12-21 04:05:04 [RateCDR] => 1 ) [2024-12-21 04:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:05:04' and `end` < '2024-12-21 04:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:05:16] Production.INFO: count ==304 [2024-12-21 04:05:16] Production.ERROR: pbx CDR StartTime 2024-12-21 01:05:04 - End Time 2024-12-21 04:05:04 [2024-12-21 04:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067594', 'tblTempUsageDetail_20' ) start [2024-12-21 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067594', 'tblTempUsageDetail_20' ) end [2024-12-21 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067594', 'tblTempVendorCDR_20' ) start [2024-12-21 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067594', 'tblTempVendorCDR_20' ) end [2024-12-21 04:05:16] Production.INFO: ProcessCDR(1,14067594,1,1,2) [2024-12-21 04:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067594', 'tblTempUsageDetail_20' ) start [2024-12-21 04:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067594', 'tblTempUsageDetail_20' ) end [2024-12-21 04:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:05:19] Production.INFO: ==21394== Releasing lock... [2024-12-21 04:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:05:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-21 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:06:05 [end_date_ymd] => 2024-12-21 04:06:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:06:05' and `end` < '2024-12-21 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-21 04:06:18] Production.INFO: count ==304 [2024-12-21 04:06:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:06:05 - End Time 2024-12-21 04:06:05 [2024-12-21 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067599', 'tblTempUsageDetail_20' ) start [2024-12-21 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067599', 'tblTempUsageDetail_20' ) end [2024-12-21 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067599', 'tblTempVendorCDR_20' ) start [2024-12-21 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067599', 'tblTempVendorCDR_20' ) end [2024-12-21 04:06:18] Production.INFO: ProcessCDR(1,14067599,1,1,2) [2024-12-21 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067599', 'tblTempUsageDetail_20' ) start [2024-12-21 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067599', 'tblTempUsageDetail_20' ) end [2024-12-21 04:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:06:22] Production.INFO: ==21469== Releasing lock... [2024-12-21 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:06:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-21 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:07:05 [end_date_ymd] => 2024-12-21 04:07:05 [RateCDR] => 1 ) [2024-12-21 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:07:05' and `end` < '2024-12-21 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:07:17] Production.INFO: count ==303 [2024-12-21 04:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:07:05 - End Time 2024-12-21 04:07:05 [2024-12-21 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067604', 'tblTempUsageDetail_20' ) start [2024-12-21 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067604', 'tblTempUsageDetail_20' ) end [2024-12-21 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067604', 'tblTempVendorCDR_20' ) start [2024-12-21 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067604', 'tblTempVendorCDR_20' ) end [2024-12-21 04:07:17] Production.INFO: ProcessCDR(1,14067604,1,1,2) [2024-12-21 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067604', 'tblTempUsageDetail_20' ) start [2024-12-21 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067604', 'tblTempUsageDetail_20' ) end [2024-12-21 04:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:07:20] Production.INFO: ==21541== Releasing lock... [2024-12-21 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:07:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-21 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:08:05 [end_date_ymd] => 2024-12-21 04:08:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:08:05' and `end` < '2024-12-21 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-21 04:08:17] Production.INFO: count ==303 [2024-12-21 04:08:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:08:05 - End Time 2024-12-21 04:08:05 [2024-12-21 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067609', 'tblTempUsageDetail_20' ) start [2024-12-21 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067609', 'tblTempUsageDetail_20' ) end [2024-12-21 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067609', 'tblTempVendorCDR_20' ) start [2024-12-21 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067609', 'tblTempVendorCDR_20' ) end [2024-12-21 04:08:17] Production.INFO: ProcessCDR(1,14067609,1,1,2) [2024-12-21 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067609', 'tblTempUsageDetail_20' ) start [2024-12-21 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067609', 'tblTempUsageDetail_20' ) end [2024-12-21 04:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:08:20] Production.INFO: ==21618== Releasing lock... [2024-12-21 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:08:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-21 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:09:05 [end_date_ymd] => 2024-12-21 04:09:05 [RateCDR] => 1 ) [2024-12-21 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:09:05' and `end` < '2024-12-21 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:09:17] Production.INFO: count ==302 [2024-12-21 04:09:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:09:05 - End Time 2024-12-21 04:09:05 [2024-12-21 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067614', 'tblTempUsageDetail_20' ) start [2024-12-21 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067614', 'tblTempUsageDetail_20' ) end [2024-12-21 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067614', 'tblTempVendorCDR_20' ) start [2024-12-21 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067614', 'tblTempVendorCDR_20' ) end [2024-12-21 04:09:17] Production.INFO: ProcessCDR(1,14067614,1,1,2) [2024-12-21 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067614', 'tblTempUsageDetail_20' ) start [2024-12-21 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067614', 'tblTempUsageDetail_20' ) end [2024-12-21 04:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:09:20] Production.INFO: ==21694== Releasing lock... [2024-12-21 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:09:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-21 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:10:05 [end_date_ymd] => 2024-12-21 04:10:05 [RateCDR] => 1 ) [2024-12-21 04: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-21 01:10:05' and `end` < '2024-12-21 04: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-21 04:10:17] Production.INFO: count ==302 [2024-12-21 04:10:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:10:05 - End Time 2024-12-21 04:10:05 [2024-12-21 04:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067620', 'tblTempUsageDetail_20' ) start [2024-12-21 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067620', 'tblTempUsageDetail_20' ) end [2024-12-21 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067620', 'tblTempVendorCDR_20' ) start [2024-12-21 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067620', 'tblTempVendorCDR_20' ) end [2024-12-21 04:10:17] Production.INFO: ProcessCDR(1,14067620,1,1,2) [2024-12-21 04:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067620', 'tblTempUsageDetail_20' ) start [2024-12-21 04:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067620', 'tblTempUsageDetail_20' ) end [2024-12-21 04:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:10:21] Production.INFO: ==21806== Releasing lock... [2024-12-21 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:10:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-21 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:11:05 [end_date_ymd] => 2024-12-21 04:11:05 [RateCDR] => 1 ) [2024-12-21 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:11:05' and `end` < '2024-12-21 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:11:17] Production.INFO: count ==284 [2024-12-21 04:11:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:11:05 - End Time 2024-12-21 04:11:05 [2024-12-21 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067625', 'tblTempUsageDetail_20' ) start [2024-12-21 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067625', 'tblTempUsageDetail_20' ) end [2024-12-21 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067625', 'tblTempVendorCDR_20' ) start [2024-12-21 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067625', 'tblTempVendorCDR_20' ) end [2024-12-21 04:11:17] Production.INFO: ProcessCDR(1,14067625,1,1,2) [2024-12-21 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067625', 'tblTempUsageDetail_20' ) start [2024-12-21 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067625', 'tblTempUsageDetail_20' ) end [2024-12-21 04:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:11:20] Production.INFO: ==21882== Releasing lock... [2024-12-21 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:11:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-21 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:12:05 [end_date_ymd] => 2024-12-21 04:12:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:12:05' and `end` < '2024-12-21 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-21 04:12:17] Production.INFO: count ==284 [2024-12-21 04:12:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:12:05 - End Time 2024-12-21 04:12:05 [2024-12-21 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067630', 'tblTempUsageDetail_20' ) start [2024-12-21 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067630', 'tblTempUsageDetail_20' ) end [2024-12-21 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067630', 'tblTempVendorCDR_20' ) start [2024-12-21 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067630', 'tblTempVendorCDR_20' ) end [2024-12-21 04:12:17] Production.INFO: ProcessCDR(1,14067630,1,1,2) [2024-12-21 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067630', 'tblTempUsageDetail_20' ) start [2024-12-21 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067630', 'tblTempUsageDetail_20' ) end [2024-12-21 04:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:12:20] Production.INFO: ==21958== Releasing lock... [2024-12-21 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:12:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-21 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:13:05 [end_date_ymd] => 2024-12-21 04:13:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:13:05' and `end` < '2024-12-21 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-21 04:13:18] Production.INFO: count ==284 [2024-12-21 04:13:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:13:05 - End Time 2024-12-21 04:13:05 [2024-12-21 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067635', 'tblTempUsageDetail_20' ) start [2024-12-21 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067635', 'tblTempUsageDetail_20' ) end [2024-12-21 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067635', 'tblTempVendorCDR_20' ) start [2024-12-21 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067635', 'tblTempVendorCDR_20' ) end [2024-12-21 04:13:18] Production.INFO: ProcessCDR(1,14067635,1,1,2) [2024-12-21 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067635', 'tblTempUsageDetail_20' ) start [2024-12-21 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067635', 'tblTempUsageDetail_20' ) end [2024-12-21 04:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:13:21] Production.INFO: ==22034== Releasing lock... [2024-12-21 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:13:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-21 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:14:05 [end_date_ymd] => 2024-12-21 04:14:05 [RateCDR] => 1 ) [2024-12-21 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:14:05' and `end` < '2024-12-21 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:14:17] Production.INFO: count ==283 [2024-12-21 04:14:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:14:05 - End Time 2024-12-21 04:14:05 [2024-12-21 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067640', 'tblTempUsageDetail_20' ) start [2024-12-21 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067640', 'tblTempUsageDetail_20' ) end [2024-12-21 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067640', 'tblTempVendorCDR_20' ) start [2024-12-21 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067640', 'tblTempVendorCDR_20' ) end [2024-12-21 04:14:17] Production.INFO: ProcessCDR(1,14067640,1,1,2) [2024-12-21 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067640', 'tblTempUsageDetail_20' ) start [2024-12-21 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067640', 'tblTempUsageDetail_20' ) end [2024-12-21 04:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:14:20] Production.INFO: ==22106== Releasing lock... [2024-12-21 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:14:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-21 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:15:06 [end_date_ymd] => 2024-12-21 04:15:06 [RateCDR] => 1 ) [2024-12-21 04:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:15:06' and `end` < '2024-12-21 04:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:15:18] Production.INFO: count ==281 [2024-12-21 04:15:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:15:06 - End Time 2024-12-21 04:15:06 [2024-12-21 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067645', 'tblTempUsageDetail_20' ) start [2024-12-21 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067645', 'tblTempUsageDetail_20' ) end [2024-12-21 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067645', 'tblTempVendorCDR_20' ) start [2024-12-21 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067645', 'tblTempVendorCDR_20' ) end [2024-12-21 04:15:18] Production.INFO: ProcessCDR(1,14067645,1,1,2) [2024-12-21 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067645', 'tblTempUsageDetail_20' ) start [2024-12-21 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067645', 'tblTempUsageDetail_20' ) end [2024-12-21 04:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:15:21] Production.INFO: ==22185== Releasing lock... [2024-12-21 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:15:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-21 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:16:05 [end_date_ymd] => 2024-12-21 04:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:16:05' and `end` < '2024-12-21 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-21 04:16:18] Production.INFO: count ==280 [2024-12-21 04:16:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:16:05 - End Time 2024-12-21 04:16:05 [2024-12-21 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067650', 'tblTempUsageDetail_20' ) start [2024-12-21 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067650', 'tblTempUsageDetail_20' ) end [2024-12-21 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067650', 'tblTempVendorCDR_20' ) start [2024-12-21 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067650', 'tblTempVendorCDR_20' ) end [2024-12-21 04:16:18] Production.INFO: ProcessCDR(1,14067650,1,1,2) [2024-12-21 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067650', 'tblTempUsageDetail_20' ) start [2024-12-21 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067650', 'tblTempUsageDetail_20' ) end [2024-12-21 04:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:16:21] Production.INFO: ==22259== Releasing lock... [2024-12-21 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:16:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-21 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:17:05 [end_date_ymd] => 2024-12-21 04:17:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:17:05' and `end` < '2024-12-21 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-21 04:17:17] Production.INFO: count ==276 [2024-12-21 04:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:17:05 - End Time 2024-12-21 04:17:05 [2024-12-21 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067655', 'tblTempUsageDetail_20' ) start [2024-12-21 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067655', 'tblTempUsageDetail_20' ) end [2024-12-21 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067655', 'tblTempVendorCDR_20' ) start [2024-12-21 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067655', 'tblTempVendorCDR_20' ) end [2024-12-21 04:17:17] Production.INFO: ProcessCDR(1,14067655,1,1,2) [2024-12-21 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067655', 'tblTempUsageDetail_20' ) start [2024-12-21 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067655', 'tblTempUsageDetail_20' ) end [2024-12-21 04:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:17:20] Production.INFO: ==22343== Releasing lock... [2024-12-21 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:17:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-21 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:18:05 [end_date_ymd] => 2024-12-21 04:18:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:18:05' and `end` < '2024-12-21 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-21 04:18:18] Production.INFO: count ==275 [2024-12-21 04:18:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:18:05 - End Time 2024-12-21 04:18:05 [2024-12-21 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067660', 'tblTempUsageDetail_20' ) start [2024-12-21 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067660', 'tblTempUsageDetail_20' ) end [2024-12-21 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067660', 'tblTempVendorCDR_20' ) start [2024-12-21 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067660', 'tblTempVendorCDR_20' ) end [2024-12-21 04:18:18] Production.INFO: ProcessCDR(1,14067660,1,1,2) [2024-12-21 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067660', 'tblTempUsageDetail_20' ) start [2024-12-21 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067660', 'tblTempUsageDetail_20' ) end [2024-12-21 04:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:18:21] Production.INFO: ==22418== Releasing lock... [2024-12-21 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:18:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-21 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:19:05 [end_date_ymd] => 2024-12-21 04:19:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:19:05' and `end` < '2024-12-21 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-21 04:19:17] Production.INFO: count ==274 [2024-12-21 04:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:19:05 - End Time 2024-12-21 04:19:05 [2024-12-21 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067665', 'tblTempUsageDetail_20' ) start [2024-12-21 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067665', 'tblTempUsageDetail_20' ) end [2024-12-21 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067665', 'tblTempVendorCDR_20' ) start [2024-12-21 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067665', 'tblTempVendorCDR_20' ) end [2024-12-21 04:19:17] Production.INFO: ProcessCDR(1,14067665,1,1,2) [2024-12-21 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067665', 'tblTempUsageDetail_20' ) start [2024-12-21 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067665', 'tblTempUsageDetail_20' ) end [2024-12-21 04:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:19:20] Production.INFO: ==22491== Releasing lock... [2024-12-21 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:19:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-21 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:20:05 [end_date_ymd] => 2024-12-21 04:20:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:20:05' and `end` < '2024-12-21 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-21 04:20:17] Production.INFO: count ==270 [2024-12-21 04:20:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:20:05 - End Time 2024-12-21 04:20:05 [2024-12-21 04:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067670', 'tblTempUsageDetail_20' ) start [2024-12-21 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067670', 'tblTempUsageDetail_20' ) end [2024-12-21 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067670', 'tblTempVendorCDR_20' ) start [2024-12-21 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067670', 'tblTempVendorCDR_20' ) end [2024-12-21 04:20:17] Production.INFO: ProcessCDR(1,14067670,1,1,2) [2024-12-21 04:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067670', 'tblTempUsageDetail_20' ) start [2024-12-21 04:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067670', 'tblTempUsageDetail_20' ) end [2024-12-21 04:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:20:20] Production.INFO: ==22564== Releasing lock... [2024-12-21 04:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:20:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-21 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:21:05 [end_date_ymd] => 2024-12-21 04:21:05 [RateCDR] => 1 ) [2024-12-21 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:21:05' and `end` < '2024-12-21 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:21:18] Production.INFO: count ==255 [2024-12-21 04:21:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:21:05 - End Time 2024-12-21 04:21:05 [2024-12-21 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067676', 'tblTempUsageDetail_20' ) start [2024-12-21 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067676', 'tblTempUsageDetail_20' ) end [2024-12-21 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067676', 'tblTempVendorCDR_20' ) start [2024-12-21 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067676', 'tblTempVendorCDR_20' ) end [2024-12-21 04:21:18] Production.INFO: ProcessCDR(1,14067676,1,1,2) [2024-12-21 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067676', 'tblTempUsageDetail_20' ) start [2024-12-21 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067676', 'tblTempUsageDetail_20' ) end [2024-12-21 04:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:21:21] Production.INFO: ==22647== Releasing lock... [2024-12-21 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:21:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:22:04 [end_date_ymd] => 2024-12-21 04:22:04 [RateCDR] => 1 ) [2024-12-21 04: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-21 01:22:04' and `end` < '2024-12-21 04: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-21 04:22:17] Production.INFO: count ==255 [2024-12-21 04:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:22:04 - End Time 2024-12-21 04:22:04 [2024-12-21 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067681', 'tblTempUsageDetail_20' ) start [2024-12-21 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067681', 'tblTempUsageDetail_20' ) end [2024-12-21 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067681', 'tblTempVendorCDR_20' ) start [2024-12-21 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067681', 'tblTempVendorCDR_20' ) end [2024-12-21 04:22:17] Production.INFO: ProcessCDR(1,14067681,1,1,2) [2024-12-21 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067681', 'tblTempUsageDetail_20' ) start [2024-12-21 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067681', 'tblTempUsageDetail_20' ) end [2024-12-21 04:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:22:20] Production.INFO: ==22728== Releasing lock... [2024-12-21 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:22:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:23:05 [end_date_ymd] => 2024-12-21 04:23:05 [RateCDR] => 1 ) [2024-12-21 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:23:05' and `end` < '2024-12-21 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:23:17] Production.INFO: count ==254 [2024-12-21 04:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:23:05 - End Time 2024-12-21 04:23:05 [2024-12-21 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067686', 'tblTempUsageDetail_20' ) start [2024-12-21 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067686', 'tblTempUsageDetail_20' ) end [2024-12-21 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067686', 'tblTempVendorCDR_20' ) start [2024-12-21 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067686', 'tblTempVendorCDR_20' ) end [2024-12-21 04:23:17] Production.INFO: ProcessCDR(1,14067686,1,1,2) [2024-12-21 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067686', 'tblTempUsageDetail_20' ) start [2024-12-21 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067686', 'tblTempUsageDetail_20' ) end [2024-12-21 04:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:23:21] Production.INFO: ==22801== Releasing lock... [2024-12-21 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:23:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:24:05 [end_date_ymd] => 2024-12-21 04:24:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:24:05' and `end` < '2024-12-21 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-21 04:24:19] Production.INFO: count ==254 [2024-12-21 04:24:19] Production.ERROR: pbx CDR StartTime 2024-12-21 01:24:05 - End Time 2024-12-21 04:24:05 [2024-12-21 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067691', 'tblTempUsageDetail_20' ) start [2024-12-21 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067691', 'tblTempUsageDetail_20' ) end [2024-12-21 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067691', 'tblTempVendorCDR_20' ) start [2024-12-21 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067691', 'tblTempVendorCDR_20' ) end [2024-12-21 04:24:19] Production.INFO: ProcessCDR(1,14067691,1,1,2) [2024-12-21 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067691', 'tblTempUsageDetail_20' ) start [2024-12-21 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067691', 'tblTempUsageDetail_20' ) end [2024-12-21 04:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:24:22] Production.INFO: ==22879== Releasing lock... [2024-12-21 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:24:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:25:05 [end_date_ymd] => 2024-12-21 04:25:05 [RateCDR] => 1 ) [2024-12-21 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:25:05' and `end` < '2024-12-21 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:25:17] Production.INFO: count ==251 [2024-12-21 04:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:25:05 - End Time 2024-12-21 04:25:05 [2024-12-21 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067696', 'tblTempUsageDetail_20' ) start [2024-12-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067696', 'tblTempUsageDetail_20' ) end [2024-12-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067696', 'tblTempVendorCDR_20' ) start [2024-12-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067696', 'tblTempVendorCDR_20' ) end [2024-12-21 04:25:17] Production.INFO: ProcessCDR(1,14067696,1,1,2) [2024-12-21 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067696', 'tblTempUsageDetail_20' ) start [2024-12-21 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067696', 'tblTempUsageDetail_20' ) end [2024-12-21 04:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:25:21] Production.INFO: ==22953== Releasing lock... [2024-12-21 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:25:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:26:05 [end_date_ymd] => 2024-12-21 04:26:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:26:05' and `end` < '2024-12-21 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-21 04:26:17] Production.INFO: count ==250 [2024-12-21 04:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:26:05 - End Time 2024-12-21 04:26:05 [2024-12-21 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067701', 'tblTempUsageDetail_20' ) start [2024-12-21 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067701', 'tblTempUsageDetail_20' ) end [2024-12-21 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067701', 'tblTempVendorCDR_20' ) start [2024-12-21 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067701', 'tblTempVendorCDR_20' ) end [2024-12-21 04:26:17] Production.INFO: ProcessCDR(1,14067701,1,1,2) [2024-12-21 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067701', 'tblTempUsageDetail_20' ) start [2024-12-21 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067701', 'tblTempUsageDetail_20' ) end [2024-12-21 04:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:26:20] Production.INFO: ==23062== Releasing lock... [2024-12-21 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:26:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:27:05 [end_date_ymd] => 2024-12-21 04:27:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:27:05' and `end` < '2024-12-21 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-21 04:27:17] Production.INFO: count ==250 [2024-12-21 04:27:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:27:05 - End Time 2024-12-21 04:27:05 [2024-12-21 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067706', 'tblTempUsageDetail_20' ) start [2024-12-21 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067706', 'tblTempUsageDetail_20' ) end [2024-12-21 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067706', 'tblTempVendorCDR_20' ) start [2024-12-21 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067706', 'tblTempVendorCDR_20' ) end [2024-12-21 04:27:17] Production.INFO: ProcessCDR(1,14067706,1,1,2) [2024-12-21 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067706', 'tblTempUsageDetail_20' ) start [2024-12-21 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067706', 'tblTempUsageDetail_20' ) end [2024-12-21 04:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:27:20] Production.INFO: ==23141== Releasing lock... [2024-12-21 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:27:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:28:05 [end_date_ymd] => 2024-12-21 04:28:05 [RateCDR] => 1 ) [2024-12-21 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:28:05' and `end` < '2024-12-21 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:28:18] Production.INFO: count ==250 [2024-12-21 04:28:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:28:05 - End Time 2024-12-21 04:28:05 [2024-12-21 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067711', 'tblTempUsageDetail_20' ) start [2024-12-21 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067711', 'tblTempUsageDetail_20' ) end [2024-12-21 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067711', 'tblTempVendorCDR_20' ) start [2024-12-21 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067711', 'tblTempVendorCDR_20' ) end [2024-12-21 04:28:18] Production.INFO: ProcessCDR(1,14067711,1,1,2) [2024-12-21 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067711', 'tblTempUsageDetail_20' ) start [2024-12-21 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067711', 'tblTempUsageDetail_20' ) end [2024-12-21 04:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:28:21] Production.INFO: ==23220== Releasing lock... [2024-12-21 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:28:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:29:04 [end_date_ymd] => 2024-12-21 04:29:04 [RateCDR] => 1 ) [2024-12-21 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-21 01:29:04' and `end` < '2024-12-21 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-21 04:29:16] Production.INFO: count ==250 [2024-12-21 04:29:16] Production.ERROR: pbx CDR StartTime 2024-12-21 01:29:04 - End Time 2024-12-21 04:29:04 [2024-12-21 04:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067716', 'tblTempUsageDetail_20' ) start [2024-12-21 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067716', 'tblTempUsageDetail_20' ) end [2024-12-21 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067716', 'tblTempVendorCDR_20' ) start [2024-12-21 04:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067716', 'tblTempVendorCDR_20' ) end [2024-12-21 04:29:16] Production.INFO: ProcessCDR(1,14067716,1,1,2) [2024-12-21 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067716', 'tblTempUsageDetail_20' ) start [2024-12-21 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067716', 'tblTempUsageDetail_20' ) end [2024-12-21 04:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:29:20] Production.INFO: ==23296== Releasing lock... [2024-12-21 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:29:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:30:06 [end_date_ymd] => 2024-12-21 04:30:06 [RateCDR] => 1 ) [2024-12-21 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-21 01:30:06' and `end` < '2024-12-21 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-21 04:30:18] Production.INFO: count ==246 [2024-12-21 04:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:30:06 - End Time 2024-12-21 04:30:06 [2024-12-21 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067723', 'tblTempUsageDetail_20' ) start [2024-12-21 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067723', 'tblTempUsageDetail_20' ) end [2024-12-21 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067723', 'tblTempVendorCDR_20' ) start [2024-12-21 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067723', 'tblTempVendorCDR_20' ) end [2024-12-21 04:30:18] Production.INFO: ProcessCDR(1,14067723,1,1,2) [2024-12-21 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067723', 'tblTempUsageDetail_20' ) start [2024-12-21 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067723', 'tblTempUsageDetail_20' ) end [2024-12-21 04:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:30:22] Production.INFO: ==23377== Releasing lock... [2024-12-21 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:30:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:31:04 [end_date_ymd] => 2024-12-21 04:31:04 [RateCDR] => 1 ) [2024-12-21 04: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-21 01:31:04' and `end` < '2024-12-21 04: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-21 04:31:17] Production.INFO: count ==238 [2024-12-21 04:31:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:31:04 - End Time 2024-12-21 04:31:04 [2024-12-21 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067728', 'tblTempUsageDetail_20' ) start [2024-12-21 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067728', 'tblTempUsageDetail_20' ) end [2024-12-21 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067728', 'tblTempVendorCDR_20' ) start [2024-12-21 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067728', 'tblTempVendorCDR_20' ) end [2024-12-21 04:31:17] Production.INFO: ProcessCDR(1,14067728,1,1,2) [2024-12-21 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067728', 'tblTempUsageDetail_20' ) start [2024-12-21 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067728', 'tblTempUsageDetail_20' ) end [2024-12-21 04:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:31:20] Production.INFO: ==23585== Releasing lock... [2024-12-21 04:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:31:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:32:05 [end_date_ymd] => 2024-12-21 04:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:32:05' and `end` < '2024-12-21 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-21 04:32:16] Production.INFO: count ==235 [2024-12-21 04:32:16] Production.ERROR: pbx CDR StartTime 2024-12-21 01:32:05 - End Time 2024-12-21 04:32:05 [2024-12-21 04:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067733', 'tblTempUsageDetail_20' ) start [2024-12-21 04:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067733', 'tblTempUsageDetail_20' ) end [2024-12-21 04:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067733', 'tblTempVendorCDR_20' ) start [2024-12-21 04:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067733', 'tblTempVendorCDR_20' ) end [2024-12-21 04:32:16] Production.INFO: ProcessCDR(1,14067733,1,1,2) [2024-12-21 04:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067733', 'tblTempUsageDetail_20' ) start [2024-12-21 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067733', 'tblTempUsageDetail_20' ) end [2024-12-21 04:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:32:20] Production.INFO: ==23661== Releasing lock... [2024-12-21 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:32:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:33:04 [end_date_ymd] => 2024-12-21 04:33:04 [RateCDR] => 1 ) [2024-12-21 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-21 01:33:04' and `end` < '2024-12-21 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-21 04:33:17] Production.INFO: count ==233 [2024-12-21 04:33:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:33:04 - End Time 2024-12-21 04:33:04 [2024-12-21 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067738', 'tblTempUsageDetail_20' ) start [2024-12-21 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067738', 'tblTempUsageDetail_20' ) end [2024-12-21 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067738', 'tblTempVendorCDR_20' ) start [2024-12-21 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067738', 'tblTempVendorCDR_20' ) end [2024-12-21 04:33:17] Production.INFO: ProcessCDR(1,14067738,1,1,2) [2024-12-21 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067738', 'tblTempUsageDetail_20' ) start [2024-12-21 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067738', 'tblTempUsageDetail_20' ) end [2024-12-21 04:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:33:20] Production.INFO: ==23735== Releasing lock... [2024-12-21 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:33:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:34:05 [end_date_ymd] => 2024-12-21 04:34:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:34:05' and `end` < '2024-12-21 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-21 04:34:18] Production.INFO: count ==233 [2024-12-21 04:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:34:05 - End Time 2024-12-21 04:34:05 [2024-12-21 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067743', 'tblTempUsageDetail_20' ) start [2024-12-21 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067743', 'tblTempUsageDetail_20' ) end [2024-12-21 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067743', 'tblTempVendorCDR_20' ) start [2024-12-21 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067743', 'tblTempVendorCDR_20' ) end [2024-12-21 04:34:18] Production.INFO: ProcessCDR(1,14067743,1,1,2) [2024-12-21 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067743', 'tblTempUsageDetail_20' ) start [2024-12-21 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067743', 'tblTempUsageDetail_20' ) end [2024-12-21 04:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:34:21] Production.INFO: ==23809== Releasing lock... [2024-12-21 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:34:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:35:04 [end_date_ymd] => 2024-12-21 04:35:04 [RateCDR] => 1 ) [2024-12-21 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-21 01:35:04' and `end` < '2024-12-21 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-21 04:35:17] Production.INFO: count ==233 [2024-12-21 04:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:35:04 - End Time 2024-12-21 04:35:04 [2024-12-21 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067748', 'tblTempUsageDetail_20' ) start [2024-12-21 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067748', 'tblTempUsageDetail_20' ) end [2024-12-21 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067748', 'tblTempVendorCDR_20' ) start [2024-12-21 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067748', 'tblTempVendorCDR_20' ) end [2024-12-21 04:35:17] Production.INFO: ProcessCDR(1,14067748,1,1,2) [2024-12-21 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067748', 'tblTempUsageDetail_20' ) start [2024-12-21 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067748', 'tblTempUsageDetail_20' ) end [2024-12-21 04:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:35:20] Production.INFO: ==23883== Releasing lock... [2024-12-21 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:35:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:36:05 [end_date_ymd] => 2024-12-21 04:36:05 [RateCDR] => 1 ) [2024-12-21 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:36:05' and `end` < '2024-12-21 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:36:17] Production.INFO: count ==233 [2024-12-21 04:36:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:36:05 - End Time 2024-12-21 04:36:05 [2024-12-21 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067753', 'tblTempUsageDetail_20' ) start [2024-12-21 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067753', 'tblTempUsageDetail_20' ) end [2024-12-21 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067753', 'tblTempVendorCDR_20' ) start [2024-12-21 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067753', 'tblTempVendorCDR_20' ) end [2024-12-21 04:36:17] Production.INFO: ProcessCDR(1,14067753,1,1,2) [2024-12-21 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067753', 'tblTempUsageDetail_20' ) start [2024-12-21 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067753', 'tblTempUsageDetail_20' ) end [2024-12-21 04:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:36:20] Production.INFO: ==23955== Releasing lock... [2024-12-21 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:36:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:37:04 [end_date_ymd] => 2024-12-21 04:37:04 [RateCDR] => 1 ) [2024-12-21 04: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-21 01:37:04' and `end` < '2024-12-21 04: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-21 04:37:16] Production.INFO: count ==233 [2024-12-21 04:37:16] Production.ERROR: pbx CDR StartTime 2024-12-21 01:37:04 - End Time 2024-12-21 04:37:04 [2024-12-21 04:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067758', 'tblTempUsageDetail_20' ) start [2024-12-21 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067758', 'tblTempUsageDetail_20' ) end [2024-12-21 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067758', 'tblTempVendorCDR_20' ) start [2024-12-21 04:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067758', 'tblTempVendorCDR_20' ) end [2024-12-21 04:37:16] Production.INFO: ProcessCDR(1,14067758,1,1,2) [2024-12-21 04:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067758', 'tblTempUsageDetail_20' ) start [2024-12-21 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067758', 'tblTempUsageDetail_20' ) end [2024-12-21 04:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:37:20] Production.INFO: ==24030== Releasing lock... [2024-12-21 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:37:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-21 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:38:05 [end_date_ymd] => 2024-12-21 04:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:38:05' and `end` < '2024-12-21 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-21 04:38:17] Production.INFO: count ==231 [2024-12-21 04:38:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:38:05 - End Time 2024-12-21 04:38:05 [2024-12-21 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067763', 'tblTempUsageDetail_20' ) start [2024-12-21 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067763', 'tblTempUsageDetail_20' ) end [2024-12-21 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067763', 'tblTempVendorCDR_20' ) start [2024-12-21 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067763', 'tblTempVendorCDR_20' ) end [2024-12-21 04:38:17] Production.INFO: ProcessCDR(1,14067763,1,1,2) [2024-12-21 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067763', 'tblTempUsageDetail_20' ) start [2024-12-21 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067763', 'tblTempUsageDetail_20' ) end [2024-12-21 04:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:38:20] Production.INFO: ==24106== Releasing lock... [2024-12-21 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:38:20] Production.INFO: 29 MB #Memory Used# [2024-12-21 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:39:05 [end_date_ymd] => 2024-12-21 04:39:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:39:05' and `end` < '2024-12-21 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-21 04:39:18] Production.INFO: count ==231 [2024-12-21 04:39:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:39:05 - End Time 2024-12-21 04:39:05 [2024-12-21 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067768', 'tblTempUsageDetail_20' ) start [2024-12-21 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067768', 'tblTempUsageDetail_20' ) end [2024-12-21 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067768', 'tblTempVendorCDR_20' ) start [2024-12-21 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067768', 'tblTempVendorCDR_20' ) end [2024-12-21 04:39:18] Production.INFO: ProcessCDR(1,14067768,1,1,2) [2024-12-21 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067768', 'tblTempUsageDetail_20' ) start [2024-12-21 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067768', 'tblTempUsageDetail_20' ) end [2024-12-21 04:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:39:21] Production.INFO: ==24179== Releasing lock... [2024-12-21 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:39:21] Production.INFO: 29 MB #Memory Used# [2024-12-21 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:40:06 [end_date_ymd] => 2024-12-21 04:40:06 [RateCDR] => 1 ) [2024-12-21 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:40:06' and `end` < '2024-12-21 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:40:19] Production.INFO: count ==223 [2024-12-21 04:40:19] Production.ERROR: pbx CDR StartTime 2024-12-21 01:40:06 - End Time 2024-12-21 04:40:06 [2024-12-21 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067774', 'tblTempUsageDetail_20' ) start [2024-12-21 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067774', 'tblTempUsageDetail_20' ) end [2024-12-21 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067774', 'tblTempVendorCDR_20' ) start [2024-12-21 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067774', 'tblTempVendorCDR_20' ) end [2024-12-21 04:40:19] Production.INFO: ProcessCDR(1,14067774,1,1,2) [2024-12-21 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067774', 'tblTempUsageDetail_20' ) start [2024-12-21 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067774', 'tblTempUsageDetail_20' ) end [2024-12-21 04:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:40:22] Production.INFO: ==24253== Releasing lock... [2024-12-21 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:40:22] Production.INFO: 29 MB #Memory Used# [2024-12-21 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:41:05 [end_date_ymd] => 2024-12-21 04:41:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:41:05' and `end` < '2024-12-21 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-21 04:41:17] Production.INFO: count ==213 [2024-12-21 04:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:41:05 - End Time 2024-12-21 04:41:05 [2024-12-21 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067779', 'tblTempUsageDetail_20' ) start [2024-12-21 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067779', 'tblTempUsageDetail_20' ) end [2024-12-21 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067779', 'tblTempVendorCDR_20' ) start [2024-12-21 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067779', 'tblTempVendorCDR_20' ) end [2024-12-21 04:41:17] Production.INFO: ProcessCDR(1,14067779,1,1,2) [2024-12-21 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067779', 'tblTempUsageDetail_20' ) start [2024-12-21 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067779', 'tblTempUsageDetail_20' ) end [2024-12-21 04:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:41:20] Production.INFO: ==24333== Releasing lock... [2024-12-21 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:41:20] Production.INFO: 29 MB #Memory Used# [2024-12-21 04:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:42:04 [end_date_ymd] => 2024-12-21 04:42:04 [RateCDR] => 1 ) [2024-12-21 04:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:42:04' and `end` < '2024-12-21 04:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:42:17] Production.INFO: count ==213 [2024-12-21 04:42:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:42:04 - End Time 2024-12-21 04:42:04 [2024-12-21 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067784', 'tblTempUsageDetail_20' ) start [2024-12-21 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067784', 'tblTempUsageDetail_20' ) end [2024-12-21 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067784', 'tblTempVendorCDR_20' ) start [2024-12-21 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067784', 'tblTempVendorCDR_20' ) end [2024-12-21 04:42:17] Production.INFO: ProcessCDR(1,14067784,1,1,2) [2024-12-21 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067784', 'tblTempUsageDetail_20' ) start [2024-12-21 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067784', 'tblTempUsageDetail_20' ) end [2024-12-21 04:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:42:20] Production.INFO: ==24448== Releasing lock... [2024-12-21 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:42:20] Production.INFO: 29 MB #Memory Used# [2024-12-21 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:43:05 [end_date_ymd] => 2024-12-21 04:43:05 [RateCDR] => 1 ) [2024-12-21 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:43:05' and `end` < '2024-12-21 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:43:18] Production.INFO: count ==211 [2024-12-21 04:43:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:43:05 - End Time 2024-12-21 04:43:05 [2024-12-21 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067789', 'tblTempUsageDetail_20' ) start [2024-12-21 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067789', 'tblTempUsageDetail_20' ) end [2024-12-21 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067789', 'tblTempVendorCDR_20' ) start [2024-12-21 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067789', 'tblTempVendorCDR_20' ) end [2024-12-21 04:43:18] Production.INFO: ProcessCDR(1,14067789,1,1,2) [2024-12-21 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067789', 'tblTempUsageDetail_20' ) start [2024-12-21 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067789', 'tblTempUsageDetail_20' ) end [2024-12-21 04:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:43:21] Production.INFO: ==24522== Releasing lock... [2024-12-21 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:43:21] Production.INFO: 29 MB #Memory Used# [2024-12-21 04:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:44:04 [end_date_ymd] => 2024-12-21 04:44:04 [RateCDR] => 1 ) [2024-12-21 04: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-21 01:44:04' and `end` < '2024-12-21 04: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-21 04:44:16] Production.INFO: count ==211 [2024-12-21 04:44:16] Production.ERROR: pbx CDR StartTime 2024-12-21 01:44:04 - End Time 2024-12-21 04:44:04 [2024-12-21 04:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067794', 'tblTempUsageDetail_20' ) start [2024-12-21 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067794', 'tblTempUsageDetail_20' ) end [2024-12-21 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067794', 'tblTempVendorCDR_20' ) start [2024-12-21 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067794', 'tblTempVendorCDR_20' ) end [2024-12-21 04:44:16] Production.INFO: ProcessCDR(1,14067794,1,1,2) [2024-12-21 04:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067794', 'tblTempUsageDetail_20' ) start [2024-12-21 04:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067794', 'tblTempUsageDetail_20' ) end [2024-12-21 04:44:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:44:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:44:20] Production.INFO: ==24607== Releasing lock... [2024-12-21 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:44:20] Production.INFO: 29 MB #Memory Used# [2024-12-21 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:45:05 [end_date_ymd] => 2024-12-21 04:45:05 [RateCDR] => 1 ) [2024-12-21 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:45:05' and `end` < '2024-12-21 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:45:18] Production.INFO: count ==210 [2024-12-21 04:45:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:45:05 - End Time 2024-12-21 04:45:05 [2024-12-21 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067799', 'tblTempUsageDetail_20' ) start [2024-12-21 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067799', 'tblTempUsageDetail_20' ) end [2024-12-21 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067799', 'tblTempVendorCDR_20' ) start [2024-12-21 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067799', 'tblTempVendorCDR_20' ) end [2024-12-21 04:45:18] Production.INFO: ProcessCDR(1,14067799,1,1,2) [2024-12-21 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067799', 'tblTempUsageDetail_20' ) start [2024-12-21 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067799', 'tblTempUsageDetail_20' ) end [2024-12-21 04:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:45:22] Production.INFO: ==24690== Releasing lock... [2024-12-21 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:45:22] Production.INFO: 29 MB #Memory Used# [2024-12-21 04:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:46:04 [end_date_ymd] => 2024-12-21 04:46:04 [RateCDR] => 1 ) [2024-12-21 04: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-21 01:46:04' and `end` < '2024-12-21 04: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-21 04:46:32] Production.INFO: count ==210 [2024-12-21 04:46:32] Production.ERROR: pbx CDR StartTime 2024-12-21 01:46:04 - End Time 2024-12-21 04:46:04 [2024-12-21 04:46:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067804', 'tblTempUsageDetail_20' ) start [2024-12-21 04:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067804', 'tblTempUsageDetail_20' ) end [2024-12-21 04:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067804', 'tblTempVendorCDR_20' ) start [2024-12-21 04:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067804', 'tblTempVendorCDR_20' ) end [2024-12-21 04:46:32] Production.INFO: ProcessCDR(1,14067804,1,1,2) [2024-12-21 04:46:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:46:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:46:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067804', 'tblTempUsageDetail_20' ) start [2024-12-21 04:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067804', 'tblTempUsageDetail_20' ) end [2024-12-21 04:46:35] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:46:35] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:46:35] Production.INFO: ==24761== Releasing lock... [2024-12-21 04:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:46:35] Production.INFO: 29 MB #Memory Used# [2024-12-21 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:47:05 [end_date_ymd] => 2024-12-21 04:47:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:47:05' and `end` < '2024-12-21 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-21 04:47:21] Production.INFO: count ==210 [2024-12-21 04:47:21] Production.ERROR: pbx CDR StartTime 2024-12-21 01:47:05 - End Time 2024-12-21 04:47:05 [2024-12-21 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067809', 'tblTempUsageDetail_20' ) start [2024-12-21 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067809', 'tblTempUsageDetail_20' ) end [2024-12-21 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067809', 'tblTempVendorCDR_20' ) start [2024-12-21 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067809', 'tblTempVendorCDR_20' ) end [2024-12-21 04:47:21] Production.INFO: ProcessCDR(1,14067809,1,1,2) [2024-12-21 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067809', 'tblTempUsageDetail_20' ) start [2024-12-21 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067809', 'tblTempUsageDetail_20' ) end [2024-12-21 04:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:47:24] Production.INFO: ==24840== Releasing lock... [2024-12-21 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:47:24] Production.INFO: 29 MB #Memory Used# [2024-12-21 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:48:05 [end_date_ymd] => 2024-12-21 04:48:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:48:05' and `end` < '2024-12-21 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-21 04:48:20] Production.INFO: count ==208 [2024-12-21 04:48:20] Production.ERROR: pbx CDR StartTime 2024-12-21 01:48:05 - End Time 2024-12-21 04:48:05 [2024-12-21 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067814', 'tblTempUsageDetail_20' ) start [2024-12-21 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067814', 'tblTempUsageDetail_20' ) end [2024-12-21 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067814', 'tblTempVendorCDR_20' ) start [2024-12-21 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067814', 'tblTempVendorCDR_20' ) end [2024-12-21 04:48:20] Production.INFO: ProcessCDR(1,14067814,1,1,2) [2024-12-21 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067814', 'tblTempUsageDetail_20' ) start [2024-12-21 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067814', 'tblTempUsageDetail_20' ) end [2024-12-21 04:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:48:23] Production.INFO: ==24913== Releasing lock... [2024-12-21 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:48:23] Production.INFO: 29 MB #Memory Used# [2024-12-21 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:49:05 [end_date_ymd] => 2024-12-21 04:49:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:49:05' and `end` < '2024-12-21 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-21 04:49:18] Production.INFO: count ==206 [2024-12-21 04:49:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:49:05 - End Time 2024-12-21 04:49:05 [2024-12-21 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067819', 'tblTempUsageDetail_20' ) start [2024-12-21 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067819', 'tblTempUsageDetail_20' ) end [2024-12-21 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067819', 'tblTempVendorCDR_20' ) start [2024-12-21 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067819', 'tblTempVendorCDR_20' ) end [2024-12-21 04:49:18] Production.INFO: ProcessCDR(1,14067819,1,1,2) [2024-12-21 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067819', 'tblTempUsageDetail_20' ) start [2024-12-21 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067819', 'tblTempUsageDetail_20' ) end [2024-12-21 04:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:49:21] Production.INFO: ==24998== Releasing lock... [2024-12-21 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:49:21] Production.INFO: 29 MB #Memory Used# [2024-12-21 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:50:06 [end_date_ymd] => 2024-12-21 04:50:06 [RateCDR] => 1 ) [2024-12-21 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:50:06' and `end` < '2024-12-21 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:50:20] Production.INFO: count ==197 [2024-12-21 04:50:20] Production.ERROR: pbx CDR StartTime 2024-12-21 01:50:06 - End Time 2024-12-21 04:50:06 [2024-12-21 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067825', 'tblTempUsageDetail_20' ) start [2024-12-21 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067825', 'tblTempUsageDetail_20' ) end [2024-12-21 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067825', 'tblTempVendorCDR_20' ) start [2024-12-21 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067825', 'tblTempVendorCDR_20' ) end [2024-12-21 04:50:20] Production.INFO: ProcessCDR(1,14067825,1,1,2) [2024-12-21 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067825', 'tblTempUsageDetail_20' ) start [2024-12-21 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067825', 'tblTempUsageDetail_20' ) end [2024-12-21 04:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:50:23] Production.INFO: ==25074== Releasing lock... [2024-12-21 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:50:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:51:05 [end_date_ymd] => 2024-12-21 04:51:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:51:05' and `end` < '2024-12-21 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-21 04:51:18] Production.INFO: count ==184 [2024-12-21 04:51:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:51:05 - End Time 2024-12-21 04:51:05 [2024-12-21 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067830', 'tblTempUsageDetail_20' ) start [2024-12-21 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067830', 'tblTempUsageDetail_20' ) end [2024-12-21 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067830', 'tblTempVendorCDR_20' ) start [2024-12-21 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067830', 'tblTempVendorCDR_20' ) end [2024-12-21 04:51:18] Production.INFO: ProcessCDR(1,14067830,1,1,2) [2024-12-21 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067830', 'tblTempUsageDetail_20' ) start [2024-12-21 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067830', 'tblTempUsageDetail_20' ) end [2024-12-21 04:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:51:21] Production.INFO: ==25153== Releasing lock... [2024-12-21 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:51:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:52:05 [end_date_ymd] => 2024-12-21 04:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:52:05' and `end` < '2024-12-21 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-21 04:52:19] Production.INFO: count ==184 [2024-12-21 04:52:19] Production.ERROR: pbx CDR StartTime 2024-12-21 01:52:05 - End Time 2024-12-21 04:52:05 [2024-12-21 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067835', 'tblTempUsageDetail_20' ) start [2024-12-21 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067835', 'tblTempUsageDetail_20' ) end [2024-12-21 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067835', 'tblTempVendorCDR_20' ) start [2024-12-21 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067835', 'tblTempVendorCDR_20' ) end [2024-12-21 04:52:19] Production.INFO: ProcessCDR(1,14067835,1,1,2) [2024-12-21 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067835', 'tblTempUsageDetail_20' ) start [2024-12-21 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067835', 'tblTempUsageDetail_20' ) end [2024-12-21 04:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:52:22] Production.INFO: ==25239== Releasing lock... [2024-12-21 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:52:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:53:05 [end_date_ymd] => 2024-12-21 04:53:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:53:05' and `end` < '2024-12-21 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-21 04:53:17] Production.INFO: count ==184 [2024-12-21 04:53:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:53:05 - End Time 2024-12-21 04:53:05 [2024-12-21 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067840', 'tblTempUsageDetail_20' ) start [2024-12-21 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067840', 'tblTempUsageDetail_20' ) end [2024-12-21 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067840', 'tblTempVendorCDR_20' ) start [2024-12-21 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067840', 'tblTempVendorCDR_20' ) end [2024-12-21 04:53:17] Production.INFO: ProcessCDR(1,14067840,1,1,2) [2024-12-21 04:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067840', 'tblTempUsageDetail_20' ) start [2024-12-21 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067840', 'tblTempUsageDetail_20' ) end [2024-12-21 04:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:53:21] Production.INFO: ==25318== Releasing lock... [2024-12-21 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:53:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:54:05 [end_date_ymd] => 2024-12-21 04:54:05 [RateCDR] => 1 ) [2024-12-21 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 01:54:05' and `end` < '2024-12-21 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 04:54:18] Production.INFO: count ==184 [2024-12-21 04:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:54:05 - End Time 2024-12-21 04:54:05 [2024-12-21 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067845', 'tblTempUsageDetail_20' ) start [2024-12-21 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067845', 'tblTempUsageDetail_20' ) end [2024-12-21 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067845', 'tblTempVendorCDR_20' ) start [2024-12-21 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067845', 'tblTempVendorCDR_20' ) end [2024-12-21 04:54:18] Production.INFO: ProcessCDR(1,14067845,1,1,2) [2024-12-21 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067845', 'tblTempUsageDetail_20' ) start [2024-12-21 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067845', 'tblTempUsageDetail_20' ) end [2024-12-21 04:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:54:21] Production.INFO: ==25406== Releasing lock... [2024-12-21 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:54:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:55:04 [end_date_ymd] => 2024-12-21 04:55:04 [RateCDR] => 1 ) [2024-12-21 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-21 01:55:04' and `end` < '2024-12-21 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-21 04:55:18] Production.INFO: count ==184 [2024-12-21 04:55:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:55:04 - End Time 2024-12-21 04:55:04 [2024-12-21 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067850', 'tblTempUsageDetail_20' ) start [2024-12-21 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067850', 'tblTempUsageDetail_20' ) end [2024-12-21 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067850', 'tblTempVendorCDR_20' ) start [2024-12-21 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067850', 'tblTempVendorCDR_20' ) end [2024-12-21 04:55:18] Production.INFO: ProcessCDR(1,14067850,1,1,2) [2024-12-21 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067850', 'tblTempUsageDetail_20' ) start [2024-12-21 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067850', 'tblTempUsageDetail_20' ) end [2024-12-21 04:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:55:22] Production.INFO: ==25483== Releasing lock... [2024-12-21 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:55:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:56:05 [end_date_ymd] => 2024-12-21 04:56:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:56:05' and `end` < '2024-12-21 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-21 04:56:18] Production.INFO: count ==184 [2024-12-21 04:56:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:56:05 - End Time 2024-12-21 04:56:05 [2024-12-21 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067855', 'tblTempUsageDetail_20' ) start [2024-12-21 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067855', 'tblTempUsageDetail_20' ) end [2024-12-21 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067855', 'tblTempVendorCDR_20' ) start [2024-12-21 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067855', 'tblTempVendorCDR_20' ) end [2024-12-21 04:56:18] Production.INFO: ProcessCDR(1,14067855,1,1,2) [2024-12-21 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067855', 'tblTempUsageDetail_20' ) start [2024-12-21 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067855', 'tblTempUsageDetail_20' ) end [2024-12-21 04:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:56:21] Production.INFO: ==25571== Releasing lock... [2024-12-21 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:56:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:57:04 [end_date_ymd] => 2024-12-21 04:57:04 [RateCDR] => 1 ) [2024-12-21 04: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-21 01:57:04' and `end` < '2024-12-21 04: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-21 04:57:17] Production.INFO: count ==184 [2024-12-21 04:57:17] Production.ERROR: pbx CDR StartTime 2024-12-21 01:57:04 - End Time 2024-12-21 04:57:04 [2024-12-21 04:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067860', 'tblTempUsageDetail_20' ) start [2024-12-21 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067860', 'tblTempUsageDetail_20' ) end [2024-12-21 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067860', 'tblTempVendorCDR_20' ) start [2024-12-21 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067860', 'tblTempVendorCDR_20' ) end [2024-12-21 04:57:17] Production.INFO: ProcessCDR(1,14067860,1,1,2) [2024-12-21 04:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067860', 'tblTempUsageDetail_20' ) start [2024-12-21 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067860', 'tblTempUsageDetail_20' ) end [2024-12-21 04:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:57:20] Production.INFO: ==25707== Releasing lock... [2024-12-21 04:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:57:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:58:05 [end_date_ymd] => 2024-12-21 04:58:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:58:05' and `end` < '2024-12-21 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-21 04:58:18] Production.INFO: count ==184 [2024-12-21 04:58:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:58:05 - End Time 2024-12-21 04:58:05 [2024-12-21 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067865', 'tblTempUsageDetail_20' ) start [2024-12-21 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067865', 'tblTempUsageDetail_20' ) end [2024-12-21 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067865', 'tblTempVendorCDR_20' ) start [2024-12-21 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067865', 'tblTempVendorCDR_20' ) end [2024-12-21 04:58:18] Production.INFO: ProcessCDR(1,14067865,1,1,2) [2024-12-21 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067865', 'tblTempUsageDetail_20' ) start [2024-12-21 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067865', 'tblTempUsageDetail_20' ) end [2024-12-21 04:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:58:21] Production.INFO: ==25806== Releasing lock... [2024-12-21 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:58:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 01:59:05 [end_date_ymd] => 2024-12-21 04:59:05 [RateCDR] => 1 ) [2024-12-21 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-21 01:59:05' and `end` < '2024-12-21 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-21 04:59:18] Production.INFO: count ==184 [2024-12-21 04:59:18] Production.ERROR: pbx CDR StartTime 2024-12-21 01:59:05 - End Time 2024-12-21 04:59:05 [2024-12-21 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067870', 'tblTempUsageDetail_20' ) start [2024-12-21 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067870', 'tblTempUsageDetail_20' ) end [2024-12-21 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067870', 'tblTempVendorCDR_20' ) start [2024-12-21 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067870', 'tblTempVendorCDR_20' ) end [2024-12-21 04:59:18] Production.INFO: ProcessCDR(1,14067870,1,1,2) [2024-12-21 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067870', 'tblTempUsageDetail_20' ) start [2024-12-21 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067870', 'tblTempUsageDetail_20' ) end [2024-12-21 04:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 04:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 04:59:21] Production.INFO: ==25905== Releasing lock... [2024-12-21 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 04:59:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:00:05 [end_date_ymd] => 2024-12-21 05:00:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:00:05' and `end` < '2024-12-21 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-21 05:00:18] Production.INFO: count ==177 [2024-12-21 05:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:00:05 - End Time 2024-12-21 05:00:05 [2024-12-21 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067876', 'tblTempUsageDetail_20' ) start [2024-12-21 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067876', 'tblTempUsageDetail_20' ) end [2024-12-21 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067876', 'tblTempVendorCDR_20' ) start [2024-12-21 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067876', 'tblTempVendorCDR_20' ) end [2024-12-21 05:00:18] Production.INFO: ProcessCDR(1,14067876,1,1,2) [2024-12-21 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067876', 'tblTempUsageDetail_20' ) start [2024-12-21 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067876', 'tblTempUsageDetail_20' ) end [2024-12-21 05:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:00:22] Production.INFO: ==26004== Releasing lock... [2024-12-21 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:00:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:01:05 [end_date_ymd] => 2024-12-21 05:01:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:01:05' and `end` < '2024-12-21 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-21 05:01:18] Production.INFO: count ==177 [2024-12-21 05:01:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:01:05 - End Time 2024-12-21 05:01:05 [2024-12-21 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067881', 'tblTempUsageDetail_20' ) start [2024-12-21 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067881', 'tblTempUsageDetail_20' ) end [2024-12-21 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067881', 'tblTempVendorCDR_20' ) start [2024-12-21 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067881', 'tblTempVendorCDR_20' ) end [2024-12-21 05:01:18] Production.INFO: ProcessCDR(1,14067881,1,1,2) [2024-12-21 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067881', 'tblTempUsageDetail_20' ) start [2024-12-21 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067881', 'tblTempUsageDetail_20' ) end [2024-12-21 05:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:01:22] Production.INFO: ==26116== Releasing lock... [2024-12-21 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:01:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:02:05 [end_date_ymd] => 2024-12-21 05:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:02:05' and `end` < '2024-12-21 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-21 05:02:18] Production.INFO: count ==177 [2024-12-21 05:02:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:02:05 - End Time 2024-12-21 05:02:05 [2024-12-21 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067886', 'tblTempUsageDetail_20' ) start [2024-12-21 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067886', 'tblTempUsageDetail_20' ) end [2024-12-21 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067886', 'tblTempVendorCDR_20' ) start [2024-12-21 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067886', 'tblTempVendorCDR_20' ) end [2024-12-21 05:02:18] Production.INFO: ProcessCDR(1,14067886,1,1,2) [2024-12-21 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067886', 'tblTempUsageDetail_20' ) start [2024-12-21 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067886', 'tblTempUsageDetail_20' ) end [2024-12-21 05:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:02:21] Production.INFO: ==26218== Releasing lock... [2024-12-21 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:02:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 05:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:03:04 [end_date_ymd] => 2024-12-21 05:03:04 [RateCDR] => 1 ) [2024-12-21 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-21 02:03:04' and `end` < '2024-12-21 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-21 05:03:17] Production.INFO: count ==177 [2024-12-21 05:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:03:04 - End Time 2024-12-21 05:03:04 [2024-12-21 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067891', 'tblTempUsageDetail_20' ) start [2024-12-21 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067891', 'tblTempUsageDetail_20' ) end [2024-12-21 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067891', 'tblTempVendorCDR_20' ) start [2024-12-21 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067891', 'tblTempVendorCDR_20' ) end [2024-12-21 05:03:17] Production.INFO: ProcessCDR(1,14067891,1,1,2) [2024-12-21 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067891', 'tblTempUsageDetail_20' ) start [2024-12-21 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067891', 'tblTempUsageDetail_20' ) end [2024-12-21 05:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:03:20] Production.INFO: ==26313== Releasing lock... [2024-12-21 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:03:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:04:05 [end_date_ymd] => 2024-12-21 05:04:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:04:05' and `end` < '2024-12-21 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-21 05:04:17] Production.INFO: count ==177 [2024-12-21 05:04:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:04:05 - End Time 2024-12-21 05:04:05 [2024-12-21 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067896', 'tblTempUsageDetail_20' ) start [2024-12-21 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067896', 'tblTempUsageDetail_20' ) end [2024-12-21 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067896', 'tblTempVendorCDR_20' ) start [2024-12-21 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067896', 'tblTempVendorCDR_20' ) end [2024-12-21 05:04:17] Production.INFO: ProcessCDR(1,14067896,1,1,2) [2024-12-21 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067896', 'tblTempUsageDetail_20' ) start [2024-12-21 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067896', 'tblTempUsageDetail_20' ) end [2024-12-21 05:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:04:20] Production.INFO: ==26417== Releasing lock... [2024-12-21 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:04:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:05:05 [end_date_ymd] => 2024-12-21 05:05:05 [RateCDR] => 1 ) [2024-12-21 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:05:05' and `end` < '2024-12-21 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:05:18] Production.INFO: count ==177 [2024-12-21 05:05:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:05:05 - End Time 2024-12-21 05:05:05 [2024-12-21 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067901', 'tblTempUsageDetail_20' ) start [2024-12-21 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067901', 'tblTempUsageDetail_20' ) end [2024-12-21 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067901', 'tblTempVendorCDR_20' ) start [2024-12-21 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067901', 'tblTempVendorCDR_20' ) end [2024-12-21 05:05:18] Production.INFO: ProcessCDR(1,14067901,1,1,2) [2024-12-21 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067901', 'tblTempUsageDetail_20' ) start [2024-12-21 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067901', 'tblTempUsageDetail_20' ) end [2024-12-21 05:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:05:21] Production.INFO: ==26525== Releasing lock... [2024-12-21 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:05:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:06:05 [end_date_ymd] => 2024-12-21 05:06:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:06:05' and `end` < '2024-12-21 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-21 05:06:37] Production.INFO: count ==177 [2024-12-21 05:06:37] Production.ERROR: pbx CDR StartTime 2024-12-21 02:06:05 - End Time 2024-12-21 05:06:05 [2024-12-21 05:06:37] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:06:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067906', 'tblTempUsageDetail_20' ) start [2024-12-21 05:06:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067906', 'tblTempUsageDetail_20' ) end [2024-12-21 05:06:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067906', 'tblTempVendorCDR_20' ) start [2024-12-21 05:06:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067906', 'tblTempVendorCDR_20' ) end [2024-12-21 05:06:37] Production.INFO: ProcessCDR(1,14067906,1,1,2) [2024-12-21 05:06:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:06:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:06:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:06:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:06:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067906', 'tblTempUsageDetail_20' ) start [2024-12-21 05:06:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067906', 'tblTempUsageDetail_20' ) end [2024-12-21 05:06:40] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:06:40] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:06:40] Production.INFO: ==26628== Releasing lock... [2024-12-21 05:06:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:06:40] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:07:05 [end_date_ymd] => 2024-12-21 05:07:05 [RateCDR] => 1 ) [2024-12-21 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:07:05' and `end` < '2024-12-21 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:07:17] Production.INFO: count ==175 [2024-12-21 05:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:07:05 - End Time 2024-12-21 05:07:05 [2024-12-21 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067911', 'tblTempUsageDetail_20' ) start [2024-12-21 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067911', 'tblTempUsageDetail_20' ) end [2024-12-21 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067911', 'tblTempVendorCDR_20' ) start [2024-12-21 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067911', 'tblTempVendorCDR_20' ) end [2024-12-21 05:07:17] Production.INFO: ProcessCDR(1,14067911,1,1,2) [2024-12-21 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067911', 'tblTempUsageDetail_20' ) start [2024-12-21 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067911', 'tblTempUsageDetail_20' ) end [2024-12-21 05:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:07:20] Production.INFO: ==26724== Releasing lock... [2024-12-21 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:07:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:08:05 [end_date_ymd] => 2024-12-21 05:08:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:08:05' and `end` < '2024-12-21 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-21 05:08:17] Production.INFO: count ==172 [2024-12-21 05:08:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:08:05 - End Time 2024-12-21 05:08:05 [2024-12-21 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067916', 'tblTempUsageDetail_20' ) start [2024-12-21 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067916', 'tblTempUsageDetail_20' ) end [2024-12-21 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067916', 'tblTempVendorCDR_20' ) start [2024-12-21 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067916', 'tblTempVendorCDR_20' ) end [2024-12-21 05:08:17] Production.INFO: ProcessCDR(1,14067916,1,1,2) [2024-12-21 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067916', 'tblTempUsageDetail_20' ) start [2024-12-21 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067916', 'tblTempUsageDetail_20' ) end [2024-12-21 05:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:08:20] Production.INFO: ==26815== Releasing lock... [2024-12-21 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:08:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:09:05 [end_date_ymd] => 2024-12-21 05:09:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:09:05' and `end` < '2024-12-21 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-21 05:09:17] Production.INFO: count ==172 [2024-12-21 05:09:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:09:05 - End Time 2024-12-21 05:09:05 [2024-12-21 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067921', 'tblTempUsageDetail_20' ) start [2024-12-21 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067921', 'tblTempUsageDetail_20' ) end [2024-12-21 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067921', 'tblTempVendorCDR_20' ) start [2024-12-21 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067921', 'tblTempVendorCDR_20' ) end [2024-12-21 05:09:17] Production.INFO: ProcessCDR(1,14067921,1,1,2) [2024-12-21 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067921', 'tblTempUsageDetail_20' ) start [2024-12-21 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067921', 'tblTempUsageDetail_20' ) end [2024-12-21 05:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:09:20] Production.INFO: ==26894== Releasing lock... [2024-12-21 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:09:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:10:06 [end_date_ymd] => 2024-12-21 05:10:06 [RateCDR] => 1 ) [2024-12-21 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-21 02:10:06' and `end` < '2024-12-21 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-21 05:10:18] Production.INFO: count ==161 [2024-12-21 05:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:10:06 - End Time 2024-12-21 05:10:06 [2024-12-21 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067925', 'tblTempUsageDetail_20' ) start [2024-12-21 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067925', 'tblTempUsageDetail_20' ) end [2024-12-21 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067925', 'tblTempVendorCDR_20' ) start [2024-12-21 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067925', 'tblTempVendorCDR_20' ) end [2024-12-21 05:10:19] Production.INFO: ProcessCDR(1,14067925,1,1,2) [2024-12-21 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067925', 'tblTempUsageDetail_20' ) start [2024-12-21 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067925', 'tblTempUsageDetail_20' ) end [2024-12-21 05:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:10:22] Production.INFO: ==26973== Releasing lock... [2024-12-21 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:10:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:11:04 [end_date_ymd] => 2024-12-21 05:11:04 [RateCDR] => 1 ) [2024-12-21 05:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:11:04' and `end` < '2024-12-21 05:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:11:17] Production.INFO: count ==153 [2024-12-21 05:11:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:11:04 - End Time 2024-12-21 05:11:04 [2024-12-21 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067932', 'tblTempUsageDetail_20' ) start [2024-12-21 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067932', 'tblTempUsageDetail_20' ) end [2024-12-21 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067932', 'tblTempVendorCDR_20' ) start [2024-12-21 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067932', 'tblTempVendorCDR_20' ) end [2024-12-21 05:11:17] Production.INFO: ProcessCDR(1,14067932,1,1,2) [2024-12-21 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067932', 'tblTempUsageDetail_20' ) start [2024-12-21 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067932', 'tblTempUsageDetail_20' ) end [2024-12-21 05:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:11:20] Production.INFO: ==27057== Releasing lock... [2024-12-21 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:11:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:12:05 [end_date_ymd] => 2024-12-21 05:12:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:12:05' and `end` < '2024-12-21 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-21 05:12:18] Production.INFO: count ==152 [2024-12-21 05:12:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:12:05 - End Time 2024-12-21 05:12:05 [2024-12-21 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067937', 'tblTempUsageDetail_20' ) start [2024-12-21 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067937', 'tblTempUsageDetail_20' ) end [2024-12-21 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067937', 'tblTempVendorCDR_20' ) start [2024-12-21 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067937', 'tblTempVendorCDR_20' ) end [2024-12-21 05:12:18] Production.INFO: ProcessCDR(1,14067937,1,1,2) [2024-12-21 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067937', 'tblTempUsageDetail_20' ) start [2024-12-21 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067937', 'tblTempUsageDetail_20' ) end [2024-12-21 05:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:12:21] Production.INFO: ==27136== Releasing lock... [2024-12-21 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:12:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:13:05 [end_date_ymd] => 2024-12-21 05:13:05 [RateCDR] => 1 ) [2024-12-21 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:13:05' and `end` < '2024-12-21 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:13:16] Production.INFO: count ==152 [2024-12-21 05:13:16] Production.ERROR: pbx CDR StartTime 2024-12-21 02:13:05 - End Time 2024-12-21 05:13:05 [2024-12-21 05:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067942', 'tblTempUsageDetail_20' ) start [2024-12-21 05:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067942', 'tblTempUsageDetail_20' ) end [2024-12-21 05:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067942', 'tblTempVendorCDR_20' ) start [2024-12-21 05:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067942', 'tblTempVendorCDR_20' ) end [2024-12-21 05:13:16] Production.INFO: ProcessCDR(1,14067942,1,1,2) [2024-12-21 05:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067942', 'tblTempUsageDetail_20' ) start [2024-12-21 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067942', 'tblTempUsageDetail_20' ) end [2024-12-21 05:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:13:20] Production.INFO: ==27248== Releasing lock... [2024-12-21 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:13:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:14:05 [end_date_ymd] => 2024-12-21 05:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:14:05' and `end` < '2024-12-21 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-21 05:14:18] Production.INFO: count ==150 [2024-12-21 05:14:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:14:05 - End Time 2024-12-21 05:14:05 [2024-12-21 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067947', 'tblTempUsageDetail_20' ) start [2024-12-21 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067947', 'tblTempUsageDetail_20' ) end [2024-12-21 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067947', 'tblTempVendorCDR_20' ) start [2024-12-21 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067947', 'tblTempVendorCDR_20' ) end [2024-12-21 05:14:18] Production.INFO: ProcessCDR(1,14067947,1,1,2) [2024-12-21 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067947', 'tblTempUsageDetail_20' ) start [2024-12-21 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067947', 'tblTempUsageDetail_20' ) end [2024-12-21 05:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:14:21] Production.INFO: ==27327== Releasing lock... [2024-12-21 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:14:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:15:05 [end_date_ymd] => 2024-12-21 05:15:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:15:05' and `end` < '2024-12-21 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-21 05:15:16] Production.INFO: count ==150 [2024-12-21 05:15:16] Production.ERROR: pbx CDR StartTime 2024-12-21 02:15:05 - End Time 2024-12-21 05:15:05 [2024-12-21 05:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067952', 'tblTempUsageDetail_20' ) start [2024-12-21 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067952', 'tblTempUsageDetail_20' ) end [2024-12-21 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067952', 'tblTempVendorCDR_20' ) start [2024-12-21 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067952', 'tblTempVendorCDR_20' ) end [2024-12-21 05:15:16] Production.INFO: ProcessCDR(1,14067952,1,1,2) [2024-12-21 05:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067952', 'tblTempUsageDetail_20' ) start [2024-12-21 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067952', 'tblTempUsageDetail_20' ) end [2024-12-21 05:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:15:20] Production.INFO: ==27404== Releasing lock... [2024-12-21 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:15:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:16:05 [end_date_ymd] => 2024-12-21 05:16:05 [RateCDR] => 1 ) [2024-12-21 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:16:05' and `end` < '2024-12-21 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:16:17] Production.INFO: count ==150 [2024-12-21 05:16:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:16:05 - End Time 2024-12-21 05:16:05 [2024-12-21 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067957', 'tblTempUsageDetail_20' ) start [2024-12-21 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067957', 'tblTempUsageDetail_20' ) end [2024-12-21 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067957', 'tblTempVendorCDR_20' ) start [2024-12-21 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067957', 'tblTempVendorCDR_20' ) end [2024-12-21 05:16:17] Production.INFO: ProcessCDR(1,14067957,1,1,2) [2024-12-21 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067957', 'tblTempUsageDetail_20' ) start [2024-12-21 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067957', 'tblTempUsageDetail_20' ) end [2024-12-21 05:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:16:20] Production.INFO: ==27489== Releasing lock... [2024-12-21 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:16:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:17:04 [end_date_ymd] => 2024-12-21 05:17:04 [RateCDR] => 1 ) [2024-12-21 05: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-21 02:17:04' and `end` < '2024-12-21 05: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-21 05:17:16] Production.INFO: count ==148 [2024-12-21 05:17:16] Production.ERROR: pbx CDR StartTime 2024-12-21 02:17:04 - End Time 2024-12-21 05:17:04 [2024-12-21 05:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067962', 'tblTempUsageDetail_20' ) start [2024-12-21 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067962', 'tblTempUsageDetail_20' ) end [2024-12-21 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067962', 'tblTempVendorCDR_20' ) start [2024-12-21 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067962', 'tblTempVendorCDR_20' ) end [2024-12-21 05:17:16] Production.INFO: ProcessCDR(1,14067962,1,1,2) [2024-12-21 05:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067962', 'tblTempUsageDetail_20' ) start [2024-12-21 05:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067962', 'tblTempUsageDetail_20' ) end [2024-12-21 05:17:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:17:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:17:19] Production.INFO: ==27561== Releasing lock... [2024-12-21 05:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:17:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:18:04 [end_date_ymd] => 2024-12-21 05:18:04 [RateCDR] => 1 ) [2024-12-21 05: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-21 02:18:04' and `end` < '2024-12-21 05: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-21 05:18:17] Production.INFO: count ==148 [2024-12-21 05:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:18:04 - End Time 2024-12-21 05:18:04 [2024-12-21 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067967', 'tblTempUsageDetail_20' ) start [2024-12-21 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067967', 'tblTempUsageDetail_20' ) end [2024-12-21 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067967', 'tblTempVendorCDR_20' ) start [2024-12-21 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067967', 'tblTempVendorCDR_20' ) end [2024-12-21 05:18:17] Production.INFO: ProcessCDR(1,14067967,1,1,2) [2024-12-21 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067967', 'tblTempUsageDetail_20' ) start [2024-12-21 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067967', 'tblTempUsageDetail_20' ) end [2024-12-21 05:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:18:20] Production.INFO: ==27634== Releasing lock... [2024-12-21 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:18:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:19:05 [end_date_ymd] => 2024-12-21 05:19:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:19:05' and `end` < '2024-12-21 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-21 05:19:17] Production.INFO: count ==148 [2024-12-21 05:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:19:05 - End Time 2024-12-21 05:19:05 [2024-12-21 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067972', 'tblTempUsageDetail_20' ) start [2024-12-21 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067972', 'tblTempUsageDetail_20' ) end [2024-12-21 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067972', 'tblTempVendorCDR_20' ) start [2024-12-21 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067972', 'tblTempVendorCDR_20' ) end [2024-12-21 05:19:17] Production.INFO: ProcessCDR(1,14067972,1,1,2) [2024-12-21 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067972', 'tblTempUsageDetail_20' ) start [2024-12-21 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067972', 'tblTempUsageDetail_20' ) end [2024-12-21 05:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:19:20] Production.INFO: ==27712== Releasing lock... [2024-12-21 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:19:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:20:05 [end_date_ymd] => 2024-12-21 05:20:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:20:05' and `end` < '2024-12-21 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-21 05:20:17] Production.INFO: count ==139 [2024-12-21 05:20:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:20:05 - End Time 2024-12-21 05:20:05 [2024-12-21 05:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067977', 'tblTempUsageDetail_20' ) start [2024-12-21 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067977', 'tblTempUsageDetail_20' ) end [2024-12-21 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067977', 'tblTempVendorCDR_20' ) start [2024-12-21 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067977', 'tblTempVendorCDR_20' ) end [2024-12-21 05:20:17] Production.INFO: ProcessCDR(1,14067977,1,1,2) [2024-12-21 05:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067977', 'tblTempUsageDetail_20' ) start [2024-12-21 05:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067977', 'tblTempUsageDetail_20' ) end [2024-12-21 05:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:20:20] Production.INFO: ==27788== Releasing lock... [2024-12-21 05:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:20:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:21:05 [end_date_ymd] => 2024-12-21 05:21:05 [RateCDR] => 1 ) [2024-12-21 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:21:05' and `end` < '2024-12-21 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:21:17] Production.INFO: count ==130 [2024-12-21 05:21:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:21:05 - End Time 2024-12-21 05:21:05 [2024-12-21 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067983', 'tblTempUsageDetail_20' ) start [2024-12-21 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067983', 'tblTempUsageDetail_20' ) end [2024-12-21 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067983', 'tblTempVendorCDR_20' ) start [2024-12-21 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067983', 'tblTempVendorCDR_20' ) end [2024-12-21 05:21:17] Production.INFO: ProcessCDR(1,14067983,1,1,2) [2024-12-21 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067983', 'tblTempUsageDetail_20' ) start [2024-12-21 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067983', 'tblTempUsageDetail_20' ) end [2024-12-21 05:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:21:20] Production.INFO: ==27862== Releasing lock... [2024-12-21 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:21:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:22:05 [end_date_ymd] => 2024-12-21 05:22:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:22:05' and `end` < '2024-12-21 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-21 05:22:17] Production.INFO: count ==130 [2024-12-21 05:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:22:05 - End Time 2024-12-21 05:22:05 [2024-12-21 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067988', 'tblTempUsageDetail_20' ) start [2024-12-21 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067988', 'tblTempUsageDetail_20' ) end [2024-12-21 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067988', 'tblTempVendorCDR_20' ) start [2024-12-21 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067988', 'tblTempVendorCDR_20' ) end [2024-12-21 05:22:17] Production.INFO: ProcessCDR(1,14067988,1,1,2) [2024-12-21 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067988', 'tblTempUsageDetail_20' ) start [2024-12-21 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067988', 'tblTempUsageDetail_20' ) end [2024-12-21 05:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:22:20] Production.INFO: ==27936== Releasing lock... [2024-12-21 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:22:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:23:05 [end_date_ymd] => 2024-12-21 05:23:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:23:05' and `end` < '2024-12-21 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-21 05:23:17] Production.INFO: count ==130 [2024-12-21 05:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:23:05 - End Time 2024-12-21 05:23:05 [2024-12-21 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067993', 'tblTempUsageDetail_20' ) start [2024-12-21 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067993', 'tblTempUsageDetail_20' ) end [2024-12-21 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067993', 'tblTempVendorCDR_20' ) start [2024-12-21 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067993', 'tblTempVendorCDR_20' ) end [2024-12-21 05:23:17] Production.INFO: ProcessCDR(1,14067993,1,1,2) [2024-12-21 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067993', 'tblTempUsageDetail_20' ) start [2024-12-21 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067993', 'tblTempUsageDetail_20' ) end [2024-12-21 05:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:23:20] Production.INFO: ==28012== Releasing lock... [2024-12-21 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:23:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:24:04 [end_date_ymd] => 2024-12-21 05:24:04 [RateCDR] => 1 ) [2024-12-21 05: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-21 02:24:04' and `end` < '2024-12-21 05: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-21 05:24:18] Production.INFO: count ==130 [2024-12-21 05:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:24:04 - End Time 2024-12-21 05:24:04 [2024-12-21 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067998', 'tblTempUsageDetail_20' ) start [2024-12-21 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14067998', 'tblTempUsageDetail_20' ) end [2024-12-21 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067998', 'tblTempVendorCDR_20' ) start [2024-12-21 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14067998', 'tblTempVendorCDR_20' ) end [2024-12-21 05:24:18] Production.INFO: ProcessCDR(1,14067998,1,1,2) [2024-12-21 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14067998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14067998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14067998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14067998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067998', 'tblTempUsageDetail_20' ) start [2024-12-21 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14067998', 'tblTempUsageDetail_20' ) end [2024-12-21 05:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:24:21] Production.INFO: ==28086== Releasing lock... [2024-12-21 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:24:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:25:05 [end_date_ymd] => 2024-12-21 05:25:05 [RateCDR] => 1 ) [2024-12-21 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:25:05' and `end` < '2024-12-21 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:25:17] Production.INFO: count ==129 [2024-12-21 05:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:25:05 - End Time 2024-12-21 05:25:05 [2024-12-21 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068003', 'tblTempUsageDetail_20' ) start [2024-12-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068003', 'tblTempUsageDetail_20' ) end [2024-12-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068003', 'tblTempVendorCDR_20' ) start [2024-12-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068003', 'tblTempVendorCDR_20' ) end [2024-12-21 05:25:17] Production.INFO: ProcessCDR(1,14068003,1,1,2) [2024-12-21 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068003', 'tblTempUsageDetail_20' ) start [2024-12-21 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068003', 'tblTempUsageDetail_20' ) end [2024-12-21 05:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:25:20] Production.INFO: ==28157== Releasing lock... [2024-12-21 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:25:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:26:05 [end_date_ymd] => 2024-12-21 05:26:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:26:05' and `end` < '2024-12-21 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-21 05:26:17] Production.INFO: count ==129 [2024-12-21 05:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:26:05 - End Time 2024-12-21 05:26:05 [2024-12-21 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068008', 'tblTempUsageDetail_20' ) start [2024-12-21 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068008', 'tblTempUsageDetail_20' ) end [2024-12-21 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068008', 'tblTempVendorCDR_20' ) start [2024-12-21 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068008', 'tblTempVendorCDR_20' ) end [2024-12-21 05:26:17] Production.INFO: ProcessCDR(1,14068008,1,1,2) [2024-12-21 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068008', 'tblTempUsageDetail_20' ) start [2024-12-21 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068008', 'tblTempUsageDetail_20' ) end [2024-12-21 05:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:26:20] Production.INFO: ==28232== Releasing lock... [2024-12-21 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:26:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:27:05 [end_date_ymd] => 2024-12-21 05:27:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:27:05' and `end` < '2024-12-21 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-21 05:27:18] Production.INFO: count ==142 [2024-12-21 05:27:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:27:05 - End Time 2024-12-21 05:27:05 [2024-12-21 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068013', 'tblTempUsageDetail_20' ) start [2024-12-21 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068013', 'tblTempUsageDetail_20' ) end [2024-12-21 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068013', 'tblTempVendorCDR_20' ) start [2024-12-21 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068013', 'tblTempVendorCDR_20' ) end [2024-12-21 05:27:18] Production.INFO: ProcessCDR(1,14068013,1,1,2) [2024-12-21 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068013', 'tblTempUsageDetail_20' ) start [2024-12-21 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068013', 'tblTempUsageDetail_20' ) end [2024-12-21 05:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:27:21] Production.INFO: ==28305== Releasing lock... [2024-12-21 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:27:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:28:04 [end_date_ymd] => 2024-12-21 05:28:04 [RateCDR] => 1 ) [2024-12-21 05: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-21 02:28:04' and `end` < '2024-12-21 05: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-21 05:28:18] Production.INFO: count ==140 [2024-12-21 05:28:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:28:04 - End Time 2024-12-21 05:28:04 [2024-12-21 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068018', 'tblTempUsageDetail_20' ) start [2024-12-21 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068018', 'tblTempUsageDetail_20' ) end [2024-12-21 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068018', 'tblTempVendorCDR_20' ) start [2024-12-21 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068018', 'tblTempVendorCDR_20' ) end [2024-12-21 05:28:18] Production.INFO: ProcessCDR(1,14068018,1,1,2) [2024-12-21 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068018', 'tblTempUsageDetail_20' ) start [2024-12-21 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068018', 'tblTempUsageDetail_20' ) end [2024-12-21 05:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:28:21] Production.INFO: ==28376== Releasing lock... [2024-12-21 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:28:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:29:05 [end_date_ymd] => 2024-12-21 05:29:05 [RateCDR] => 1 ) [2024-12-21 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:29:05' and `end` < '2024-12-21 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:29:17] Production.INFO: count ==138 [2024-12-21 05:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:29:05 - End Time 2024-12-21 05:29:05 [2024-12-21 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068023', 'tblTempUsageDetail_20' ) start [2024-12-21 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068023', 'tblTempUsageDetail_20' ) end [2024-12-21 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068023', 'tblTempVendorCDR_20' ) start [2024-12-21 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068023', 'tblTempVendorCDR_20' ) end [2024-12-21 05:29:17] Production.INFO: ProcessCDR(1,14068023,1,1,2) [2024-12-21 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068023', 'tblTempUsageDetail_20' ) start [2024-12-21 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068023', 'tblTempUsageDetail_20' ) end [2024-12-21 05:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:29:20] Production.INFO: ==28487== Releasing lock... [2024-12-21 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:29:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:30:06 [end_date_ymd] => 2024-12-21 05:30:06 [RateCDR] => 1 ) [2024-12-21 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:30:06' and `end` < '2024-12-21 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:30:18] Production.INFO: count ==129 [2024-12-21 05:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:30:06 - End Time 2024-12-21 05:30:06 [2024-12-21 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068029', 'tblTempUsageDetail_20' ) start [2024-12-21 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068029', 'tblTempUsageDetail_20' ) end [2024-12-21 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068029', 'tblTempVendorCDR_20' ) start [2024-12-21 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068029', 'tblTempVendorCDR_20' ) end [2024-12-21 05:30:18] Production.INFO: ProcessCDR(1,14068029,1,1,2) [2024-12-21 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068029', 'tblTempUsageDetail_20' ) start [2024-12-21 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068029', 'tblTempUsageDetail_20' ) end [2024-12-21 05:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:30:21] Production.INFO: ==28566== Releasing lock... [2024-12-21 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:30:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:31:05 [end_date_ymd] => 2024-12-21 05:31:05 [RateCDR] => 1 ) [2024-12-21 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:31:05' and `end` < '2024-12-21 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:31:17] Production.INFO: count ==116 [2024-12-21 05:31:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:31:05 - End Time 2024-12-21 05:31:05 [2024-12-21 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068034', 'tblTempUsageDetail_20' ) start [2024-12-21 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068034', 'tblTempUsageDetail_20' ) end [2024-12-21 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068034', 'tblTempVendorCDR_20' ) start [2024-12-21 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068034', 'tblTempVendorCDR_20' ) end [2024-12-21 05:31:17] Production.INFO: ProcessCDR(1,14068034,1,1,2) [2024-12-21 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068034', 'tblTempUsageDetail_20' ) start [2024-12-21 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068034', 'tblTempUsageDetail_20' ) end [2024-12-21 05:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:31:21] Production.INFO: ==28642== Releasing lock... [2024-12-21 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:32:05 [end_date_ymd] => 2024-12-21 05:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:32:05' and `end` < '2024-12-21 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-21 05:32:17] Production.INFO: count ==116 [2024-12-21 05:32:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:32:05 - End Time 2024-12-21 05:32:05 [2024-12-21 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068039', 'tblTempUsageDetail_20' ) start [2024-12-21 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068039', 'tblTempUsageDetail_20' ) end [2024-12-21 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068039', 'tblTempVendorCDR_20' ) start [2024-12-21 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068039', 'tblTempVendorCDR_20' ) end [2024-12-21 05:32:17] Production.INFO: ProcessCDR(1,14068039,1,1,2) [2024-12-21 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068039', 'tblTempUsageDetail_20' ) start [2024-12-21 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068039', 'tblTempUsageDetail_20' ) end [2024-12-21 05:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:32:21] Production.INFO: ==28716== Releasing lock... [2024-12-21 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:32:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:33:05 [end_date_ymd] => 2024-12-21 05:33:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:33:05' and `end` < '2024-12-21 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-21 05:33:16] Production.INFO: count ==116 [2024-12-21 05:33:16] Production.ERROR: pbx CDR StartTime 2024-12-21 02:33:05 - End Time 2024-12-21 05:33:05 [2024-12-21 05:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068044', 'tblTempUsageDetail_20' ) start [2024-12-21 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068044', 'tblTempUsageDetail_20' ) end [2024-12-21 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068044', 'tblTempVendorCDR_20' ) start [2024-12-21 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068044', 'tblTempVendorCDR_20' ) end [2024-12-21 05:33:17] Production.INFO: ProcessCDR(1,14068044,1,1,2) [2024-12-21 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068044', 'tblTempUsageDetail_20' ) start [2024-12-21 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068044', 'tblTempUsageDetail_20' ) end [2024-12-21 05:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:33:20] Production.INFO: ==28788== Releasing lock... [2024-12-21 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:33:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:34:05 [end_date_ymd] => 2024-12-21 05:34:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:34:05' and `end` < '2024-12-21 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-21 05:34:18] Production.INFO: count ==116 [2024-12-21 05:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:34:05 - End Time 2024-12-21 05:34:05 [2024-12-21 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068049', 'tblTempUsageDetail_20' ) start [2024-12-21 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068049', 'tblTempUsageDetail_20' ) end [2024-12-21 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068049', 'tblTempVendorCDR_20' ) start [2024-12-21 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068049', 'tblTempVendorCDR_20' ) end [2024-12-21 05:34:18] Production.INFO: ProcessCDR(1,14068049,1,1,2) [2024-12-21 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068049', 'tblTempUsageDetail_20' ) start [2024-12-21 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068049', 'tblTempUsageDetail_20' ) end [2024-12-21 05:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:34:21] Production.INFO: ==28859== Releasing lock... [2024-12-21 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:34:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:35:04 [end_date_ymd] => 2024-12-21 05:35:04 [RateCDR] => 1 ) [2024-12-21 05:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:35:04' and `end` < '2024-12-21 05:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:35:17] Production.INFO: count ==114 [2024-12-21 05:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:35:04 - End Time 2024-12-21 05:35:04 [2024-12-21 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068054', 'tblTempUsageDetail_20' ) start [2024-12-21 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068054', 'tblTempUsageDetail_20' ) end [2024-12-21 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068054', 'tblTempVendorCDR_20' ) start [2024-12-21 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068054', 'tblTempVendorCDR_20' ) end [2024-12-21 05:35:17] Production.INFO: ProcessCDR(1,14068054,1,1,2) [2024-12-21 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068054', 'tblTempUsageDetail_20' ) start [2024-12-21 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068054', 'tblTempUsageDetail_20' ) end [2024-12-21 05:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:35:20] Production.INFO: ==28931== Releasing lock... [2024-12-21 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:35:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:36:05 [end_date_ymd] => 2024-12-21 05:36:05 [RateCDR] => 1 ) [2024-12-21 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:36:05' and `end` < '2024-12-21 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:36:17] Production.INFO: count ==113 [2024-12-21 05:36:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:36:05 - End Time 2024-12-21 05:36:05 [2024-12-21 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068059', 'tblTempUsageDetail_20' ) start [2024-12-21 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068059', 'tblTempUsageDetail_20' ) end [2024-12-21 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068059', 'tblTempVendorCDR_20' ) start [2024-12-21 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068059', 'tblTempVendorCDR_20' ) end [2024-12-21 05:36:17] Production.INFO: ProcessCDR(1,14068059,1,1,2) [2024-12-21 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068059', 'tblTempUsageDetail_20' ) start [2024-12-21 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068059', 'tblTempUsageDetail_20' ) end [2024-12-21 05:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:36:20] Production.INFO: ==29006== Releasing lock... [2024-12-21 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:36:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:37:04 [end_date_ymd] => 2024-12-21 05:37:04 [RateCDR] => 1 ) [2024-12-21 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-21 02:37:04' and `end` < '2024-12-21 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-21 05:37:16] Production.INFO: count ==111 [2024-12-21 05:37:16] Production.ERROR: pbx CDR StartTime 2024-12-21 02:37:04 - End Time 2024-12-21 05:37:04 [2024-12-21 05:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068064', 'tblTempUsageDetail_20' ) start [2024-12-21 05:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068064', 'tblTempUsageDetail_20' ) end [2024-12-21 05:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068064', 'tblTempVendorCDR_20' ) start [2024-12-21 05:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068064', 'tblTempVendorCDR_20' ) end [2024-12-21 05:37:16] Production.INFO: ProcessCDR(1,14068064,1,1,2) [2024-12-21 05:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068064', 'tblTempUsageDetail_20' ) start [2024-12-21 05:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068064', 'tblTempUsageDetail_20' ) end [2024-12-21 05:37:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:37:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:37:19] Production.INFO: ==29079== Releasing lock... [2024-12-21 05:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:37:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:38:05 [end_date_ymd] => 2024-12-21 05:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:38:05' and `end` < '2024-12-21 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-21 05:38:17] Production.INFO: count ==110 [2024-12-21 05:38:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:38:05 - End Time 2024-12-21 05:38:05 [2024-12-21 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068069', 'tblTempUsageDetail_20' ) start [2024-12-21 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068069', 'tblTempUsageDetail_20' ) end [2024-12-21 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068069', 'tblTempVendorCDR_20' ) start [2024-12-21 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068069', 'tblTempVendorCDR_20' ) end [2024-12-21 05:38:17] Production.INFO: ProcessCDR(1,14068069,1,1,2) [2024-12-21 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068069', 'tblTempUsageDetail_20' ) start [2024-12-21 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068069', 'tblTempUsageDetail_20' ) end [2024-12-21 05:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:38:21] Production.INFO: ==29154== Releasing lock... [2024-12-21 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:38:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:39:04 [end_date_ymd] => 2024-12-21 05:39:04 [RateCDR] => 1 ) [2024-12-21 05:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:39:04' and `end` < '2024-12-21 05:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:39:16] Production.INFO: count ==110 [2024-12-21 05:39:16] Production.ERROR: pbx CDR StartTime 2024-12-21 02:39:04 - End Time 2024-12-21 05:39:04 [2024-12-21 05:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068074', 'tblTempUsageDetail_20' ) start [2024-12-21 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068074', 'tblTempUsageDetail_20' ) end [2024-12-21 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068074', 'tblTempVendorCDR_20' ) start [2024-12-21 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068074', 'tblTempVendorCDR_20' ) end [2024-12-21 05:39:16] Production.INFO: ProcessCDR(1,14068074,1,1,2) [2024-12-21 05:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068074', 'tblTempUsageDetail_20' ) start [2024-12-21 05:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068074', 'tblTempUsageDetail_20' ) end [2024-12-21 05:39:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:39:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:39:19] Production.INFO: ==29230== Releasing lock... [2024-12-21 05:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:39:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:40:05 [end_date_ymd] => 2024-12-21 05:40:05 [RateCDR] => 1 ) [2024-12-21 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:40:05' and `end` < '2024-12-21 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:40:18] Production.INFO: count ==104 [2024-12-21 05:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:40:05 - End Time 2024-12-21 05:40:05 [2024-12-21 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068080', 'tblTempUsageDetail_20' ) start [2024-12-21 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068080', 'tblTempUsageDetail_20' ) end [2024-12-21 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068080', 'tblTempVendorCDR_20' ) start [2024-12-21 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068080', 'tblTempVendorCDR_20' ) end [2024-12-21 05:40:18] Production.INFO: ProcessCDR(1,14068080,1,1,2) [2024-12-21 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068080', 'tblTempUsageDetail_20' ) start [2024-12-21 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068080', 'tblTempUsageDetail_20' ) end [2024-12-21 05:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:40:22] Production.INFO: ==29309== Releasing lock... [2024-12-21 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:40:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:41:05 [end_date_ymd] => 2024-12-21 05:41:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:41:05' and `end` < '2024-12-21 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-21 05:41:17] Production.INFO: count ==96 [2024-12-21 05:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:41:05 - End Time 2024-12-21 05:41:05 [2024-12-21 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068085', 'tblTempUsageDetail_20' ) start [2024-12-21 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068085', 'tblTempUsageDetail_20' ) end [2024-12-21 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068085', 'tblTempVendorCDR_20' ) start [2024-12-21 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068085', 'tblTempVendorCDR_20' ) end [2024-12-21 05:41:17] Production.INFO: ProcessCDR(1,14068085,1,1,2) [2024-12-21 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068085', 'tblTempUsageDetail_20' ) start [2024-12-21 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068085', 'tblTempUsageDetail_20' ) end [2024-12-21 05:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:41:20] Production.INFO: ==29386== Releasing lock... [2024-12-21 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:41:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:42:05 [end_date_ymd] => 2024-12-21 05:42:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:42:05' and `end` < '2024-12-21 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-21 05:42:17] Production.INFO: count ==96 [2024-12-21 05:42:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:42:05 - End Time 2024-12-21 05:42:05 [2024-12-21 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068090', 'tblTempUsageDetail_20' ) start [2024-12-21 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068090', 'tblTempUsageDetail_20' ) end [2024-12-21 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068090', 'tblTempVendorCDR_20' ) start [2024-12-21 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068090', 'tblTempVendorCDR_20' ) end [2024-12-21 05:42:17] Production.INFO: ProcessCDR(1,14068090,1,1,2) [2024-12-21 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068090', 'tblTempUsageDetail_20' ) start [2024-12-21 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068090', 'tblTempUsageDetail_20' ) end [2024-12-21 05:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:42:20] Production.INFO: ==29465== Releasing lock... [2024-12-21 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:42:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:43:05 [end_date_ymd] => 2024-12-21 05:43:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:43:05' and `end` < '2024-12-21 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-21 05:43:17] Production.INFO: count ==96 [2024-12-21 05:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:43:05 - End Time 2024-12-21 05:43:05 [2024-12-21 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068095', 'tblTempUsageDetail_20' ) start [2024-12-21 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068095', 'tblTempUsageDetail_20' ) end [2024-12-21 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068095', 'tblTempVendorCDR_20' ) start [2024-12-21 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068095', 'tblTempVendorCDR_20' ) end [2024-12-21 05:43:17] Production.INFO: ProcessCDR(1,14068095,1,1,2) [2024-12-21 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068095', 'tblTempUsageDetail_20' ) start [2024-12-21 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068095', 'tblTempUsageDetail_20' ) end [2024-12-21 05:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:43:20] Production.INFO: ==29544== Releasing lock... [2024-12-21 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:43:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:44:04 [end_date_ymd] => 2024-12-21 05:44:04 [RateCDR] => 1 ) [2024-12-21 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-21 02:44:04' and `end` < '2024-12-21 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-21 05:44:17] Production.INFO: count ==96 [2024-12-21 05:44:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:44:04 - End Time 2024-12-21 05:44:04 [2024-12-21 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068100', 'tblTempUsageDetail_20' ) start [2024-12-21 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068100', 'tblTempUsageDetail_20' ) end [2024-12-21 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068100', 'tblTempVendorCDR_20' ) start [2024-12-21 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068100', 'tblTempVendorCDR_20' ) end [2024-12-21 05:44:17] Production.INFO: ProcessCDR(1,14068100,1,1,2) [2024-12-21 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068100', 'tblTempUsageDetail_20' ) start [2024-12-21 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068100', 'tblTempUsageDetail_20' ) end [2024-12-21 05:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:44:20] Production.INFO: ==29626== Releasing lock... [2024-12-21 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:44:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:45:05 [end_date_ymd] => 2024-12-21 05:45:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:45:05' and `end` < '2024-12-21 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-21 05:45:17] Production.INFO: count ==96 [2024-12-21 05:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:45:05 - End Time 2024-12-21 05:45:05 [2024-12-21 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068105', 'tblTempUsageDetail_20' ) start [2024-12-21 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068105', 'tblTempUsageDetail_20' ) end [2024-12-21 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068105', 'tblTempVendorCDR_20' ) start [2024-12-21 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068105', 'tblTempVendorCDR_20' ) end [2024-12-21 05:45:17] Production.INFO: ProcessCDR(1,14068105,1,1,2) [2024-12-21 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068105', 'tblTempUsageDetail_20' ) start [2024-12-21 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068105', 'tblTempUsageDetail_20' ) end [2024-12-21 05:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:45:20] Production.INFO: ==29746== Releasing lock... [2024-12-21 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:45:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:46:04 [end_date_ymd] => 2024-12-21 05:46:04 [RateCDR] => 1 ) [2024-12-21 05:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:46:04' and `end` < '2024-12-21 05:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:46:17] Production.INFO: count ==96 [2024-12-21 05:46:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:46:04 - End Time 2024-12-21 05:46:04 [2024-12-21 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068110', 'tblTempUsageDetail_20' ) start [2024-12-21 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068110', 'tblTempUsageDetail_20' ) end [2024-12-21 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068110', 'tblTempVendorCDR_20' ) start [2024-12-21 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068110', 'tblTempVendorCDR_20' ) end [2024-12-21 05:46:17] Production.INFO: ProcessCDR(1,14068110,1,1,2) [2024-12-21 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068110', 'tblTempUsageDetail_20' ) start [2024-12-21 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068110', 'tblTempUsageDetail_20' ) end [2024-12-21 05:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:46:20] Production.INFO: ==29827== Releasing lock... [2024-12-21 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:46:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:47:05 [end_date_ymd] => 2024-12-21 05:47:05 [RateCDR] => 1 ) [2024-12-21 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:47:05' and `end` < '2024-12-21 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:47:17] Production.INFO: count ==95 [2024-12-21 05:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:47:05 - End Time 2024-12-21 05:47:05 [2024-12-21 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068114', 'tblTempUsageDetail_20' ) start [2024-12-21 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068114', 'tblTempUsageDetail_20' ) end [2024-12-21 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068114', 'tblTempVendorCDR_20' ) start [2024-12-21 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068114', 'tblTempVendorCDR_20' ) end [2024-12-21 05:47:17] Production.INFO: ProcessCDR(1,14068114,1,1,2) [2024-12-21 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068114', 'tblTempUsageDetail_20' ) start [2024-12-21 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068114', 'tblTempUsageDetail_20' ) end [2024-12-21 05:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:47:20] Production.INFO: ==29915== Releasing lock... [2024-12-21 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:47:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:48:05 [end_date_ymd] => 2024-12-21 05:48:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:48:05' and `end` < '2024-12-21 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-21 05:48:18] Production.INFO: count ==95 [2024-12-21 05:48:18] Production.ERROR: pbx CDR StartTime 2024-12-21 02:48:05 - End Time 2024-12-21 05:48:05 [2024-12-21 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068120', 'tblTempUsageDetail_20' ) start [2024-12-21 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068120', 'tblTempUsageDetail_20' ) end [2024-12-21 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068120', 'tblTempVendorCDR_20' ) start [2024-12-21 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068120', 'tblTempVendorCDR_20' ) end [2024-12-21 05:48:18] Production.INFO: ProcessCDR(1,14068120,1,1,2) [2024-12-21 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068120', 'tblTempUsageDetail_20' ) start [2024-12-21 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068120', 'tblTempUsageDetail_20' ) end [2024-12-21 05:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:48:21] Production.INFO: ==30002== Releasing lock... [2024-12-21 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:48:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:49:04 [end_date_ymd] => 2024-12-21 05:49:04 [RateCDR] => 1 ) [2024-12-21 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-21 02:49:04' and `end` < '2024-12-21 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-21 05:49:17] Production.INFO: count ==95 [2024-12-21 05:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:49:04 - End Time 2024-12-21 05:49:04 [2024-12-21 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068125', 'tblTempUsageDetail_20' ) start [2024-12-21 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068125', 'tblTempUsageDetail_20' ) end [2024-12-21 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068125', 'tblTempVendorCDR_20' ) start [2024-12-21 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068125', 'tblTempVendorCDR_20' ) end [2024-12-21 05:49:17] Production.INFO: ProcessCDR(1,14068125,1,1,2) [2024-12-21 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068125', 'tblTempUsageDetail_20' ) start [2024-12-21 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068125', 'tblTempUsageDetail_20' ) end [2024-12-21 05:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:49:20] Production.INFO: ==30083== Releasing lock... [2024-12-21 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:49:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:50:06 [end_date_ymd] => 2024-12-21 05:50:06 [RateCDR] => 1 ) [2024-12-21 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:50:06' and `end` < '2024-12-21 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:50:19] Production.INFO: count ==87 [2024-12-21 05:50:19] Production.ERROR: pbx CDR StartTime 2024-12-21 02:50:06 - End Time 2024-12-21 05:50:06 [2024-12-21 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068130', 'tblTempUsageDetail_20' ) start [2024-12-21 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068130', 'tblTempUsageDetail_20' ) end [2024-12-21 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068130', 'tblTempVendorCDR_20' ) start [2024-12-21 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068130', 'tblTempVendorCDR_20' ) end [2024-12-21 05:50:19] Production.INFO: ProcessCDR(1,14068130,1,1,2) [2024-12-21 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068130', 'tblTempUsageDetail_20' ) start [2024-12-21 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068130', 'tblTempUsageDetail_20' ) end [2024-12-21 05:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:50:22] Production.INFO: ==30171== Releasing lock... [2024-12-21 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:50:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:51:05 [end_date_ymd] => 2024-12-21 05:51:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:51:05' and `end` < '2024-12-21 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-21 05:51:17] Production.INFO: count ==87 [2024-12-21 05:51:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:51:05 - End Time 2024-12-21 05:51:05 [2024-12-21 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068136', 'tblTempUsageDetail_20' ) start [2024-12-21 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068136', 'tblTempUsageDetail_20' ) end [2024-12-21 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068136', 'tblTempVendorCDR_20' ) start [2024-12-21 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068136', 'tblTempVendorCDR_20' ) end [2024-12-21 05:51:17] Production.INFO: ProcessCDR(1,14068136,1,1,2) [2024-12-21 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068136', 'tblTempUsageDetail_20' ) start [2024-12-21 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068136', 'tblTempUsageDetail_20' ) end [2024-12-21 05:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:51:21] Production.INFO: ==30263== Releasing lock... [2024-12-21 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:51:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:52:05 [end_date_ymd] => 2024-12-21 05:52:05 [RateCDR] => 1 ) [2024-12-21 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:52:05' and `end` < '2024-12-21 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:52:17] Production.INFO: count ==87 [2024-12-21 05:52:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:52:05 - End Time 2024-12-21 05:52:05 [2024-12-21 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068141', 'tblTempUsageDetail_20' ) start [2024-12-21 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068141', 'tblTempUsageDetail_20' ) end [2024-12-21 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068141', 'tblTempVendorCDR_20' ) start [2024-12-21 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068141', 'tblTempVendorCDR_20' ) end [2024-12-21 05:52:17] Production.INFO: ProcessCDR(1,14068141,1,1,2) [2024-12-21 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068141', 'tblTempUsageDetail_20' ) start [2024-12-21 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068141', 'tblTempUsageDetail_20' ) end [2024-12-21 05:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:52:21] Production.INFO: ==30344== Releasing lock... [2024-12-21 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:52:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:53:04 [end_date_ymd] => 2024-12-21 05:53:04 [RateCDR] => 1 ) [2024-12-21 05:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:53:04' and `end` < '2024-12-21 05:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:53:16] Production.INFO: count ==87 [2024-12-21 05:53:16] Production.ERROR: pbx CDR StartTime 2024-12-21 02:53:04 - End Time 2024-12-21 05:53:04 [2024-12-21 05:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068146', 'tblTempUsageDetail_20' ) start [2024-12-21 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068146', 'tblTempUsageDetail_20' ) end [2024-12-21 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068146', 'tblTempVendorCDR_20' ) start [2024-12-21 05:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068146', 'tblTempVendorCDR_20' ) end [2024-12-21 05:53:16] Production.INFO: ProcessCDR(1,14068146,1,1,2) [2024-12-21 05:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068146', 'tblTempUsageDetail_20' ) start [2024-12-21 05:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068146', 'tblTempUsageDetail_20' ) end [2024-12-21 05:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:53:19] Production.INFO: ==30430== Releasing lock... [2024-12-21 05:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:53:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:54:05 [end_date_ymd] => 2024-12-21 05:54:05 [RateCDR] => 1 ) [2024-12-21 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:54:05' and `end` < '2024-12-21 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:54:17] Production.INFO: count ==87 [2024-12-21 05:54:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:54:05 - End Time 2024-12-21 05:54:05 [2024-12-21 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068151', 'tblTempUsageDetail_20' ) start [2024-12-21 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068151', 'tblTempUsageDetail_20' ) end [2024-12-21 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068151', 'tblTempVendorCDR_20' ) start [2024-12-21 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068151', 'tblTempVendorCDR_20' ) end [2024-12-21 05:54:17] Production.INFO: ProcessCDR(1,14068151,1,1,2) [2024-12-21 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068151', 'tblTempUsageDetail_20' ) start [2024-12-21 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068151', 'tblTempUsageDetail_20' ) end [2024-12-21 05:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:54:20] Production.INFO: ==30514== Releasing lock... [2024-12-21 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:54:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:55:04 [end_date_ymd] => 2024-12-21 05:55:04 [RateCDR] => 1 ) [2024-12-21 05:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:55:04' and `end` < '2024-12-21 05:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:55:16] Production.INFO: count ==84 [2024-12-21 05:55:16] Production.ERROR: pbx CDR StartTime 2024-12-21 02:55:04 - End Time 2024-12-21 05:55:04 [2024-12-21 05:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068156', 'tblTempUsageDetail_20' ) start [2024-12-21 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068156', 'tblTempUsageDetail_20' ) end [2024-12-21 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068156', 'tblTempVendorCDR_20' ) start [2024-12-21 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068156', 'tblTempVendorCDR_20' ) end [2024-12-21 05:55:16] Production.INFO: ProcessCDR(1,14068156,1,1,2) [2024-12-21 05:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068156', 'tblTempUsageDetail_20' ) start [2024-12-21 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068156', 'tblTempUsageDetail_20' ) end [2024-12-21 05:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:55:20] Production.INFO: ==30599== Releasing lock... [2024-12-21 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:55:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:56:05 [end_date_ymd] => 2024-12-21 05:56:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:56:05' and `end` < '2024-12-21 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-21 05:56:19] Production.INFO: count ==84 [2024-12-21 05:56:19] Production.ERROR: pbx CDR StartTime 2024-12-21 02:56:05 - End Time 2024-12-21 05:56:05 [2024-12-21 05:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068161', 'tblTempUsageDetail_20' ) start [2024-12-21 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068161', 'tblTempUsageDetail_20' ) end [2024-12-21 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068161', 'tblTempVendorCDR_20' ) start [2024-12-21 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068161', 'tblTempVendorCDR_20' ) end [2024-12-21 05:56:19] Production.INFO: ProcessCDR(1,14068161,1,1,2) [2024-12-21 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068161', 'tblTempUsageDetail_20' ) start [2024-12-21 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068161', 'tblTempUsageDetail_20' ) end [2024-12-21 05:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:56:22] Production.INFO: ==30689== Releasing lock... [2024-12-21 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:56:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:57:05 [end_date_ymd] => 2024-12-21 05:57:05 [RateCDR] => 1 ) [2024-12-21 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-21 02:57:05' and `end` < '2024-12-21 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-21 05:57:17] Production.INFO: count ==84 [2024-12-21 05:57:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:57:05 - End Time 2024-12-21 05:57:05 [2024-12-21 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068166', 'tblTempUsageDetail_20' ) start [2024-12-21 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068166', 'tblTempUsageDetail_20' ) end [2024-12-21 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068166', 'tblTempVendorCDR_20' ) start [2024-12-21 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068166', 'tblTempVendorCDR_20' ) end [2024-12-21 05:57:17] Production.INFO: ProcessCDR(1,14068166,1,1,2) [2024-12-21 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068166', 'tblTempUsageDetail_20' ) start [2024-12-21 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068166', 'tblTempUsageDetail_20' ) end [2024-12-21 05:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:57:21] Production.INFO: ==30771== Releasing lock... [2024-12-21 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:57:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:58:05 [end_date_ymd] => 2024-12-21 05:58:05 [RateCDR] => 1 ) [2024-12-21 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:58:05' and `end` < '2024-12-21 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:58:17] Production.INFO: count ==84 [2024-12-21 05:58:17] Production.ERROR: pbx CDR StartTime 2024-12-21 02:58:05 - End Time 2024-12-21 05:58:05 [2024-12-21 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068171', 'tblTempUsageDetail_20' ) start [2024-12-21 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068171', 'tblTempUsageDetail_20' ) end [2024-12-21 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068171', 'tblTempVendorCDR_20' ) start [2024-12-21 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068171', 'tblTempVendorCDR_20' ) end [2024-12-21 05:58:17] Production.INFO: ProcessCDR(1,14068171,1,1,2) [2024-12-21 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068171', 'tblTempUsageDetail_20' ) start [2024-12-21 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068171', 'tblTempUsageDetail_20' ) end [2024-12-21 05:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:58:20] Production.INFO: ==30856== Releasing lock... [2024-12-21 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:58:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 02:59:04 [end_date_ymd] => 2024-12-21 05:59:04 [RateCDR] => 1 ) [2024-12-21 05:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 02:59:04' and `end` < '2024-12-21 05:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 05:59:16] Production.INFO: count ==84 [2024-12-21 05:59:16] Production.ERROR: pbx CDR StartTime 2024-12-21 02:59:04 - End Time 2024-12-21 05:59:04 [2024-12-21 05:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068176', 'tblTempUsageDetail_20' ) start [2024-12-21 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068176', 'tblTempUsageDetail_20' ) end [2024-12-21 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068176', 'tblTempVendorCDR_20' ) start [2024-12-21 05:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068176', 'tblTempVendorCDR_20' ) end [2024-12-21 05:59:16] Production.INFO: ProcessCDR(1,14068176,1,1,2) [2024-12-21 05:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 05:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:59:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 05:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068176', 'tblTempUsageDetail_20' ) start [2024-12-21 05:59:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068176', 'tblTempUsageDetail_20' ) end [2024-12-21 05:59:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 05:59:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 05:59:19] Production.INFO: ==30936== Releasing lock... [2024-12-21 05:59:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 05:59:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:00:05 [end_date_ymd] => 2024-12-21 06:00:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:00:05' and `end` < '2024-12-21 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-21 06:00:17] Production.INFO: count ==82 [2024-12-21 06:00:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:00:05 - End Time 2024-12-21 06:00:05 [2024-12-21 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068181', 'tblTempUsageDetail_20' ) start [2024-12-21 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068181', 'tblTempUsageDetail_20' ) end [2024-12-21 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068181', 'tblTempVendorCDR_20' ) start [2024-12-21 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068181', 'tblTempVendorCDR_20' ) end [2024-12-21 06:00:17] Production.INFO: ProcessCDR(1,14068181,1,1,2) [2024-12-21 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068181', 'tblTempUsageDetail_20' ) start [2024-12-21 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068181', 'tblTempUsageDetail_20' ) end [2024-12-21 06:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:00:20] Production.INFO: ==31067== Releasing lock... [2024-12-21 06:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:00:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:01:05 [end_date_ymd] => 2024-12-21 06:01:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:01:05' and `end` < '2024-12-21 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-21 06:01:18] Production.INFO: count ==80 [2024-12-21 06:01:18] Production.ERROR: pbx CDR StartTime 2024-12-21 03:01:05 - End Time 2024-12-21 06:01:05 [2024-12-21 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068187', 'tblTempUsageDetail_20' ) start [2024-12-21 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068187', 'tblTempUsageDetail_20' ) end [2024-12-21 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068187', 'tblTempVendorCDR_20' ) start [2024-12-21 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068187', 'tblTempVendorCDR_20' ) end [2024-12-21 06:01:18] Production.INFO: ProcessCDR(1,14068187,1,1,2) [2024-12-21 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068187', 'tblTempUsageDetail_20' ) start [2024-12-21 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068187', 'tblTempUsageDetail_20' ) end [2024-12-21 06:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:01:21] Production.INFO: ==31167== Releasing lock... [2024-12-21 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:01:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:02:05 [end_date_ymd] => 2024-12-21 06:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:02:05' and `end` < '2024-12-21 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-21 06:02:17] Production.INFO: count ==79 [2024-12-21 06:02:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:02:05 - End Time 2024-12-21 06:02:05 [2024-12-21 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068192', 'tblTempUsageDetail_20' ) start [2024-12-21 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068192', 'tblTempUsageDetail_20' ) end [2024-12-21 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068192', 'tblTempVendorCDR_20' ) start [2024-12-21 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068192', 'tblTempVendorCDR_20' ) end [2024-12-21 06:02:17] Production.INFO: ProcessCDR(1,14068192,1,1,2) [2024-12-21 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068192', 'tblTempUsageDetail_20' ) start [2024-12-21 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068192', 'tblTempUsageDetail_20' ) end [2024-12-21 06:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:02:20] Production.INFO: ==31254== Releasing lock... [2024-12-21 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:02:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:03:05 [end_date_ymd] => 2024-12-21 06:03:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:03:05' and `end` < '2024-12-21 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-21 06:03:17] Production.INFO: count ==79 [2024-12-21 06:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:03:05 - End Time 2024-12-21 06:03:05 [2024-12-21 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068197', 'tblTempUsageDetail_20' ) start [2024-12-21 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068197', 'tblTempUsageDetail_20' ) end [2024-12-21 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068197', 'tblTempVendorCDR_20' ) start [2024-12-21 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068197', 'tblTempVendorCDR_20' ) end [2024-12-21 06:03:17] Production.INFO: ProcessCDR(1,14068197,1,1,2) [2024-12-21 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068197', 'tblTempUsageDetail_20' ) start [2024-12-21 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068197', 'tblTempUsageDetail_20' ) end [2024-12-21 06:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:03:20] Production.INFO: ==31344== Releasing lock... [2024-12-21 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:03:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:04:05 [end_date_ymd] => 2024-12-21 06:04:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:04:05' and `end` < '2024-12-21 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-21 06:04:17] Production.INFO: count ==79 [2024-12-21 06:04:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:04:05 - End Time 2024-12-21 06:04:05 [2024-12-21 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068202', 'tblTempUsageDetail_20' ) start [2024-12-21 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068202', 'tblTempUsageDetail_20' ) end [2024-12-21 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068202', 'tblTempVendorCDR_20' ) start [2024-12-21 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068202', 'tblTempVendorCDR_20' ) end [2024-12-21 06:04:17] Production.INFO: ProcessCDR(1,14068202,1,1,2) [2024-12-21 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068202', 'tblTempUsageDetail_20' ) start [2024-12-21 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068202', 'tblTempUsageDetail_20' ) end [2024-12-21 06:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:04:20] Production.INFO: ==31425== Releasing lock... [2024-12-21 06:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:04:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:05:05 [end_date_ymd] => 2024-12-21 06:05:05 [RateCDR] => 1 ) [2024-12-21 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:05:05' and `end` < '2024-12-21 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:05:17] Production.INFO: count ==79 [2024-12-21 06:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:05:05 - End Time 2024-12-21 06:05:05 [2024-12-21 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068207', 'tblTempUsageDetail_20' ) start [2024-12-21 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068207', 'tblTempUsageDetail_20' ) end [2024-12-21 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068207', 'tblTempVendorCDR_20' ) start [2024-12-21 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068207', 'tblTempVendorCDR_20' ) end [2024-12-21 06:05:17] Production.INFO: ProcessCDR(1,14068207,1,1,2) [2024-12-21 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068207', 'tblTempUsageDetail_20' ) start [2024-12-21 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068207', 'tblTempUsageDetail_20' ) end [2024-12-21 06:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:05:20] Production.INFO: ==31508== Releasing lock... [2024-12-21 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:05:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:06:04 [end_date_ymd] => 2024-12-21 06:06:04 [RateCDR] => 1 ) [2024-12-21 06:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:06:04' and `end` < '2024-12-21 06:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:06:17] Production.INFO: count ==79 [2024-12-21 06:06:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:06:04 - End Time 2024-12-21 06:06:04 [2024-12-21 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068212', 'tblTempUsageDetail_20' ) start [2024-12-21 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068212', 'tblTempUsageDetail_20' ) end [2024-12-21 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068212', 'tblTempVendorCDR_20' ) start [2024-12-21 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068212', 'tblTempVendorCDR_20' ) end [2024-12-21 06:06:17] Production.INFO: ProcessCDR(1,14068212,1,1,2) [2024-12-21 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068212', 'tblTempUsageDetail_20' ) start [2024-12-21 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068212', 'tblTempUsageDetail_20' ) end [2024-12-21 06:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:06:20] Production.INFO: ==31595== Releasing lock... [2024-12-21 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:06:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:07:05 [end_date_ymd] => 2024-12-21 06:07:05 [RateCDR] => 1 ) [2024-12-21 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:07:05' and `end` < '2024-12-21 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:07:17] Production.INFO: count ==79 [2024-12-21 06:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:07:05 - End Time 2024-12-21 06:07:05 [2024-12-21 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068217', 'tblTempUsageDetail_20' ) start [2024-12-21 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068217', 'tblTempUsageDetail_20' ) end [2024-12-21 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068217', 'tblTempVendorCDR_20' ) start [2024-12-21 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068217', 'tblTempVendorCDR_20' ) end [2024-12-21 06:07:17] Production.INFO: ProcessCDR(1,14068217,1,1,2) [2024-12-21 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068217', 'tblTempUsageDetail_20' ) start [2024-12-21 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068217', 'tblTempUsageDetail_20' ) end [2024-12-21 06:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:07:20] Production.INFO: ==31673== Releasing lock... [2024-12-21 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:07:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:08:04 [end_date_ymd] => 2024-12-21 06:08:04 [RateCDR] => 1 ) [2024-12-21 06: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-21 03:08:04' and `end` < '2024-12-21 06: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-21 06:08:17] Production.INFO: count ==79 [2024-12-21 06:08:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:08:04 - End Time 2024-12-21 06:08:04 [2024-12-21 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068222', 'tblTempUsageDetail_20' ) start [2024-12-21 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068222', 'tblTempUsageDetail_20' ) end [2024-12-21 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068222', 'tblTempVendorCDR_20' ) start [2024-12-21 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068222', 'tblTempVendorCDR_20' ) end [2024-12-21 06:08:17] Production.INFO: ProcessCDR(1,14068222,1,1,2) [2024-12-21 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068222', 'tblTempUsageDetail_20' ) start [2024-12-21 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068222', 'tblTempUsageDetail_20' ) end [2024-12-21 06:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:08:20] Production.INFO: ==31758== Releasing lock... [2024-12-21 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:08:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:09:05 [end_date_ymd] => 2024-12-21 06:09:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:09:05' and `end` < '2024-12-21 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-21 06:09:17] Production.INFO: count ==79 [2024-12-21 06:09:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:09:05 - End Time 2024-12-21 06:09:05 [2024-12-21 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068227', 'tblTempUsageDetail_20' ) start [2024-12-21 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068227', 'tblTempUsageDetail_20' ) end [2024-12-21 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068227', 'tblTempVendorCDR_20' ) start [2024-12-21 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068227', 'tblTempVendorCDR_20' ) end [2024-12-21 06:09:17] Production.INFO: ProcessCDR(1,14068227,1,1,2) [2024-12-21 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068227', 'tblTempUsageDetail_20' ) start [2024-12-21 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068227', 'tblTempUsageDetail_20' ) end [2024-12-21 06:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:09:20] Production.INFO: ==31840== Releasing lock... [2024-12-21 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:09:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:10:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:10:04 [end_date_ymd] => 2024-12-21 06:10:04 [RateCDR] => 1 ) [2024-12-21 06:10:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:10:04' and `end` < '2024-12-21 06:10:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:10:16] Production.INFO: count ==75 [2024-12-21 06:10:16] Production.ERROR: pbx CDR StartTime 2024-12-21 03:10:04 - End Time 2024-12-21 06:10:04 [2024-12-21 06:10:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:10:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068231', 'tblTempUsageDetail_20' ) start [2024-12-21 06:10:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068231', 'tblTempUsageDetail_20' ) end [2024-12-21 06:10:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068231', 'tblTempVendorCDR_20' ) start [2024-12-21 06:10:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068231', 'tblTempVendorCDR_20' ) end [2024-12-21 06:10:16] Production.INFO: ProcessCDR(1,14068231,1,1,2) [2024-12-21 06:10:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:10:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:10:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068231', 'tblTempUsageDetail_20' ) start [2024-12-21 06:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068231', 'tblTempUsageDetail_20' ) end [2024-12-21 06:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:10:20] Production.INFO: ==31930== Releasing lock... [2024-12-21 06:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:10:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:11:04 [end_date_ymd] => 2024-12-21 06:11:04 [RateCDR] => 1 ) [2024-12-21 06:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:11:04' and `end` < '2024-12-21 06:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:11:16] Production.INFO: count ==73 [2024-12-21 06:11:16] Production.ERROR: pbx CDR StartTime 2024-12-21 03:11:04 - End Time 2024-12-21 06:11:04 [2024-12-21 06:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068238', 'tblTempUsageDetail_20' ) start [2024-12-21 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068238', 'tblTempUsageDetail_20' ) end [2024-12-21 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068238', 'tblTempVendorCDR_20' ) start [2024-12-21 06:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068238', 'tblTempVendorCDR_20' ) end [2024-12-21 06:11:16] Production.INFO: ProcessCDR(1,14068238,1,1,2) [2024-12-21 06:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068238', 'tblTempUsageDetail_20' ) start [2024-12-21 06:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068238', 'tblTempUsageDetail_20' ) end [2024-12-21 06:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:11:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:11:19] Production.INFO: ==32017== Releasing lock... [2024-12-21 06:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:11:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:12:05 [end_date_ymd] => 2024-12-21 06:12:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:12:05' and `end` < '2024-12-21 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-21 06:12:17] Production.INFO: count ==73 [2024-12-21 06:12:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:12:05 - End Time 2024-12-21 06:12:05 [2024-12-21 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068243', 'tblTempUsageDetail_20' ) start [2024-12-21 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068243', 'tblTempUsageDetail_20' ) end [2024-12-21 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068243', 'tblTempVendorCDR_20' ) start [2024-12-21 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068243', 'tblTempVendorCDR_20' ) end [2024-12-21 06:12:17] Production.INFO: ProcessCDR(1,14068243,1,1,2) [2024-12-21 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068243', 'tblTempUsageDetail_20' ) start [2024-12-21 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068243', 'tblTempUsageDetail_20' ) end [2024-12-21 06:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:12:20] Production.INFO: ==32095== Releasing lock... [2024-12-21 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:12:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:13:05 [end_date_ymd] => 2024-12-21 06:13:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:13:05' and `end` < '2024-12-21 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-21 06:13:17] Production.INFO: count ==73 [2024-12-21 06:13:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:13:05 - End Time 2024-12-21 06:13:05 [2024-12-21 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068248', 'tblTempUsageDetail_20' ) start [2024-12-21 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068248', 'tblTempUsageDetail_20' ) end [2024-12-21 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068248', 'tblTempVendorCDR_20' ) start [2024-12-21 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068248', 'tblTempVendorCDR_20' ) end [2024-12-21 06:13:17] Production.INFO: ProcessCDR(1,14068248,1,1,2) [2024-12-21 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068248', 'tblTempUsageDetail_20' ) start [2024-12-21 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068248', 'tblTempUsageDetail_20' ) end [2024-12-21 06:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:13:20] Production.INFO: ==32174== Releasing lock... [2024-12-21 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:13:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:14:05 [end_date_ymd] => 2024-12-21 06:14:05 [RateCDR] => 1 ) [2024-12-21 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:14:05' and `end` < '2024-12-21 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:14:17] Production.INFO: count ==73 [2024-12-21 06:14:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:14:05 - End Time 2024-12-21 06:14:05 [2024-12-21 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068253', 'tblTempUsageDetail_20' ) start [2024-12-21 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068253', 'tblTempUsageDetail_20' ) end [2024-12-21 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068253', 'tblTempVendorCDR_20' ) start [2024-12-21 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068253', 'tblTempVendorCDR_20' ) end [2024-12-21 06:14:17] Production.INFO: ProcessCDR(1,14068253,1,1,2) [2024-12-21 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068253', 'tblTempUsageDetail_20' ) start [2024-12-21 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068253', 'tblTempUsageDetail_20' ) end [2024-12-21 06:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:14:20] Production.INFO: ==32248== Releasing lock... [2024-12-21 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:14:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:15:04 [end_date_ymd] => 2024-12-21 06:15:04 [RateCDR] => 1 ) [2024-12-21 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-21 03:15:04' and `end` < '2024-12-21 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-21 06:15:16] Production.INFO: count ==73 [2024-12-21 06:15:16] Production.ERROR: pbx CDR StartTime 2024-12-21 03:15:04 - End Time 2024-12-21 06:15:04 [2024-12-21 06:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068258', 'tblTempUsageDetail_20' ) start [2024-12-21 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068258', 'tblTempUsageDetail_20' ) end [2024-12-21 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068258', 'tblTempVendorCDR_20' ) start [2024-12-21 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068258', 'tblTempVendorCDR_20' ) end [2024-12-21 06:15:16] Production.INFO: ProcessCDR(1,14068258,1,1,2) [2024-12-21 06:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068258', 'tblTempUsageDetail_20' ) start [2024-12-21 06:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068258', 'tblTempUsageDetail_20' ) end [2024-12-21 06:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:15:19] Production.INFO: ==32332== Releasing lock... [2024-12-21 06:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:15:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:16:04 [end_date_ymd] => 2024-12-21 06:16:04 [RateCDR] => 1 ) [2024-12-21 06: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-21 03:16:04' and `end` < '2024-12-21 06: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-21 06:16:16] Production.INFO: count ==73 [2024-12-21 06:16:16] Production.ERROR: pbx CDR StartTime 2024-12-21 03:16:04 - End Time 2024-12-21 06:16:04 [2024-12-21 06:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068263', 'tblTempUsageDetail_20' ) start [2024-12-21 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068263', 'tblTempUsageDetail_20' ) end [2024-12-21 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068263', 'tblTempVendorCDR_20' ) start [2024-12-21 06:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068263', 'tblTempVendorCDR_20' ) end [2024-12-21 06:16:16] Production.INFO: ProcessCDR(1,14068263,1,1,2) [2024-12-21 06:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:16:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068263', 'tblTempUsageDetail_20' ) start [2024-12-21 06:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068263', 'tblTempUsageDetail_20' ) end [2024-12-21 06:16:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:16:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:16:19] Production.INFO: ==32441== Releasing lock... [2024-12-21 06:16:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:16:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:17:05 [end_date_ymd] => 2024-12-21 06:17:05 [RateCDR] => 1 ) [2024-12-21 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:17:05' and `end` < '2024-12-21 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:17:18] Production.INFO: count ==73 [2024-12-21 06:17:18] Production.ERROR: pbx CDR StartTime 2024-12-21 03:17:05 - End Time 2024-12-21 06:17:05 [2024-12-21 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068268', 'tblTempUsageDetail_20' ) start [2024-12-21 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068268', 'tblTempUsageDetail_20' ) end [2024-12-21 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068268', 'tblTempVendorCDR_20' ) start [2024-12-21 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068268', 'tblTempVendorCDR_20' ) end [2024-12-21 06:17:18] Production.INFO: ProcessCDR(1,14068268,1,1,2) [2024-12-21 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068268', 'tblTempUsageDetail_20' ) start [2024-12-21 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068268', 'tblTempUsageDetail_20' ) end [2024-12-21 06:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:17:21] Production.INFO: ==32525== Releasing lock... [2024-12-21 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:17:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:18:04 [end_date_ymd] => 2024-12-21 06:18:04 [RateCDR] => 1 ) [2024-12-21 06:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:18:04' and `end` < '2024-12-21 06:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:18:16] Production.INFO: count ==73 [2024-12-21 06:18:16] Production.ERROR: pbx CDR StartTime 2024-12-21 03:18:04 - End Time 2024-12-21 06:18:04 [2024-12-21 06:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068273', 'tblTempUsageDetail_20' ) start [2024-12-21 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068273', 'tblTempUsageDetail_20' ) end [2024-12-21 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068273', 'tblTempVendorCDR_20' ) start [2024-12-21 06:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068273', 'tblTempVendorCDR_20' ) end [2024-12-21 06:18:16] Production.INFO: ProcessCDR(1,14068273,1,1,2) [2024-12-21 06:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:18:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068273', 'tblTempUsageDetail_20' ) start [2024-12-21 06:18:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068273', 'tblTempUsageDetail_20' ) end [2024-12-21 06:18:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:18:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:18:19] Production.INFO: ==32623== Releasing lock... [2024-12-21 06:18:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:18:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:19:04 [end_date_ymd] => 2024-12-21 06:19:04 [RateCDR] => 1 ) [2024-12-21 06:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:19:04' and `end` < '2024-12-21 06:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:19:17] Production.INFO: count ==73 [2024-12-21 06:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:19:04 - End Time 2024-12-21 06:19:04 [2024-12-21 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068278', 'tblTempUsageDetail_20' ) start [2024-12-21 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068278', 'tblTempUsageDetail_20' ) end [2024-12-21 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068278', 'tblTempVendorCDR_20' ) start [2024-12-21 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068278', 'tblTempVendorCDR_20' ) end [2024-12-21 06:19:17] Production.INFO: ProcessCDR(1,14068278,1,1,2) [2024-12-21 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068278', 'tblTempUsageDetail_20' ) start [2024-12-21 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068278', 'tblTempUsageDetail_20' ) end [2024-12-21 06:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:19:20] Production.INFO: ==32701== Releasing lock... [2024-12-21 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:19:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:20:06 [end_date_ymd] => 2024-12-21 06:20:06 [RateCDR] => 1 ) [2024-12-21 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:20:06' and `end` < '2024-12-21 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:20:19] Production.INFO: count ==73 [2024-12-21 06:20:19] Production.ERROR: pbx CDR StartTime 2024-12-21 03:20:06 - End Time 2024-12-21 06:20:06 [2024-12-21 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068284', 'tblTempUsageDetail_20' ) start [2024-12-21 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068284', 'tblTempUsageDetail_20' ) end [2024-12-21 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068284', 'tblTempVendorCDR_20' ) start [2024-12-21 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068284', 'tblTempVendorCDR_20' ) end [2024-12-21 06:20:19] Production.INFO: ProcessCDR(1,14068284,1,1,2) [2024-12-21 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068284', 'tblTempUsageDetail_20' ) start [2024-12-21 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068284', 'tblTempUsageDetail_20' ) end [2024-12-21 06:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:20:22] Production.INFO: ==357== Releasing lock... [2024-12-21 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:20:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:21:05 [end_date_ymd] => 2024-12-21 06:21:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:21:05' and `end` < '2024-12-21 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-21 06:21:18] Production.INFO: count ==73 [2024-12-21 06:21:18] Production.ERROR: pbx CDR StartTime 2024-12-21 03:21:05 - End Time 2024-12-21 06:21:05 [2024-12-21 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068289', 'tblTempUsageDetail_20' ) start [2024-12-21 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068289', 'tblTempUsageDetail_20' ) end [2024-12-21 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068289', 'tblTempVendorCDR_20' ) start [2024-12-21 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068289', 'tblTempVendorCDR_20' ) end [2024-12-21 06:21:18] Production.INFO: ProcessCDR(1,14068289,1,1,2) [2024-12-21 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068289', 'tblTempUsageDetail_20' ) start [2024-12-21 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068289', 'tblTempUsageDetail_20' ) end [2024-12-21 06:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:21:21] Production.INFO: ==445== Releasing lock... [2024-12-21 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:21:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:22:04 [end_date_ymd] => 2024-12-21 06:22:04 [RateCDR] => 1 ) [2024-12-21 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-21 03:22:04' and `end` < '2024-12-21 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-21 06:22:17] Production.INFO: count ==73 [2024-12-21 06:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:22:04 - End Time 2024-12-21 06:22:04 [2024-12-21 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068294', 'tblTempUsageDetail_20' ) start [2024-12-21 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068294', 'tblTempUsageDetail_20' ) end [2024-12-21 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068294', 'tblTempVendorCDR_20' ) start [2024-12-21 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068294', 'tblTempVendorCDR_20' ) end [2024-12-21 06:22:17] Production.INFO: ProcessCDR(1,14068294,1,1,2) [2024-12-21 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068294', 'tblTempUsageDetail_20' ) start [2024-12-21 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068294', 'tblTempUsageDetail_20' ) end [2024-12-21 06:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:22:20] Production.INFO: ==519== Releasing lock... [2024-12-21 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:22:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:23:05 [end_date_ymd] => 2024-12-21 06:23:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:23:05' and `end` < '2024-12-21 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-21 06:23:17] Production.INFO: count ==73 [2024-12-21 06:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:23:05 - End Time 2024-12-21 06:23:05 [2024-12-21 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068299', 'tblTempUsageDetail_20' ) start [2024-12-21 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068299', 'tblTempUsageDetail_20' ) end [2024-12-21 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068299', 'tblTempVendorCDR_20' ) start [2024-12-21 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068299', 'tblTempVendorCDR_20' ) end [2024-12-21 06:23:17] Production.INFO: ProcessCDR(1,14068299,1,1,2) [2024-12-21 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068299', 'tblTempUsageDetail_20' ) start [2024-12-21 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068299', 'tblTempUsageDetail_20' ) end [2024-12-21 06:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:23:21] Production.INFO: ==597== Releasing lock... [2024-12-21 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:23:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:24:05 [end_date_ymd] => 2024-12-21 06:24:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:24:05' and `end` < '2024-12-21 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-21 06:24:18] Production.INFO: count ==73 [2024-12-21 06:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 03:24:05 - End Time 2024-12-21 06:24:05 [2024-12-21 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068304', 'tblTempUsageDetail_20' ) start [2024-12-21 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068304', 'tblTempUsageDetail_20' ) end [2024-12-21 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068304', 'tblTempVendorCDR_20' ) start [2024-12-21 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068304', 'tblTempVendorCDR_20' ) end [2024-12-21 06:24:18] Production.INFO: ProcessCDR(1,14068304,1,1,2) [2024-12-21 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068304', 'tblTempUsageDetail_20' ) start [2024-12-21 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068304', 'tblTempUsageDetail_20' ) end [2024-12-21 06:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:24:21] Production.INFO: ==694== Releasing lock... [2024-12-21 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:24:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:25:04 [end_date_ymd] => 2024-12-21 06:25:04 [RateCDR] => 1 ) [2024-12-21 06: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-21 03:25:04' and `end` < '2024-12-21 06: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-21 06:25:16] Production.INFO: count ==73 [2024-12-21 06:25:16] Production.ERROR: pbx CDR StartTime 2024-12-21 03:25:04 - End Time 2024-12-21 06:25:04 [2024-12-21 06:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068309', 'tblTempUsageDetail_20' ) start [2024-12-21 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068309', 'tblTempUsageDetail_20' ) end [2024-12-21 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068309', 'tblTempVendorCDR_20' ) start [2024-12-21 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068309', 'tblTempVendorCDR_20' ) end [2024-12-21 06:25:16] Production.INFO: ProcessCDR(1,14068309,1,1,2) [2024-12-21 06:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068309', 'tblTempUsageDetail_20' ) start [2024-12-21 06:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068309', 'tblTempUsageDetail_20' ) end [2024-12-21 06:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:25:19] Production.INFO: ==774== Releasing lock... [2024-12-21 06:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:25:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:26:05 [end_date_ymd] => 2024-12-21 06:26:05 [RateCDR] => 1 ) [2024-12-21 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:26:05' and `end` < '2024-12-21 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:26:17] Production.INFO: count ==73 [2024-12-21 06:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:26:05 - End Time 2024-12-21 06:26:05 [2024-12-21 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068314', 'tblTempUsageDetail_20' ) start [2024-12-21 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068314', 'tblTempUsageDetail_20' ) end [2024-12-21 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068314', 'tblTempVendorCDR_20' ) start [2024-12-21 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068314', 'tblTempVendorCDR_20' ) end [2024-12-21 06:26:17] Production.INFO: ProcessCDR(1,14068314,1,1,2) [2024-12-21 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068314', 'tblTempUsageDetail_20' ) start [2024-12-21 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068314', 'tblTempUsageDetail_20' ) end [2024-12-21 06:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:26:20] Production.INFO: ==847== Releasing lock... [2024-12-21 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:26:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:27:04 [end_date_ymd] => 2024-12-21 06:27:04 [RateCDR] => 1 ) [2024-12-21 06:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:27:04' and `end` < '2024-12-21 06:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:27:16] Production.INFO: count ==73 [2024-12-21 06:27:16] Production.ERROR: pbx CDR StartTime 2024-12-21 03:27:04 - End Time 2024-12-21 06:27:04 [2024-12-21 06:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068319', 'tblTempUsageDetail_20' ) start [2024-12-21 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068319', 'tblTempUsageDetail_20' ) end [2024-12-21 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068319', 'tblTempVendorCDR_20' ) start [2024-12-21 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068319', 'tblTempVendorCDR_20' ) end [2024-12-21 06:27:16] Production.INFO: ProcessCDR(1,14068319,1,1,2) [2024-12-21 06:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068319', 'tblTempUsageDetail_20' ) start [2024-12-21 06:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068319', 'tblTempUsageDetail_20' ) end [2024-12-21 06:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:27:19] Production.INFO: ==917== Releasing lock... [2024-12-21 06:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:27:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:28:05 [end_date_ymd] => 2024-12-21 06:28:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:28:05' and `end` < '2024-12-21 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-21 06:28:18] Production.INFO: count ==73 [2024-12-21 06:28:18] Production.ERROR: pbx CDR StartTime 2024-12-21 03:28:05 - End Time 2024-12-21 06:28:05 [2024-12-21 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068324', 'tblTempUsageDetail_20' ) start [2024-12-21 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068324', 'tblTempUsageDetail_20' ) end [2024-12-21 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068324', 'tblTempVendorCDR_20' ) start [2024-12-21 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068324', 'tblTempVendorCDR_20' ) end [2024-12-21 06:28:18] Production.INFO: ProcessCDR(1,14068324,1,1,2) [2024-12-21 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068324', 'tblTempUsageDetail_20' ) start [2024-12-21 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068324', 'tblTempUsageDetail_20' ) end [2024-12-21 06:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:28:21] Production.INFO: ==991== Releasing lock... [2024-12-21 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:28:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:29:04 [end_date_ymd] => 2024-12-21 06:29:04 [RateCDR] => 1 ) [2024-12-21 06: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-21 03:29:04' and `end` < '2024-12-21 06: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-21 06:29:16] Production.INFO: count ==73 [2024-12-21 06:29:16] Production.ERROR: pbx CDR StartTime 2024-12-21 03:29:04 - End Time 2024-12-21 06:29:04 [2024-12-21 06:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068329', 'tblTempUsageDetail_20' ) start [2024-12-21 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068329', 'tblTempUsageDetail_20' ) end [2024-12-21 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068329', 'tblTempVendorCDR_20' ) start [2024-12-21 06:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068329', 'tblTempVendorCDR_20' ) end [2024-12-21 06:29:16] Production.INFO: ProcessCDR(1,14068329,1,1,2) [2024-12-21 06:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068329', 'tblTempUsageDetail_20' ) start [2024-12-21 06:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068329', 'tblTempUsageDetail_20' ) end [2024-12-21 06:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:29:19] Production.INFO: ==1066== Releasing lock... [2024-12-21 06:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:29:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:30:05 [end_date_ymd] => 2024-12-21 06:30:05 [RateCDR] => 1 ) [2024-12-21 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:30:05' and `end` < '2024-12-21 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:30:17] Production.INFO: count ==69 [2024-12-21 06:30:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:30:05 - End Time 2024-12-21 06:30:05 [2024-12-21 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068334', 'tblTempUsageDetail_20' ) start [2024-12-21 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068334', 'tblTempUsageDetail_20' ) end [2024-12-21 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068334', 'tblTempVendorCDR_20' ) start [2024-12-21 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068334', 'tblTempVendorCDR_20' ) end [2024-12-21 06:30:17] Production.INFO: ProcessCDR(1,14068334,1,1,2) [2024-12-21 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068334', 'tblTempUsageDetail_20' ) start [2024-12-21 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068334', 'tblTempUsageDetail_20' ) end [2024-12-21 06:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:30:21] Production.INFO: ==1145== Releasing lock... [2024-12-21 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:30:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:31:05 [end_date_ymd] => 2024-12-21 06:31:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:31:05' and `end` < '2024-12-21 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-21 06:31:18] Production.INFO: count ==64 [2024-12-21 06:31:18] Production.ERROR: pbx CDR StartTime 2024-12-21 03:31:05 - End Time 2024-12-21 06:31:05 [2024-12-21 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068340', 'tblTempUsageDetail_20' ) start [2024-12-21 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068340', 'tblTempUsageDetail_20' ) end [2024-12-21 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068340', 'tblTempVendorCDR_20' ) start [2024-12-21 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068340', 'tblTempVendorCDR_20' ) end [2024-12-21 06:31:18] Production.INFO: ProcessCDR(1,14068340,1,1,2) [2024-12-21 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068340', 'tblTempUsageDetail_20' ) start [2024-12-21 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068340', 'tblTempUsageDetail_20' ) end [2024-12-21 06:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:31:21] Production.INFO: ==1222== Releasing lock... [2024-12-21 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:31:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:32:05 [end_date_ymd] => 2024-12-21 06:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:32:05' and `end` < '2024-12-21 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-21 06:32:17] Production.INFO: count ==64 [2024-12-21 06:32:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:32:05 - End Time 2024-12-21 06:32:05 [2024-12-21 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068345', 'tblTempUsageDetail_20' ) start [2024-12-21 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068345', 'tblTempUsageDetail_20' ) end [2024-12-21 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068345', 'tblTempVendorCDR_20' ) start [2024-12-21 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068345', 'tblTempVendorCDR_20' ) end [2024-12-21 06:32:17] Production.INFO: ProcessCDR(1,14068345,1,1,2) [2024-12-21 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068345', 'tblTempUsageDetail_20' ) start [2024-12-21 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068345', 'tblTempUsageDetail_20' ) end [2024-12-21 06:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:32:20] Production.INFO: ==1361== Releasing lock... [2024-12-21 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:32:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:33:05 [end_date_ymd] => 2024-12-21 06:33:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:33:05' and `end` < '2024-12-21 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-21 06:33:17] Production.INFO: count ==63 [2024-12-21 06:33:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:33:05 - End Time 2024-12-21 06:33:05 [2024-12-21 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068350', 'tblTempUsageDetail_20' ) start [2024-12-21 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068350', 'tblTempUsageDetail_20' ) end [2024-12-21 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068350', 'tblTempVendorCDR_20' ) start [2024-12-21 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068350', 'tblTempVendorCDR_20' ) end [2024-12-21 06:33:17] Production.INFO: ProcessCDR(1,14068350,1,1,2) [2024-12-21 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068350', 'tblTempUsageDetail_20' ) start [2024-12-21 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068350', 'tblTempUsageDetail_20' ) end [2024-12-21 06:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:33:21] Production.INFO: ==1467== Releasing lock... [2024-12-21 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:33:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:34:04 [end_date_ymd] => 2024-12-21 06:34:04 [RateCDR] => 1 ) [2024-12-21 06: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-21 03:34:04' and `end` < '2024-12-21 06: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-21 06:34:17] Production.INFO: count ==63 [2024-12-21 06:34:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:34:04 - End Time 2024-12-21 06:34:04 [2024-12-21 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068355', 'tblTempUsageDetail_20' ) start [2024-12-21 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068355', 'tblTempUsageDetail_20' ) end [2024-12-21 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068355', 'tblTempVendorCDR_20' ) start [2024-12-21 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068355', 'tblTempVendorCDR_20' ) end [2024-12-21 06:34:17] Production.INFO: ProcessCDR(1,14068355,1,1,2) [2024-12-21 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068355', 'tblTempUsageDetail_20' ) start [2024-12-21 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068355', 'tblTempUsageDetail_20' ) end [2024-12-21 06:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:34:20] Production.INFO: ==1605== Releasing lock... [2024-12-21 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:34:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:35:05 [end_date_ymd] => 2024-12-21 06:35:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:35:05' and `end` < '2024-12-21 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-21 06:35:17] Production.INFO: count ==62 [2024-12-21 06:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:35:05 - End Time 2024-12-21 06:35:05 [2024-12-21 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068360', 'tblTempUsageDetail_20' ) start [2024-12-21 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068360', 'tblTempUsageDetail_20' ) end [2024-12-21 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068360', 'tblTempVendorCDR_20' ) start [2024-12-21 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068360', 'tblTempVendorCDR_20' ) end [2024-12-21 06:35:17] Production.INFO: ProcessCDR(1,14068360,1,1,2) [2024-12-21 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068360', 'tblTempUsageDetail_20' ) start [2024-12-21 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068360', 'tblTempUsageDetail_20' ) end [2024-12-21 06:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:35:20] Production.INFO: ==1705== Releasing lock... [2024-12-21 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:35:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:36:05 [end_date_ymd] => 2024-12-21 06:36:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:36:05' and `end` < '2024-12-21 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-21 06:36:18] Production.INFO: count ==62 [2024-12-21 06:36:18] Production.ERROR: pbx CDR StartTime 2024-12-21 03:36:05 - End Time 2024-12-21 06:36:05 [2024-12-21 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068365', 'tblTempUsageDetail_20' ) start [2024-12-21 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068365', 'tblTempUsageDetail_20' ) end [2024-12-21 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068365', 'tblTempVendorCDR_20' ) start [2024-12-21 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068365', 'tblTempVendorCDR_20' ) end [2024-12-21 06:36:18] Production.INFO: ProcessCDR(1,14068365,1,1,2) [2024-12-21 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068365', 'tblTempUsageDetail_20' ) start [2024-12-21 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068365', 'tblTempUsageDetail_20' ) end [2024-12-21 06:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:36:21] Production.INFO: ==1804== Releasing lock... [2024-12-21 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:36:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:37:05 [end_date_ymd] => 2024-12-21 06:37:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:37:05' and `end` < '2024-12-21 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-21 06:37:17] Production.INFO: count ==61 [2024-12-21 06:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:37:05 - End Time 2024-12-21 06:37:05 [2024-12-21 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068370', 'tblTempUsageDetail_20' ) start [2024-12-21 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068370', 'tblTempUsageDetail_20' ) end [2024-12-21 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068370', 'tblTempVendorCDR_20' ) start [2024-12-21 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068370', 'tblTempVendorCDR_20' ) end [2024-12-21 06:37:18] Production.INFO: ProcessCDR(1,14068370,1,1,2) [2024-12-21 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068370', 'tblTempUsageDetail_20' ) start [2024-12-21 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068370', 'tblTempUsageDetail_20' ) end [2024-12-21 06:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:37:21] Production.INFO: ==1905== Releasing lock... [2024-12-21 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:37:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:38:05 [end_date_ymd] => 2024-12-21 06:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:38:05' and `end` < '2024-12-21 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-21 06:38:17] Production.INFO: count ==61 [2024-12-21 06:38:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:38:05 - End Time 2024-12-21 06:38:05 [2024-12-21 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068375', 'tblTempUsageDetail_20' ) start [2024-12-21 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068375', 'tblTempUsageDetail_20' ) end [2024-12-21 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068375', 'tblTempVendorCDR_20' ) start [2024-12-21 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068375', 'tblTempVendorCDR_20' ) end [2024-12-21 06:38:17] Production.INFO: ProcessCDR(1,14068375,1,1,2) [2024-12-21 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068375', 'tblTempUsageDetail_20' ) start [2024-12-21 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068375', 'tblTempUsageDetail_20' ) end [2024-12-21 06:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:38:20] Production.INFO: ==2007== Releasing lock... [2024-12-21 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:38:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:39:05 [end_date_ymd] => 2024-12-21 06:39:05 [RateCDR] => 1 ) [2024-12-21 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:39:05' and `end` < '2024-12-21 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:39:17] Production.INFO: count ==60 [2024-12-21 06:39:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:39:05 - End Time 2024-12-21 06:39:05 [2024-12-21 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068380', 'tblTempUsageDetail_20' ) start [2024-12-21 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068380', 'tblTempUsageDetail_20' ) end [2024-12-21 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068380', 'tblTempVendorCDR_20' ) start [2024-12-21 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068380', 'tblTempVendorCDR_20' ) end [2024-12-21 06:39:17] Production.INFO: ProcessCDR(1,14068380,1,1,2) [2024-12-21 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068380', 'tblTempUsageDetail_20' ) start [2024-12-21 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068380', 'tblTempUsageDetail_20' ) end [2024-12-21 06:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:39:20] Production.INFO: ==2110== Releasing lock... [2024-12-21 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:39:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:40:06 [end_date_ymd] => 2024-12-21 06:40:06 [RateCDR] => 1 ) [2024-12-21 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-21 03:40:06' and `end` < '2024-12-21 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-21 06:40:18] Production.INFO: count ==52 [2024-12-21 06:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 03:40:06 - End Time 2024-12-21 06:40:06 [2024-12-21 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068386', 'tblTempUsageDetail_20' ) start [2024-12-21 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068386', 'tblTempUsageDetail_20' ) end [2024-12-21 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068386', 'tblTempVendorCDR_20' ) start [2024-12-21 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068386', 'tblTempVendorCDR_20' ) end [2024-12-21 06:40:18] Production.INFO: ProcessCDR(1,14068386,1,1,2) [2024-12-21 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068386', 'tblTempUsageDetail_20' ) start [2024-12-21 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068386', 'tblTempUsageDetail_20' ) end [2024-12-21 06:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:40:22] Production.INFO: ==2216== Releasing lock... [2024-12-21 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:40:22] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:41:05 [end_date_ymd] => 2024-12-21 06:41:05 [RateCDR] => 1 ) [2024-12-21 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:41:05' and `end` < '2024-12-21 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:41:17] Production.INFO: count ==49 [2024-12-21 06:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:41:05 - End Time 2024-12-21 06:41:05 [2024-12-21 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068391', 'tblTempUsageDetail_20' ) start [2024-12-21 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068391', 'tblTempUsageDetail_20' ) end [2024-12-21 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068391', 'tblTempVendorCDR_20' ) start [2024-12-21 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068391', 'tblTempVendorCDR_20' ) end [2024-12-21 06:41:17] Production.INFO: ProcessCDR(1,14068391,1,1,2) [2024-12-21 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068391', 'tblTempUsageDetail_20' ) start [2024-12-21 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068391', 'tblTempUsageDetail_20' ) end [2024-12-21 06:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:41:20] Production.INFO: ==2322== Releasing lock... [2024-12-21 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:41:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:42:05 [end_date_ymd] => 2024-12-21 06:42:05 [RateCDR] => 1 ) [2024-12-21 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:42:05' and `end` < '2024-12-21 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:42:17] Production.INFO: count ==49 [2024-12-21 06:42:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:42:05 - End Time 2024-12-21 06:42:05 [2024-12-21 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068396', 'tblTempUsageDetail_20' ) start [2024-12-21 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068396', 'tblTempUsageDetail_20' ) end [2024-12-21 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068396', 'tblTempVendorCDR_20' ) start [2024-12-21 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068396', 'tblTempVendorCDR_20' ) end [2024-12-21 06:42:17] Production.INFO: ProcessCDR(1,14068396,1,1,2) [2024-12-21 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068396', 'tblTempUsageDetail_20' ) start [2024-12-21 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068396', 'tblTempUsageDetail_20' ) end [2024-12-21 06:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:42:20] Production.INFO: ==2426== Releasing lock... [2024-12-21 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:42:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:43:05 [end_date_ymd] => 2024-12-21 06:43:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:43:05' and `end` < '2024-12-21 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-21 06:43:18] Production.INFO: count ==47 [2024-12-21 06:43:18] Production.ERROR: pbx CDR StartTime 2024-12-21 03:43:05 - End Time 2024-12-21 06:43:05 [2024-12-21 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068401', 'tblTempUsageDetail_20' ) start [2024-12-21 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068401', 'tblTempUsageDetail_20' ) end [2024-12-21 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068401', 'tblTempVendorCDR_20' ) start [2024-12-21 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068401', 'tblTempVendorCDR_20' ) end [2024-12-21 06:43:18] Production.INFO: ProcessCDR(1,14068401,1,1,2) [2024-12-21 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068401', 'tblTempUsageDetail_20' ) start [2024-12-21 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068401', 'tblTempUsageDetail_20' ) end [2024-12-21 06:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:43:21] Production.INFO: ==2526== Releasing lock... [2024-12-21 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:43:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:44:05 [end_date_ymd] => 2024-12-21 06:44:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:44:05' and `end` < '2024-12-21 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-21 06:44:17] Production.INFO: count ==46 [2024-12-21 06:44:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:44:05 - End Time 2024-12-21 06:44:05 [2024-12-21 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068406', 'tblTempUsageDetail_20' ) start [2024-12-21 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068406', 'tblTempUsageDetail_20' ) end [2024-12-21 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068406', 'tblTempVendorCDR_20' ) start [2024-12-21 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068406', 'tblTempVendorCDR_20' ) end [2024-12-21 06:44:17] Production.INFO: ProcessCDR(1,14068406,1,1,2) [2024-12-21 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068406', 'tblTempUsageDetail_20' ) start [2024-12-21 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068406', 'tblTempUsageDetail_20' ) end [2024-12-21 06:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:44:20] Production.INFO: ==2632== Releasing lock... [2024-12-21 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:44:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:45:05 [end_date_ymd] => 2024-12-21 06:45:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:45:05' and `end` < '2024-12-21 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-21 06:45:17] Production.INFO: count ==46 [2024-12-21 06:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:45:05 - End Time 2024-12-21 06:45:05 [2024-12-21 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068411', 'tblTempUsageDetail_20' ) start [2024-12-21 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068411', 'tblTempUsageDetail_20' ) end [2024-12-21 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068411', 'tblTempVendorCDR_20' ) start [2024-12-21 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068411', 'tblTempVendorCDR_20' ) end [2024-12-21 06:45:17] Production.INFO: ProcessCDR(1,14068411,1,1,2) [2024-12-21 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068411', 'tblTempUsageDetail_20' ) start [2024-12-21 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068411', 'tblTempUsageDetail_20' ) end [2024-12-21 06:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:45:20] Production.INFO: ==2731== Releasing lock... [2024-12-21 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:46:05 [end_date_ymd] => 2024-12-21 06:46:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:46:05' and `end` < '2024-12-21 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-21 06:46:18] Production.INFO: count ==46 [2024-12-21 06:46:18] Production.ERROR: pbx CDR StartTime 2024-12-21 03:46:05 - End Time 2024-12-21 06:46:05 [2024-12-21 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068416', 'tblTempUsageDetail_20' ) start [2024-12-21 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068416', 'tblTempUsageDetail_20' ) end [2024-12-21 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068416', 'tblTempVendorCDR_20' ) start [2024-12-21 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068416', 'tblTempVendorCDR_20' ) end [2024-12-21 06:46:18] Production.INFO: ProcessCDR(1,14068416,1,1,2) [2024-12-21 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068416', 'tblTempUsageDetail_20' ) start [2024-12-21 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068416', 'tblTempUsageDetail_20' ) end [2024-12-21 06:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:46:21] Production.INFO: ==2837== Releasing lock... [2024-12-21 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:46:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:47:05 [end_date_ymd] => 2024-12-21 06:47:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:47:05' and `end` < '2024-12-21 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-21 06:47:17] Production.INFO: count ==45 [2024-12-21 06:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:47:05 - End Time 2024-12-21 06:47:05 [2024-12-21 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068421', 'tblTempUsageDetail_20' ) start [2024-12-21 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068421', 'tblTempUsageDetail_20' ) end [2024-12-21 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068421', 'tblTempVendorCDR_20' ) start [2024-12-21 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068421', 'tblTempVendorCDR_20' ) end [2024-12-21 06:47:17] Production.INFO: ProcessCDR(1,14068421,1,1,2) [2024-12-21 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068421', 'tblTempUsageDetail_20' ) start [2024-12-21 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068421', 'tblTempUsageDetail_20' ) end [2024-12-21 06:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:47:20] Production.INFO: ==2977== Releasing lock... [2024-12-21 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:47:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:48:05 [end_date_ymd] => 2024-12-21 06:48:05 [RateCDR] => 1 ) [2024-12-21 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:48:05' and `end` < '2024-12-21 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:48:17] Production.INFO: count ==45 [2024-12-21 06:48:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:48:05 - End Time 2024-12-21 06:48:05 [2024-12-21 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068426', 'tblTempUsageDetail_20' ) start [2024-12-21 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068426', 'tblTempUsageDetail_20' ) end [2024-12-21 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068426', 'tblTempVendorCDR_20' ) start [2024-12-21 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068426', 'tblTempVendorCDR_20' ) end [2024-12-21 06:48:17] Production.INFO: ProcessCDR(1,14068426,1,1,2) [2024-12-21 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068426', 'tblTempUsageDetail_20' ) start [2024-12-21 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068426', 'tblTempUsageDetail_20' ) end [2024-12-21 06:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:48:21] Production.INFO: ==3087== Releasing lock... [2024-12-21 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:48:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:49:05 [end_date_ymd] => 2024-12-21 06:49:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:49:05' and `end` < '2024-12-21 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-21 06:49:17] Production.INFO: count ==45 [2024-12-21 06:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:49:05 - End Time 2024-12-21 06:49:05 [2024-12-21 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068431', 'tblTempUsageDetail_20' ) start [2024-12-21 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068431', 'tblTempUsageDetail_20' ) end [2024-12-21 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068431', 'tblTempVendorCDR_20' ) start [2024-12-21 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068431', 'tblTempVendorCDR_20' ) end [2024-12-21 06:49:17] Production.INFO: ProcessCDR(1,14068431,1,1,2) [2024-12-21 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068431', 'tblTempUsageDetail_20' ) start [2024-12-21 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068431', 'tblTempUsageDetail_20' ) end [2024-12-21 06:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:49:20] Production.INFO: ==3200== Releasing lock... [2024-12-21 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:49:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:50:06 [end_date_ymd] => 2024-12-21 06:50:06 [RateCDR] => 1 ) [2024-12-21 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:50:06' and `end` < '2024-12-21 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:50:18] Production.INFO: count ==41 [2024-12-21 06:50:18] Production.ERROR: pbx CDR StartTime 2024-12-21 03:50:06 - End Time 2024-12-21 06:50:06 [2024-12-21 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068437', 'tblTempUsageDetail_20' ) start [2024-12-21 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068437', 'tblTempUsageDetail_20' ) end [2024-12-21 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068437', 'tblTempVendorCDR_20' ) start [2024-12-21 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068437', 'tblTempVendorCDR_20' ) end [2024-12-21 06:50:18] Production.INFO: ProcessCDR(1,14068437,1,1,2) [2024-12-21 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068437', 'tblTempUsageDetail_20' ) start [2024-12-21 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068437', 'tblTempUsageDetail_20' ) end [2024-12-21 06:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:50:21] Production.INFO: ==3280== Releasing lock... [2024-12-21 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:50:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:51:04 [end_date_ymd] => 2024-12-21 06:51:04 [RateCDR] => 1 ) [2024-12-21 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-21 03:51:04' and `end` < '2024-12-21 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-21 06:51:17] Production.INFO: count ==41 [2024-12-21 06:51:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:51:04 - End Time 2024-12-21 06:51:04 [2024-12-21 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068442', 'tblTempUsageDetail_20' ) start [2024-12-21 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068442', 'tblTempUsageDetail_20' ) end [2024-12-21 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068442', 'tblTempVendorCDR_20' ) start [2024-12-21 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068442', 'tblTempVendorCDR_20' ) end [2024-12-21 06:51:17] Production.INFO: ProcessCDR(1,14068442,1,1,2) [2024-12-21 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068442', 'tblTempUsageDetail_20' ) start [2024-12-21 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068442', 'tblTempUsageDetail_20' ) end [2024-12-21 06:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:51:20] Production.INFO: ==3359== Releasing lock... [2024-12-21 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:51:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:52:05 [end_date_ymd] => 2024-12-21 06:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:52:05' and `end` < '2024-12-21 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-21 06:52:17] Production.INFO: count ==41 [2024-12-21 06:52:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:52:05 - End Time 2024-12-21 06:52:05 [2024-12-21 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068447', 'tblTempUsageDetail_20' ) start [2024-12-21 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068447', 'tblTempUsageDetail_20' ) end [2024-12-21 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068447', 'tblTempVendorCDR_20' ) start [2024-12-21 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068447', 'tblTempVendorCDR_20' ) end [2024-12-21 06:52:17] Production.INFO: ProcessCDR(1,14068447,1,1,2) [2024-12-21 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068447', 'tblTempUsageDetail_20' ) start [2024-12-21 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068447', 'tblTempUsageDetail_20' ) end [2024-12-21 06:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:52:20] Production.INFO: ==3435== Releasing lock... [2024-12-21 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:52:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:53:05 [end_date_ymd] => 2024-12-21 06:53:05 [RateCDR] => 1 ) [2024-12-21 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:53:05' and `end` < '2024-12-21 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:53:18] Production.INFO: count ==41 [2024-12-21 06:53:18] Production.ERROR: pbx CDR StartTime 2024-12-21 03:53:05 - End Time 2024-12-21 06:53:05 [2024-12-21 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068452', 'tblTempUsageDetail_20' ) start [2024-12-21 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068452', 'tblTempUsageDetail_20' ) end [2024-12-21 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068452', 'tblTempVendorCDR_20' ) start [2024-12-21 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068452', 'tblTempVendorCDR_20' ) end [2024-12-21 06:53:18] Production.INFO: ProcessCDR(1,14068452,1,1,2) [2024-12-21 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068452', 'tblTempUsageDetail_20' ) start [2024-12-21 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068452', 'tblTempUsageDetail_20' ) end [2024-12-21 06:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:53:21] Production.INFO: ==3509== Releasing lock... [2024-12-21 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:53:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:54:05 [end_date_ymd] => 2024-12-21 06:54:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:54:05' and `end` < '2024-12-21 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-21 06:54:16] Production.INFO: count ==41 [2024-12-21 06:54:16] Production.ERROR: pbx CDR StartTime 2024-12-21 03:54:05 - End Time 2024-12-21 06:54:05 [2024-12-21 06:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068457', 'tblTempUsageDetail_20' ) start [2024-12-21 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068457', 'tblTempUsageDetail_20' ) end [2024-12-21 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068457', 'tblTempVendorCDR_20' ) start [2024-12-21 06:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068457', 'tblTempVendorCDR_20' ) end [2024-12-21 06:54:16] Production.INFO: ProcessCDR(1,14068457,1,1,2) [2024-12-21 06:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:54:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068457', 'tblTempUsageDetail_20' ) start [2024-12-21 06:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068457', 'tblTempUsageDetail_20' ) end [2024-12-21 06:54:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:54:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:54:19] Production.INFO: ==3582== Releasing lock... [2024-12-21 06:54:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:54:19] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:55:05 [end_date_ymd] => 2024-12-21 06:55:05 [RateCDR] => 1 ) [2024-12-21 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:55:05' and `end` < '2024-12-21 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:55:17] Production.INFO: count ==41 [2024-12-21 06:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:55:05 - End Time 2024-12-21 06:55:05 [2024-12-21 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068462', 'tblTempUsageDetail_20' ) start [2024-12-21 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068462', 'tblTempUsageDetail_20' ) end [2024-12-21 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068462', 'tblTempVendorCDR_20' ) start [2024-12-21 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068462', 'tblTempVendorCDR_20' ) end [2024-12-21 06:55:17] Production.INFO: ProcessCDR(1,14068462,1,1,2) [2024-12-21 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068462', 'tblTempUsageDetail_20' ) start [2024-12-21 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068462', 'tblTempUsageDetail_20' ) end [2024-12-21 06:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:55:20] Production.INFO: ==3655== Releasing lock... [2024-12-21 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:55:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:56:04 [end_date_ymd] => 2024-12-21 06:56:04 [RateCDR] => 1 ) [2024-12-21 06:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 03:56:04' and `end` < '2024-12-21 06:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 06:56:17] Production.INFO: count ==41 [2024-12-21 06:56:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:56:04 - End Time 2024-12-21 06:56:04 [2024-12-21 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068467', 'tblTempUsageDetail_20' ) start [2024-12-21 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068467', 'tblTempUsageDetail_20' ) end [2024-12-21 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068467', 'tblTempVendorCDR_20' ) start [2024-12-21 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068467', 'tblTempVendorCDR_20' ) end [2024-12-21 06:56:17] Production.INFO: ProcessCDR(1,14068467,1,1,2) [2024-12-21 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068467', 'tblTempUsageDetail_20' ) start [2024-12-21 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068467', 'tblTempUsageDetail_20' ) end [2024-12-21 06:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:56:20] Production.INFO: ==3730== Releasing lock... [2024-12-21 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:56:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:57:05 [end_date_ymd] => 2024-12-21 06:57:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:57:05' and `end` < '2024-12-21 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-21 06:57:17] Production.INFO: count ==41 [2024-12-21 06:57:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:57:05 - End Time 2024-12-21 06:57:05 [2024-12-21 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068472', 'tblTempUsageDetail_20' ) start [2024-12-21 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068472', 'tblTempUsageDetail_20' ) end [2024-12-21 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068472', 'tblTempVendorCDR_20' ) start [2024-12-21 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068472', 'tblTempVendorCDR_20' ) end [2024-12-21 06:57:17] Production.INFO: ProcessCDR(1,14068472,1,1,2) [2024-12-21 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068472', 'tblTempUsageDetail_20' ) start [2024-12-21 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068472', 'tblTempUsageDetail_20' ) end [2024-12-21 06:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:57:20] Production.INFO: ==3805== Releasing lock... [2024-12-21 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:57:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:58:05 [end_date_ymd] => 2024-12-21 06:58:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:58:05' and `end` < '2024-12-21 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-21 06:58:16] Production.INFO: count ==41 [2024-12-21 06:58:16] Production.ERROR: pbx CDR StartTime 2024-12-21 03:58:05 - End Time 2024-12-21 06:58:05 [2024-12-21 06:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068477', 'tblTempUsageDetail_20' ) start [2024-12-21 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068477', 'tblTempUsageDetail_20' ) end [2024-12-21 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068477', 'tblTempVendorCDR_20' ) start [2024-12-21 06:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068477', 'tblTempVendorCDR_20' ) end [2024-12-21 06:58:16] Production.INFO: ProcessCDR(1,14068477,1,1,2) [2024-12-21 06:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068477', 'tblTempUsageDetail_20' ) start [2024-12-21 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068477', 'tblTempUsageDetail_20' ) end [2024-12-21 06:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:58:20] Production.INFO: ==3879== Releasing lock... [2024-12-21 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:58:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 03:59:05 [end_date_ymd] => 2024-12-21 06:59:05 [RateCDR] => 1 ) [2024-12-21 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-21 03:59:05' and `end` < '2024-12-21 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-21 06:59:17] Production.INFO: count ==41 [2024-12-21 06:59:17] Production.ERROR: pbx CDR StartTime 2024-12-21 03:59:05 - End Time 2024-12-21 06:59:05 [2024-12-21 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068482', 'tblTempUsageDetail_20' ) start [2024-12-21 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068482', 'tblTempUsageDetail_20' ) end [2024-12-21 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068482', 'tblTempVendorCDR_20' ) start [2024-12-21 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068482', 'tblTempVendorCDR_20' ) end [2024-12-21 06:59:17] Production.INFO: ProcessCDR(1,14068482,1,1,2) [2024-12-21 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068482', 'tblTempUsageDetail_20' ) start [2024-12-21 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068482', 'tblTempUsageDetail_20' ) end [2024-12-21 06:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 06:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 06:59:20] Production.INFO: ==3949== Releasing lock... [2024-12-21 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 06:59:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:00:05 [end_date_ymd] => 2024-12-21 07:00:05 [RateCDR] => 1 ) [2024-12-21 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:00:05' and `end` < '2024-12-21 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:00:17] Production.INFO: count ==41 [2024-12-21 07:00:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:00:05 - End Time 2024-12-21 07:00:05 [2024-12-21 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068488', 'tblTempUsageDetail_20' ) start [2024-12-21 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068488', 'tblTempUsageDetail_20' ) end [2024-12-21 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068488', 'tblTempVendorCDR_20' ) start [2024-12-21 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068488', 'tblTempVendorCDR_20' ) end [2024-12-21 07:00:17] Production.INFO: ProcessCDR(1,14068488,1,1,2) [2024-12-21 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068488', 'tblTempUsageDetail_20' ) start [2024-12-21 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068488', 'tblTempUsageDetail_20' ) end [2024-12-21 07:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:00:20] Production.INFO: ==4025== Releasing lock... [2024-12-21 07:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:00:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:01:05 [end_date_ymd] => 2024-12-21 07:01:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:01:05' and `end` < '2024-12-21 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-21 07:01:21] Production.INFO: count ==41 [2024-12-21 07:01:21] Production.ERROR: pbx CDR StartTime 2024-12-21 04:01:05 - End Time 2024-12-21 07:01:05 [2024-12-21 07:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068493', 'tblTempUsageDetail_20' ) start [2024-12-21 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068493', 'tblTempUsageDetail_20' ) end [2024-12-21 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068493', 'tblTempVendorCDR_20' ) start [2024-12-21 07:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068493', 'tblTempVendorCDR_20' ) end [2024-12-21 07:01:21] Production.INFO: ProcessCDR(1,14068493,1,1,2) [2024-12-21 07:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068493', 'tblTempUsageDetail_20' ) start [2024-12-21 07:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068493', 'tblTempUsageDetail_20' ) end [2024-12-21 07:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:01:24] Production.INFO: ==4114== Releasing lock... [2024-12-21 07:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:01:24] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:02:04 [end_date_ymd] => 2024-12-21 07:02:04 [RateCDR] => 1 ) [2024-12-21 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-21 04:02:04' and `end` < '2024-12-21 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-21 07:02:17] Production.INFO: count ==41 [2024-12-21 07:02:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:02:04 - End Time 2024-12-21 07:02:04 [2024-12-21 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068498', 'tblTempUsageDetail_20' ) start [2024-12-21 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068498', 'tblTempUsageDetail_20' ) end [2024-12-21 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068498', 'tblTempVendorCDR_20' ) start [2024-12-21 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068498', 'tblTempVendorCDR_20' ) end [2024-12-21 07:02:17] Production.INFO: ProcessCDR(1,14068498,1,1,2) [2024-12-21 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068498', 'tblTempUsageDetail_20' ) start [2024-12-21 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068498', 'tblTempUsageDetail_20' ) end [2024-12-21 07:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:02:20] Production.INFO: ==4265== Releasing lock... [2024-12-21 07:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:02:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:03:05 [end_date_ymd] => 2024-12-21 07:03:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:03:05' and `end` < '2024-12-21 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-21 07:03:19] Production.INFO: count ==41 [2024-12-21 07:03:19] Production.ERROR: pbx CDR StartTime 2024-12-21 04:03:05 - End Time 2024-12-21 07:03:05 [2024-12-21 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068503', 'tblTempUsageDetail_20' ) start [2024-12-21 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068503', 'tblTempUsageDetail_20' ) end [2024-12-21 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068503', 'tblTempVendorCDR_20' ) start [2024-12-21 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068503', 'tblTempVendorCDR_20' ) end [2024-12-21 07:03:19] Production.INFO: ProcessCDR(1,14068503,1,1,2) [2024-12-21 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068503', 'tblTempUsageDetail_20' ) start [2024-12-21 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068503', 'tblTempUsageDetail_20' ) end [2024-12-21 07:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:03:22] Production.INFO: ==4380== Releasing lock... [2024-12-21 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:03:22] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:04:05 [end_date_ymd] => 2024-12-21 07:04:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:04:05' and `end` < '2024-12-21 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-21 07:04:19] Production.INFO: count ==41 [2024-12-21 07:04:19] Production.ERROR: pbx CDR StartTime 2024-12-21 04:04:05 - End Time 2024-12-21 07:04:05 [2024-12-21 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068508', 'tblTempUsageDetail_20' ) start [2024-12-21 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068508', 'tblTempUsageDetail_20' ) end [2024-12-21 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068508', 'tblTempVendorCDR_20' ) start [2024-12-21 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068508', 'tblTempVendorCDR_20' ) end [2024-12-21 07:04:19] Production.INFO: ProcessCDR(1,14068508,1,1,2) [2024-12-21 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068508', 'tblTempUsageDetail_20' ) start [2024-12-21 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068508', 'tblTempUsageDetail_20' ) end [2024-12-21 07:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:04:22] Production.INFO: ==4450== Releasing lock... [2024-12-21 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:04:22] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:05:05 [end_date_ymd] => 2024-12-21 07:05:05 [RateCDR] => 1 ) [2024-12-21 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:05:05' and `end` < '2024-12-21 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:05:18] Production.INFO: count ==41 [2024-12-21 07:05:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:05:05 - End Time 2024-12-21 07:05:05 [2024-12-21 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068513', 'tblTempUsageDetail_20' ) start [2024-12-21 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068513', 'tblTempUsageDetail_20' ) end [2024-12-21 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068513', 'tblTempVendorCDR_20' ) start [2024-12-21 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068513', 'tblTempVendorCDR_20' ) end [2024-12-21 07:05:18] Production.INFO: ProcessCDR(1,14068513,1,1,2) [2024-12-21 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068513', 'tblTempUsageDetail_20' ) start [2024-12-21 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068513', 'tblTempUsageDetail_20' ) end [2024-12-21 07:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:05:21] Production.INFO: ==4607== Releasing lock... [2024-12-21 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:05:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:06:05 [end_date_ymd] => 2024-12-21 07:06:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:06:05' and `end` < '2024-12-21 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-21 07:06:18] Production.INFO: count ==41 [2024-12-21 07:06:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:06:05 - End Time 2024-12-21 07:06:05 [2024-12-21 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068518', 'tblTempUsageDetail_20' ) start [2024-12-21 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068518', 'tblTempUsageDetail_20' ) end [2024-12-21 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068518', 'tblTempVendorCDR_20' ) start [2024-12-21 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068518', 'tblTempVendorCDR_20' ) end [2024-12-21 07:06:18] Production.INFO: ProcessCDR(1,14068518,1,1,2) [2024-12-21 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068518', 'tblTempUsageDetail_20' ) start [2024-12-21 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068518', 'tblTempUsageDetail_20' ) end [2024-12-21 07:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:06:21] Production.INFO: ==4681== Releasing lock... [2024-12-21 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:06:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:07:04 [end_date_ymd] => 2024-12-21 07:07:04 [RateCDR] => 1 ) [2024-12-21 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-21 04:07:04' and `end` < '2024-12-21 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-21 07:07:17] Production.INFO: count ==41 [2024-12-21 07:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:07:04 - End Time 2024-12-21 07:07:04 [2024-12-21 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068523', 'tblTempUsageDetail_20' ) start [2024-12-21 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068523', 'tblTempUsageDetail_20' ) end [2024-12-21 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068523', 'tblTempVendorCDR_20' ) start [2024-12-21 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068523', 'tblTempVendorCDR_20' ) end [2024-12-21 07:07:17] Production.INFO: ProcessCDR(1,14068523,1,1,2) [2024-12-21 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068523', 'tblTempUsageDetail_20' ) start [2024-12-21 07:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068523', 'tblTempUsageDetail_20' ) end [2024-12-21 07:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:07:19] Production.INFO: ==4751== Releasing lock... [2024-12-21 07:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:07:19] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:08:06 [end_date_ymd] => 2024-12-21 07:08:06 [RateCDR] => 1 ) [2024-12-21 07: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-21 04:08:06' and `end` < '2024-12-21 07: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-21 07:08:18] Production.INFO: count ==41 [2024-12-21 07:08:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:08:06 - End Time 2024-12-21 07:08:06 [2024-12-21 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068528', 'tblTempUsageDetail_20' ) start [2024-12-21 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068528', 'tblTempUsageDetail_20' ) end [2024-12-21 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068528', 'tblTempVendorCDR_20' ) start [2024-12-21 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068528', 'tblTempVendorCDR_20' ) end [2024-12-21 07:08:18] Production.INFO: ProcessCDR(1,14068528,1,1,2) [2024-12-21 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068528', 'tblTempUsageDetail_20' ) start [2024-12-21 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068528', 'tblTempUsageDetail_20' ) end [2024-12-21 07:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:08:21] Production.INFO: ==4828== Releasing lock... [2024-12-21 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:08:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:09:05 [end_date_ymd] => 2024-12-21 07:09:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:09:05' and `end` < '2024-12-21 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-21 07:09:18] Production.INFO: count ==41 [2024-12-21 07:09:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:09:05 - End Time 2024-12-21 07:09:05 [2024-12-21 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068533', 'tblTempUsageDetail_20' ) start [2024-12-21 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068533', 'tblTempUsageDetail_20' ) end [2024-12-21 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068533', 'tblTempVendorCDR_20' ) start [2024-12-21 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068533', 'tblTempVendorCDR_20' ) end [2024-12-21 07:09:18] Production.INFO: ProcessCDR(1,14068533,1,1,2) [2024-12-21 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068533', 'tblTempUsageDetail_20' ) start [2024-12-21 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068533', 'tblTempUsageDetail_20' ) end [2024-12-21 07:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:09:21] Production.INFO: ==4978== Releasing lock... [2024-12-21 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:09:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:10:06 [end_date_ymd] => 2024-12-21 07:10:06 [RateCDR] => 1 ) [2024-12-21 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:10:06' and `end` < '2024-12-21 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:10:18] Production.INFO: count ==33 [2024-12-21 07:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:10:06 - End Time 2024-12-21 07:10:06 [2024-12-21 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068539', 'tblTempUsageDetail_20' ) start [2024-12-21 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068539', 'tblTempUsageDetail_20' ) end [2024-12-21 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068539', 'tblTempVendorCDR_20' ) start [2024-12-21 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068539', 'tblTempVendorCDR_20' ) end [2024-12-21 07:10:18] Production.INFO: ProcessCDR(1,14068539,1,1,2) [2024-12-21 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068539', 'tblTempUsageDetail_20' ) start [2024-12-21 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068539', 'tblTempUsageDetail_20' ) end [2024-12-21 07:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:10:21] Production.INFO: ==5049== Releasing lock... [2024-12-21 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:10:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:11:04 [end_date_ymd] => 2024-12-21 07:11:04 [RateCDR] => 1 ) [2024-12-21 07:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:11:04' and `end` < '2024-12-21 07:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:11:18] Production.INFO: count ==27 [2024-12-21 07:11:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:11:04 - End Time 2024-12-21 07:11:04 [2024-12-21 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068544', 'tblTempUsageDetail_20' ) start [2024-12-21 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068544', 'tblTempUsageDetail_20' ) end [2024-12-21 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068544', 'tblTempVendorCDR_20' ) start [2024-12-21 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068544', 'tblTempVendorCDR_20' ) end [2024-12-21 07:11:18] Production.INFO: ProcessCDR(1,14068544,1,1,2) [2024-12-21 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068544', 'tblTempUsageDetail_20' ) start [2024-12-21 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068544', 'tblTempUsageDetail_20' ) end [2024-12-21 07:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:11:21] Production.INFO: ==5127== Releasing lock... [2024-12-21 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:11:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:12:05 [end_date_ymd] => 2024-12-21 07:12:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:12:05' and `end` < '2024-12-21 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-21 07:12:18] Production.INFO: count ==27 [2024-12-21 07:12:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:12:05 - End Time 2024-12-21 07:12:05 [2024-12-21 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068549', 'tblTempUsageDetail_20' ) start [2024-12-21 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068549', 'tblTempUsageDetail_20' ) end [2024-12-21 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068549', 'tblTempVendorCDR_20' ) start [2024-12-21 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068549', 'tblTempVendorCDR_20' ) end [2024-12-21 07:12:18] Production.INFO: ProcessCDR(1,14068549,1,1,2) [2024-12-21 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068549', 'tblTempUsageDetail_20' ) start [2024-12-21 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068549', 'tblTempUsageDetail_20' ) end [2024-12-21 07:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:12:21] Production.INFO: ==5277== Releasing lock... [2024-12-21 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:12:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:13:04 [end_date_ymd] => 2024-12-21 07:13:04 [RateCDR] => 1 ) [2024-12-21 07: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-21 04:13:04' and `end` < '2024-12-21 07: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-21 07:13:16] Production.INFO: count ==27 [2024-12-21 07:13:16] Production.ERROR: pbx CDR StartTime 2024-12-21 04:13:04 - End Time 2024-12-21 07:13:04 [2024-12-21 07:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068554', 'tblTempUsageDetail_20' ) start [2024-12-21 07:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068554', 'tblTempUsageDetail_20' ) end [2024-12-21 07:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068554', 'tblTempVendorCDR_20' ) start [2024-12-21 07:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068554', 'tblTempVendorCDR_20' ) end [2024-12-21 07:13:16] Production.INFO: ProcessCDR(1,14068554,1,1,2) [2024-12-21 07:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:13:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068554', 'tblTempUsageDetail_20' ) start [2024-12-21 07:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068554', 'tblTempUsageDetail_20' ) end [2024-12-21 07:13:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:13:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:13:19] Production.INFO: ==5350== Releasing lock... [2024-12-21 07:13:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:13:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:14:05 [end_date_ymd] => 2024-12-21 07:14:05 [RateCDR] => 1 ) [2024-12-21 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:14:05' and `end` < '2024-12-21 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:14:17] Production.INFO: count ==27 [2024-12-21 07:14:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:14:05 - End Time 2024-12-21 07:14:05 [2024-12-21 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068559', 'tblTempUsageDetail_20' ) start [2024-12-21 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068559', 'tblTempUsageDetail_20' ) end [2024-12-21 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068559', 'tblTempVendorCDR_20' ) start [2024-12-21 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068559', 'tblTempVendorCDR_20' ) end [2024-12-21 07:14:17] Production.INFO: ProcessCDR(1,14068559,1,1,2) [2024-12-21 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068559', 'tblTempUsageDetail_20' ) start [2024-12-21 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068559', 'tblTempUsageDetail_20' ) end [2024-12-21 07:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:14:21] Production.INFO: ==5425== Releasing lock... [2024-12-21 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:14:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:15:05 [end_date_ymd] => 2024-12-21 07:15:05 [RateCDR] => 1 ) [2024-12-21 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:15:05' and `end` < '2024-12-21 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:15:18] Production.INFO: count ==27 [2024-12-21 07:15:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:15:05 - End Time 2024-12-21 07:15:05 [2024-12-21 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068564', 'tblTempUsageDetail_20' ) start [2024-12-21 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068564', 'tblTempUsageDetail_20' ) end [2024-12-21 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068564', 'tblTempVendorCDR_20' ) start [2024-12-21 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068564', 'tblTempVendorCDR_20' ) end [2024-12-21 07:15:18] Production.INFO: ProcessCDR(1,14068564,1,1,2) [2024-12-21 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068564', 'tblTempUsageDetail_20' ) start [2024-12-21 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068564', 'tblTempUsageDetail_20' ) end [2024-12-21 07:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:15:21] Production.INFO: ==5534== Releasing lock... [2024-12-21 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:15:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:16:05 [end_date_ymd] => 2024-12-21 07:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:16:05' and `end` < '2024-12-21 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-21 07:16:18] Production.INFO: count ==27 [2024-12-21 07:16:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:16:05 - End Time 2024-12-21 07:16:05 [2024-12-21 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068569', 'tblTempUsageDetail_20' ) start [2024-12-21 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068569', 'tblTempUsageDetail_20' ) end [2024-12-21 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068569', 'tblTempVendorCDR_20' ) start [2024-12-21 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068569', 'tblTempVendorCDR_20' ) end [2024-12-21 07:16:18] Production.INFO: ProcessCDR(1,14068569,1,1,2) [2024-12-21 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068569', 'tblTempUsageDetail_20' ) start [2024-12-21 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068569', 'tblTempUsageDetail_20' ) end [2024-12-21 07:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:16:21] Production.INFO: ==5645== Releasing lock... [2024-12-21 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:16:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:17:05 [end_date_ymd] => 2024-12-21 07:17:05 [RateCDR] => 1 ) [2024-12-21 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:17:05' and `end` < '2024-12-21 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:17:19] Production.INFO: count ==27 [2024-12-21 07:17:19] Production.ERROR: pbx CDR StartTime 2024-12-21 04:17:05 - End Time 2024-12-21 07:17:05 [2024-12-21 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068574', 'tblTempUsageDetail_20' ) start [2024-12-21 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068574', 'tblTempUsageDetail_20' ) end [2024-12-21 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068574', 'tblTempVendorCDR_20' ) start [2024-12-21 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068574', 'tblTempVendorCDR_20' ) end [2024-12-21 07:17:19] Production.INFO: ProcessCDR(1,14068574,1,1,2) [2024-12-21 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068574', 'tblTempUsageDetail_20' ) start [2024-12-21 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068574', 'tblTempUsageDetail_20' ) end [2024-12-21 07:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:17:22] Production.INFO: ==5714== Releasing lock... [2024-12-21 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:17:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:18:04 [end_date_ymd] => 2024-12-21 07:18:04 [RateCDR] => 1 ) [2024-12-21 07:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:18:04' and `end` < '2024-12-21 07:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:18:17] Production.INFO: count ==27 [2024-12-21 07:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:18:04 - End Time 2024-12-21 07:18:04 [2024-12-21 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068579', 'tblTempUsageDetail_20' ) start [2024-12-21 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068579', 'tblTempUsageDetail_20' ) end [2024-12-21 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068579', 'tblTempVendorCDR_20' ) start [2024-12-21 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068579', 'tblTempVendorCDR_20' ) end [2024-12-21 07:18:17] Production.INFO: ProcessCDR(1,14068579,1,1,2) [2024-12-21 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068579', 'tblTempUsageDetail_20' ) start [2024-12-21 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068579', 'tblTempUsageDetail_20' ) end [2024-12-21 07:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:18:20] Production.INFO: ==5788== Releasing lock... [2024-12-21 07:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:18:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:19:05 [end_date_ymd] => 2024-12-21 07:19:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:19:05' and `end` < '2024-12-21 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-21 07:19:17] Production.INFO: count ==27 [2024-12-21 07:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:19:05 - End Time 2024-12-21 07:19:05 [2024-12-21 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068584', 'tblTempUsageDetail_20' ) start [2024-12-21 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068584', 'tblTempUsageDetail_20' ) end [2024-12-21 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068584', 'tblTempVendorCDR_20' ) start [2024-12-21 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068584', 'tblTempVendorCDR_20' ) end [2024-12-21 07:19:17] Production.INFO: ProcessCDR(1,14068584,1,1,2) [2024-12-21 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068584', 'tblTempUsageDetail_20' ) start [2024-12-21 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068584', 'tblTempUsageDetail_20' ) end [2024-12-21 07:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:19:20] Production.INFO: ==5919== Releasing lock... [2024-12-21 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:20:05 [end_date_ymd] => 2024-12-21 07:20:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:20:05' and `end` < '2024-12-21 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-21 07:20:17] Production.INFO: count ==25 [2024-12-21 07:20:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:20:05 - End Time 2024-12-21 07:20:05 [2024-12-21 07:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068590', 'tblTempUsageDetail_20' ) start [2024-12-21 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068590', 'tblTempUsageDetail_20' ) end [2024-12-21 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068590', 'tblTempVendorCDR_20' ) start [2024-12-21 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068590', 'tblTempVendorCDR_20' ) end [2024-12-21 07:20:17] Production.INFO: ProcessCDR(1,14068590,1,1,2) [2024-12-21 07:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068590', 'tblTempUsageDetail_20' ) start [2024-12-21 07:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068590', 'tblTempUsageDetail_20' ) end [2024-12-21 07:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:20:20] Production.INFO: ==5995== Releasing lock... [2024-12-21 07:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:20:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:21:04 [end_date_ymd] => 2024-12-21 07:21:04 [RateCDR] => 1 ) [2024-12-21 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-21 04:21:04' and `end` < '2024-12-21 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-21 07:21:59] Production.INFO: count ==25 [2024-12-21 07:21:59] Production.ERROR: pbx CDR StartTime 2024-12-21 04:21:04 - End Time 2024-12-21 07:21:04 [2024-12-21 07:21:59] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:21:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068595', 'tblTempUsageDetail_20' ) start [2024-12-21 07:21:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068595', 'tblTempUsageDetail_20' ) end [2024-12-21 07:21:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068595', 'tblTempVendorCDR_20' ) start [2024-12-21 07:21:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068595', 'tblTempVendorCDR_20' ) end [2024-12-21 07:21:59] Production.INFO: ProcessCDR(1,14068595,1,1,2) [2024-12-21 07:21:59] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:22:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:22:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:22:02] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:22:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068595', 'tblTempUsageDetail_20' ) start [2024-12-21 07:22:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068595', 'tblTempUsageDetail_20' ) end [2024-12-21 07:22:02] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:22:02] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:22:02] Production.INFO: ==6070== Releasing lock... [2024-12-21 07:22:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:22:02] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:22:05 [end_date_ymd] => 2024-12-21 07:22:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:22:05' and `end` < '2024-12-21 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-21 07:22:18] Production.INFO: count ==25 [2024-12-21 07:22:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:22:05 - End Time 2024-12-21 07:22:05 [2024-12-21 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068600', 'tblTempUsageDetail_20' ) start [2024-12-21 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068600', 'tblTempUsageDetail_20' ) end [2024-12-21 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068600', 'tblTempVendorCDR_20' ) start [2024-12-21 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068600', 'tblTempVendorCDR_20' ) end [2024-12-21 07:22:18] Production.INFO: ProcessCDR(1,14068600,1,1,2) [2024-12-21 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068600', 'tblTempUsageDetail_20' ) start [2024-12-21 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068600', 'tblTempUsageDetail_20' ) end [2024-12-21 07:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:22:21] Production.INFO: ==6142== Releasing lock... [2024-12-21 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:22:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:23:05 [end_date_ymd] => 2024-12-21 07:23:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:23:05' and `end` < '2024-12-21 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-21 07:23:17] Production.INFO: count ==25 [2024-12-21 07:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:23:05 - End Time 2024-12-21 07:23:05 [2024-12-21 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068605', 'tblTempUsageDetail_20' ) start [2024-12-21 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068605', 'tblTempUsageDetail_20' ) end [2024-12-21 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068605', 'tblTempVendorCDR_20' ) start [2024-12-21 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068605', 'tblTempVendorCDR_20' ) end [2024-12-21 07:23:17] Production.INFO: ProcessCDR(1,14068605,1,1,2) [2024-12-21 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068605', 'tblTempUsageDetail_20' ) start [2024-12-21 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068605', 'tblTempUsageDetail_20' ) end [2024-12-21 07:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:23:20] Production.INFO: ==6214== Releasing lock... [2024-12-21 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:23:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:24:04 [end_date_ymd] => 2024-12-21 07:24:04 [RateCDR] => 1 ) [2024-12-21 07: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-21 04:24:04' and `end` < '2024-12-21 07: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-21 07:24:17] Production.INFO: count ==25 [2024-12-21 07:24:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:24:04 - End Time 2024-12-21 07:24:04 [2024-12-21 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068610', 'tblTempUsageDetail_20' ) start [2024-12-21 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068610', 'tblTempUsageDetail_20' ) end [2024-12-21 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068610', 'tblTempVendorCDR_20' ) start [2024-12-21 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068610', 'tblTempVendorCDR_20' ) end [2024-12-21 07:24:17] Production.INFO: ProcessCDR(1,14068610,1,1,2) [2024-12-21 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068610', 'tblTempUsageDetail_20' ) start [2024-12-21 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068610', 'tblTempUsageDetail_20' ) end [2024-12-21 07:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:24:20] Production.INFO: ==6285== Releasing lock... [2024-12-21 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:24:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:25:05 [end_date_ymd] => 2024-12-21 07:25:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:25:05' and `end` < '2024-12-21 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-21 07:25:17] Production.INFO: count ==25 [2024-12-21 07:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:25:05 - End Time 2024-12-21 07:25:05 [2024-12-21 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068615', 'tblTempUsageDetail_20' ) start [2024-12-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068615', 'tblTempUsageDetail_20' ) end [2024-12-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068615', 'tblTempVendorCDR_20' ) start [2024-12-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068615', 'tblTempVendorCDR_20' ) end [2024-12-21 07:25:17] Production.INFO: ProcessCDR(1,14068615,1,1,2) [2024-12-21 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068615', 'tblTempUsageDetail_20' ) start [2024-12-21 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068615', 'tblTempUsageDetail_20' ) end [2024-12-21 07:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:25:20] Production.INFO: ==6362== Releasing lock... [2024-12-21 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:25:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:26:04 [end_date_ymd] => 2024-12-21 07:26:04 [RateCDR] => 1 ) [2024-12-21 07: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-21 04:26:04' and `end` < '2024-12-21 07: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-21 07:26:16] Production.INFO: count ==25 [2024-12-21 07:26:16] Production.ERROR: pbx CDR StartTime 2024-12-21 04:26:04 - End Time 2024-12-21 07:26:04 [2024-12-21 07:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068620', 'tblTempUsageDetail_20' ) start [2024-12-21 07:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068620', 'tblTempUsageDetail_20' ) end [2024-12-21 07:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068620', 'tblTempVendorCDR_20' ) start [2024-12-21 07:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068620', 'tblTempVendorCDR_20' ) end [2024-12-21 07:26:16] Production.INFO: ProcessCDR(1,14068620,1,1,2) [2024-12-21 07:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068620', 'tblTempUsageDetail_20' ) start [2024-12-21 07:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068620', 'tblTempUsageDetail_20' ) end [2024-12-21 07:26:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:26:20] Production.INFO: ==6431== Releasing lock... [2024-12-21 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:26:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:27:04 [end_date_ymd] => 2024-12-21 07:27:04 [RateCDR] => 1 ) [2024-12-21 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:27:04' and `end` < '2024-12-21 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-21 07:27:17] Production.INFO: count ==25 [2024-12-21 07:27:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:27:04 - End Time 2024-12-21 07:27:04 [2024-12-21 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068625', 'tblTempUsageDetail_20' ) start [2024-12-21 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068625', 'tblTempUsageDetail_20' ) end [2024-12-21 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068625', 'tblTempVendorCDR_20' ) start [2024-12-21 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068625', 'tblTempVendorCDR_20' ) end [2024-12-21 07:27:17] Production.INFO: ProcessCDR(1,14068625,1,1,2) [2024-12-21 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068625', 'tblTempUsageDetail_20' ) start [2024-12-21 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068625', 'tblTempUsageDetail_20' ) end [2024-12-21 07:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:27:20] Production.INFO: ==6504== Releasing lock... [2024-12-21 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:28:05 [end_date_ymd] => 2024-12-21 07:28:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:28:05' and `end` < '2024-12-21 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-21 07:28:18] Production.INFO: count ==25 [2024-12-21 07:28:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:28:05 - End Time 2024-12-21 07:28:05 [2024-12-21 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068630', 'tblTempUsageDetail_20' ) start [2024-12-21 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068630', 'tblTempUsageDetail_20' ) end [2024-12-21 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068630', 'tblTempVendorCDR_20' ) start [2024-12-21 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068630', 'tblTempVendorCDR_20' ) end [2024-12-21 07:28:18] Production.INFO: ProcessCDR(1,14068630,1,1,2) [2024-12-21 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068630', 'tblTempUsageDetail_20' ) start [2024-12-21 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068630', 'tblTempUsageDetail_20' ) end [2024-12-21 07:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:28:21] Production.INFO: ==6578== Releasing lock... [2024-12-21 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:28:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:29:05 [end_date_ymd] => 2024-12-21 07:29:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:29:05' and `end` < '2024-12-21 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-21 07:29:18] Production.INFO: count ==25 [2024-12-21 07:29:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:29:05 - End Time 2024-12-21 07:29:05 [2024-12-21 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068635', 'tblTempUsageDetail_20' ) start [2024-12-21 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068635', 'tblTempUsageDetail_20' ) end [2024-12-21 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068635', 'tblTempVendorCDR_20' ) start [2024-12-21 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068635', 'tblTempVendorCDR_20' ) end [2024-12-21 07:29:18] Production.INFO: ProcessCDR(1,14068635,1,1,2) [2024-12-21 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068635', 'tblTempUsageDetail_20' ) start [2024-12-21 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068635', 'tblTempUsageDetail_20' ) end [2024-12-21 07:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:29:21] Production.INFO: ==6649== Releasing lock... [2024-12-21 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:29:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:30:05 [end_date_ymd] => 2024-12-21 07:30:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:30:05' and `end` < '2024-12-21 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-21 07:30:17] Production.INFO: count ==21 [2024-12-21 07:30:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:30:05 - End Time 2024-12-21 07:30:05 [2024-12-21 07:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068641', 'tblTempUsageDetail_20' ) start [2024-12-21 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068641', 'tblTempUsageDetail_20' ) end [2024-12-21 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068641', 'tblTempVendorCDR_20' ) start [2024-12-21 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068641', 'tblTempVendorCDR_20' ) end [2024-12-21 07:30:17] Production.INFO: ProcessCDR(1,14068641,1,1,2) [2024-12-21 07:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068641', 'tblTempUsageDetail_20' ) start [2024-12-21 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068641', 'tblTempUsageDetail_20' ) end [2024-12-21 07:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:30:20] Production.INFO: ==6727== Releasing lock... [2024-12-21 07:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:30:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:31:04 [end_date_ymd] => 2024-12-21 07:31:04 [RateCDR] => 1 ) [2024-12-21 07: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-21 04:31:04' and `end` < '2024-12-21 07: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-21 07:31:17] Production.INFO: count ==22 [2024-12-21 07:31:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:31:04 - End Time 2024-12-21 07:31:04 [2024-12-21 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068646', 'tblTempUsageDetail_20' ) start [2024-12-21 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068646', 'tblTempUsageDetail_20' ) end [2024-12-21 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068646', 'tblTempVendorCDR_20' ) start [2024-12-21 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068646', 'tblTempVendorCDR_20' ) end [2024-12-21 07:31:17] Production.INFO: ProcessCDR(1,14068646,1,1,2) [2024-12-21 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068646', 'tblTempUsageDetail_20' ) start [2024-12-21 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068646', 'tblTempUsageDetail_20' ) end [2024-12-21 07:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:31:21] Production.INFO: ==6801== Releasing lock... [2024-12-21 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:31:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:32:05 [end_date_ymd] => 2024-12-21 07:32:05 [RateCDR] => 1 ) [2024-12-21 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:32:05' and `end` < '2024-12-21 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:32:18] Production.INFO: count ==22 [2024-12-21 07:32:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:32:05 - End Time 2024-12-21 07:32:05 [2024-12-21 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068651', 'tblTempUsageDetail_20' ) start [2024-12-21 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068651', 'tblTempUsageDetail_20' ) end [2024-12-21 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068651', 'tblTempVendorCDR_20' ) start [2024-12-21 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068651', 'tblTempVendorCDR_20' ) end [2024-12-21 07:32:18] Production.INFO: ProcessCDR(1,14068651,1,1,2) [2024-12-21 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068651', 'tblTempUsageDetail_20' ) start [2024-12-21 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068651', 'tblTempUsageDetail_20' ) end [2024-12-21 07:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:32:22] Production.INFO: ==6871== Releasing lock... [2024-12-21 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:32:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:33:04 [end_date_ymd] => 2024-12-21 07:33:04 [RateCDR] => 1 ) [2024-12-21 07:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:33:04' and `end` < '2024-12-21 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-21 07:33:16] Production.INFO: count ==22 [2024-12-21 07:33:16] Production.ERROR: pbx CDR StartTime 2024-12-21 04:33:04 - End Time 2024-12-21 07:33:04 [2024-12-21 07:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068656', 'tblTempUsageDetail_20' ) start [2024-12-21 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068656', 'tblTempUsageDetail_20' ) end [2024-12-21 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068656', 'tblTempVendorCDR_20' ) start [2024-12-21 07:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068656', 'tblTempVendorCDR_20' ) end [2024-12-21 07:33:16] Production.INFO: ProcessCDR(1,14068656,1,1,2) [2024-12-21 07:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068656', 'tblTempUsageDetail_20' ) start [2024-12-21 07:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068656', 'tblTempUsageDetail_20' ) end [2024-12-21 07:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:33:19] Production.INFO: ==6948== Releasing lock... [2024-12-21 07:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:33:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:34:05 [end_date_ymd] => 2024-12-21 07:34:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:34:05' and `end` < '2024-12-21 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-21 07:34:18] Production.INFO: count ==22 [2024-12-21 07:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:34:05 - End Time 2024-12-21 07:34:05 [2024-12-21 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068661', 'tblTempUsageDetail_20' ) start [2024-12-21 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068661', 'tblTempUsageDetail_20' ) end [2024-12-21 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068661', 'tblTempVendorCDR_20' ) start [2024-12-21 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068661', 'tblTempVendorCDR_20' ) end [2024-12-21 07:34:18] Production.INFO: ProcessCDR(1,14068661,1,1,2) [2024-12-21 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068661', 'tblTempUsageDetail_20' ) start [2024-12-21 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068661', 'tblTempUsageDetail_20' ) end [2024-12-21 07:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:34:21] Production.INFO: ==7058== Releasing lock... [2024-12-21 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:34:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:35:04 [end_date_ymd] => 2024-12-21 07:35:04 [RateCDR] => 1 ) [2024-12-21 07: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-21 04:35:04' and `end` < '2024-12-21 07: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-21 07:35:16] Production.INFO: count ==22 [2024-12-21 07:35:16] Production.ERROR: pbx CDR StartTime 2024-12-21 04:35:04 - End Time 2024-12-21 07:35:04 [2024-12-21 07:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068666', 'tblTempUsageDetail_20' ) start [2024-12-21 07:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068666', 'tblTempUsageDetail_20' ) end [2024-12-21 07:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068666', 'tblTempVendorCDR_20' ) start [2024-12-21 07:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068666', 'tblTempVendorCDR_20' ) end [2024-12-21 07:35:16] Production.INFO: ProcessCDR(1,14068666,1,1,2) [2024-12-21 07:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068666', 'tblTempUsageDetail_20' ) start [2024-12-21 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068666', 'tblTempUsageDetail_20' ) end [2024-12-21 07:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:35:20] Production.INFO: ==7133== Releasing lock... [2024-12-21 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:35:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:36:05 [end_date_ymd] => 2024-12-21 07:36:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:36:05' and `end` < '2024-12-21 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-21 07:36:17] Production.INFO: count ==22 [2024-12-21 07:36:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:36:05 - End Time 2024-12-21 07:36:05 [2024-12-21 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068671', 'tblTempUsageDetail_20' ) start [2024-12-21 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068671', 'tblTempUsageDetail_20' ) end [2024-12-21 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068671', 'tblTempVendorCDR_20' ) start [2024-12-21 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068671', 'tblTempVendorCDR_20' ) end [2024-12-21 07:36:17] Production.INFO: ProcessCDR(1,14068671,1,1,2) [2024-12-21 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068671', 'tblTempUsageDetail_20' ) start [2024-12-21 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068671', 'tblTempUsageDetail_20' ) end [2024-12-21 07:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:36:20] Production.INFO: ==7205== Releasing lock... [2024-12-21 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:36:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:37:05 [end_date_ymd] => 2024-12-21 07:37:05 [RateCDR] => 1 ) [2024-12-21 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:37:05' and `end` < '2024-12-21 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:37:17] Production.INFO: count ==22 [2024-12-21 07:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:37:05 - End Time 2024-12-21 07:37:05 [2024-12-21 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068676', 'tblTempUsageDetail_20' ) start [2024-12-21 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068676', 'tblTempUsageDetail_20' ) end [2024-12-21 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068676', 'tblTempVendorCDR_20' ) start [2024-12-21 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068676', 'tblTempVendorCDR_20' ) end [2024-12-21 07:37:17] Production.INFO: ProcessCDR(1,14068676,1,1,2) [2024-12-21 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068676', 'tblTempUsageDetail_20' ) start [2024-12-21 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068676', 'tblTempUsageDetail_20' ) end [2024-12-21 07:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:37:20] Production.INFO: ==7279== Releasing lock... [2024-12-21 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:37:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:38:05 [end_date_ymd] => 2024-12-21 07:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:38:05' and `end` < '2024-12-21 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-21 07:38:17] Production.INFO: count ==22 [2024-12-21 07:38:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:38:05 - End Time 2024-12-21 07:38:05 [2024-12-21 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068681', 'tblTempUsageDetail_20' ) start [2024-12-21 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068681', 'tblTempUsageDetail_20' ) end [2024-12-21 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068681', 'tblTempVendorCDR_20' ) start [2024-12-21 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068681', 'tblTempVendorCDR_20' ) end [2024-12-21 07:38:17] Production.INFO: ProcessCDR(1,14068681,1,1,2) [2024-12-21 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068681', 'tblTempUsageDetail_20' ) start [2024-12-21 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068681', 'tblTempUsageDetail_20' ) end [2024-12-21 07:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:38:21] Production.INFO: ==7350== Releasing lock... [2024-12-21 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:38:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:39:05 [end_date_ymd] => 2024-12-21 07:39:05 [RateCDR] => 1 ) [2024-12-21 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:39:05' and `end` < '2024-12-21 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:39:17] Production.INFO: count ==22 [2024-12-21 07:39:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:39:05 - End Time 2024-12-21 07:39:05 [2024-12-21 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068686', 'tblTempUsageDetail_20' ) start [2024-12-21 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068686', 'tblTempUsageDetail_20' ) end [2024-12-21 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068686', 'tblTempVendorCDR_20' ) start [2024-12-21 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068686', 'tblTempVendorCDR_20' ) end [2024-12-21 07:39:17] Production.INFO: ProcessCDR(1,14068686,1,1,2) [2024-12-21 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068686', 'tblTempUsageDetail_20' ) start [2024-12-21 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068686', 'tblTempUsageDetail_20' ) end [2024-12-21 07:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:39:20] Production.INFO: ==7419== Releasing lock... [2024-12-21 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:40:06 [end_date_ymd] => 2024-12-21 07:40:06 [RateCDR] => 1 ) [2024-12-21 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-21 04:40:06' and `end` < '2024-12-21 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-21 07:40:18] Production.INFO: count ==22 [2024-12-21 07:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:40:06 - End Time 2024-12-21 07:40:06 [2024-12-21 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068692', 'tblTempUsageDetail_20' ) start [2024-12-21 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068692', 'tblTempUsageDetail_20' ) end [2024-12-21 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068692', 'tblTempVendorCDR_20' ) start [2024-12-21 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068692', 'tblTempVendorCDR_20' ) end [2024-12-21 07:40:18] Production.INFO: ProcessCDR(1,14068692,1,1,2) [2024-12-21 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068692', 'tblTempUsageDetail_20' ) start [2024-12-21 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068692', 'tblTempUsageDetail_20' ) end [2024-12-21 07:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:40:21] Production.INFO: ==7491== Releasing lock... [2024-12-21 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:40:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:41:05 [end_date_ymd] => 2024-12-21 07:41:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:41:05' and `end` < '2024-12-21 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-21 07:41:18] Production.INFO: count ==22 [2024-12-21 07:41:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:41:05 - End Time 2024-12-21 07:41:05 [2024-12-21 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068697', 'tblTempUsageDetail_20' ) start [2024-12-21 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068697', 'tblTempUsageDetail_20' ) end [2024-12-21 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068697', 'tblTempVendorCDR_20' ) start [2024-12-21 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068697', 'tblTempVendorCDR_20' ) end [2024-12-21 07:41:18] Production.INFO: ProcessCDR(1,14068697,1,1,2) [2024-12-21 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068697', 'tblTempUsageDetail_20' ) start [2024-12-21 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068697', 'tblTempUsageDetail_20' ) end [2024-12-21 07:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:41:21] Production.INFO: ==7564== Releasing lock... [2024-12-21 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:41:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:42:05 [end_date_ymd] => 2024-12-21 07:42:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:42:05' and `end` < '2024-12-21 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-21 07:42:17] Production.INFO: count ==22 [2024-12-21 07:42:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:42:05 - End Time 2024-12-21 07:42:05 [2024-12-21 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068702', 'tblTempUsageDetail_20' ) start [2024-12-21 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068702', 'tblTempUsageDetail_20' ) end [2024-12-21 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068702', 'tblTempVendorCDR_20' ) start [2024-12-21 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068702', 'tblTempVendorCDR_20' ) end [2024-12-21 07:42:17] Production.INFO: ProcessCDR(1,14068702,1,1,2) [2024-12-21 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068702', 'tblTempUsageDetail_20' ) start [2024-12-21 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068702', 'tblTempUsageDetail_20' ) end [2024-12-21 07:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:42:20] Production.INFO: ==7638== Releasing lock... [2024-12-21 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:42:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:43:05 [end_date_ymd] => 2024-12-21 07:43:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:43:05' and `end` < '2024-12-21 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-21 07:43:18] Production.INFO: count ==22 [2024-12-21 07:43:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:43:05 - End Time 2024-12-21 07:43:05 [2024-12-21 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068707', 'tblTempUsageDetail_20' ) start [2024-12-21 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068707', 'tblTempUsageDetail_20' ) end [2024-12-21 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068707', 'tblTempVendorCDR_20' ) start [2024-12-21 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068707', 'tblTempVendorCDR_20' ) end [2024-12-21 07:43:18] Production.INFO: ProcessCDR(1,14068707,1,1,2) [2024-12-21 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068707', 'tblTempUsageDetail_20' ) start [2024-12-21 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068707', 'tblTempUsageDetail_20' ) end [2024-12-21 07:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:43:21] Production.INFO: ==7708== Releasing lock... [2024-12-21 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:43:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:44:05 [end_date_ymd] => 2024-12-21 07:44:05 [RateCDR] => 1 ) [2024-12-21 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:44:05' and `end` < '2024-12-21 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:44:17] Production.INFO: count ==22 [2024-12-21 07:44:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:44:05 - End Time 2024-12-21 07:44:05 [2024-12-21 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068712', 'tblTempUsageDetail_20' ) start [2024-12-21 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068712', 'tblTempUsageDetail_20' ) end [2024-12-21 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068712', 'tblTempVendorCDR_20' ) start [2024-12-21 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068712', 'tblTempVendorCDR_20' ) end [2024-12-21 07:44:17] Production.INFO: ProcessCDR(1,14068712,1,1,2) [2024-12-21 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068712', 'tblTempUsageDetail_20' ) start [2024-12-21 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068712', 'tblTempUsageDetail_20' ) end [2024-12-21 07:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:44:20] Production.INFO: ==7778== Releasing lock... [2024-12-21 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:44:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:45:04 [end_date_ymd] => 2024-12-21 07:45:04 [RateCDR] => 1 ) [2024-12-21 07: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-21 04:45:04' and `end` < '2024-12-21 07: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-21 07:45:16] Production.INFO: count ==22 [2024-12-21 07:45:16] Production.ERROR: pbx CDR StartTime 2024-12-21 04:45:04 - End Time 2024-12-21 07:45:04 [2024-12-21 07:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068717', 'tblTempUsageDetail_20' ) start [2024-12-21 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068717', 'tblTempUsageDetail_20' ) end [2024-12-21 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068717', 'tblTempVendorCDR_20' ) start [2024-12-21 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068717', 'tblTempVendorCDR_20' ) end [2024-12-21 07:45:16] Production.INFO: ProcessCDR(1,14068717,1,1,2) [2024-12-21 07:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068717', 'tblTempUsageDetail_20' ) start [2024-12-21 07:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068717', 'tblTempUsageDetail_20' ) end [2024-12-21 07:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:45:19] Production.INFO: ==7848== Releasing lock... [2024-12-21 07:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:45:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:46:05 [end_date_ymd] => 2024-12-21 07:46:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:46:05' and `end` < '2024-12-21 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-21 07:46:17] Production.INFO: count ==22 [2024-12-21 07:46:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:46:05 - End Time 2024-12-21 07:46:05 [2024-12-21 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068722', 'tblTempUsageDetail_20' ) start [2024-12-21 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068722', 'tblTempUsageDetail_20' ) end [2024-12-21 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068722', 'tblTempVendorCDR_20' ) start [2024-12-21 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068722', 'tblTempVendorCDR_20' ) end [2024-12-21 07:46:17] Production.INFO: ProcessCDR(1,14068722,1,1,2) [2024-12-21 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068722', 'tblTempUsageDetail_20' ) start [2024-12-21 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068722', 'tblTempUsageDetail_20' ) end [2024-12-21 07:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:46:20] Production.INFO: ==7922== Releasing lock... [2024-12-21 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:46:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:47:05 [end_date_ymd] => 2024-12-21 07:47:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:47:05' and `end` < '2024-12-21 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-21 07:47:18] Production.INFO: count ==22 [2024-12-21 07:47:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:47:05 - End Time 2024-12-21 07:47:05 [2024-12-21 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068727', 'tblTempUsageDetail_20' ) start [2024-12-21 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068727', 'tblTempUsageDetail_20' ) end [2024-12-21 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068727', 'tblTempVendorCDR_20' ) start [2024-12-21 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068727', 'tblTempVendorCDR_20' ) end [2024-12-21 07:47:18] Production.INFO: ProcessCDR(1,14068727,1,1,2) [2024-12-21 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068727', 'tblTempUsageDetail_20' ) start [2024-12-21 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068727', 'tblTempUsageDetail_20' ) end [2024-12-21 07:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:47:21] Production.INFO: ==7993== Releasing lock... [2024-12-21 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:47:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:48:05 [end_date_ymd] => 2024-12-21 07:48:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:48:05' and `end` < '2024-12-21 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-21 07:48:17] Production.INFO: count ==22 [2024-12-21 07:48:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:48:05 - End Time 2024-12-21 07:48:05 [2024-12-21 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068732', 'tblTempUsageDetail_20' ) start [2024-12-21 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068732', 'tblTempUsageDetail_20' ) end [2024-12-21 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068732', 'tblTempVendorCDR_20' ) start [2024-12-21 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068732', 'tblTempVendorCDR_20' ) end [2024-12-21 07:48:17] Production.INFO: ProcessCDR(1,14068732,1,1,2) [2024-12-21 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068732', 'tblTempUsageDetail_20' ) start [2024-12-21 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068732', 'tblTempUsageDetail_20' ) end [2024-12-21 07:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:48:20] Production.INFO: ==8065== Releasing lock... [2024-12-21 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:49:05 [end_date_ymd] => 2024-12-21 07:49:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:49:05' and `end` < '2024-12-21 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-21 07:49:17] Production.INFO: count ==22 [2024-12-21 07:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:49:05 - End Time 2024-12-21 07:49:05 [2024-12-21 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068737', 'tblTempUsageDetail_20' ) start [2024-12-21 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068737', 'tblTempUsageDetail_20' ) end [2024-12-21 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068737', 'tblTempVendorCDR_20' ) start [2024-12-21 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068737', 'tblTempVendorCDR_20' ) end [2024-12-21 07:49:17] Production.INFO: ProcessCDR(1,14068737,1,1,2) [2024-12-21 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068737', 'tblTempUsageDetail_20' ) start [2024-12-21 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068737', 'tblTempUsageDetail_20' ) end [2024-12-21 07:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:49:21] Production.INFO: ==8135== Releasing lock... [2024-12-21 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:49:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:50:05 [end_date_ymd] => 2024-12-21 07:50:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:50:05' and `end` < '2024-12-21 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-21 07:50:17] Production.INFO: count ==22 [2024-12-21 07:50:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:50:05 - End Time 2024-12-21 07:50:05 [2024-12-21 07:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068742', 'tblTempUsageDetail_20' ) start [2024-12-21 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068742', 'tblTempUsageDetail_20' ) end [2024-12-21 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068742', 'tblTempVendorCDR_20' ) start [2024-12-21 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068742', 'tblTempVendorCDR_20' ) end [2024-12-21 07:50:17] Production.INFO: ProcessCDR(1,14068742,1,1,2) [2024-12-21 07:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068742', 'tblTempUsageDetail_20' ) start [2024-12-21 07:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068742', 'tblTempUsageDetail_20' ) end [2024-12-21 07:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:50:20] Production.INFO: ==8249== Releasing lock... [2024-12-21 07:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:50:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:51:05 [end_date_ymd] => 2024-12-21 07:51:05 [RateCDR] => 1 ) [2024-12-21 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:51:05' and `end` < '2024-12-21 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:51:17] Production.INFO: count ==20 [2024-12-21 07:51:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:51:05 - End Time 2024-12-21 07:51:05 [2024-12-21 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068748', 'tblTempUsageDetail_20' ) start [2024-12-21 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068748', 'tblTempUsageDetail_20' ) end [2024-12-21 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068748', 'tblTempVendorCDR_20' ) start [2024-12-21 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068748', 'tblTempVendorCDR_20' ) end [2024-12-21 07:51:17] Production.INFO: ProcessCDR(1,14068748,1,1,2) [2024-12-21 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068748', 'tblTempUsageDetail_20' ) start [2024-12-21 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068748', 'tblTempUsageDetail_20' ) end [2024-12-21 07:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:51:20] Production.INFO: ==8326== Releasing lock... [2024-12-21 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:51:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:52:04 [end_date_ymd] => 2024-12-21 07:52:04 [RateCDR] => 1 ) [2024-12-21 07: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-21 04:52:04' and `end` < '2024-12-21 07: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-21 07:52:16] Production.INFO: count ==20 [2024-12-21 07:52:16] Production.ERROR: pbx CDR StartTime 2024-12-21 04:52:04 - End Time 2024-12-21 07:52:04 [2024-12-21 07:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068753', 'tblTempUsageDetail_20' ) start [2024-12-21 07:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068753', 'tblTempUsageDetail_20' ) end [2024-12-21 07:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068753', 'tblTempVendorCDR_20' ) start [2024-12-21 07:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068753', 'tblTempVendorCDR_20' ) end [2024-12-21 07:52:16] Production.INFO: ProcessCDR(1,14068753,1,1,2) [2024-12-21 07:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068753', 'tblTempUsageDetail_20' ) start [2024-12-21 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068753', 'tblTempUsageDetail_20' ) end [2024-12-21 07:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:52:20] Production.INFO: ==8397== Releasing lock... [2024-12-21 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:52:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:53:05 [end_date_ymd] => 2024-12-21 07:53:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:53:05' and `end` < '2024-12-21 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-21 07:53:18] Production.INFO: count ==20 [2024-12-21 07:53:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:53:05 - End Time 2024-12-21 07:53:05 [2024-12-21 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068758', 'tblTempUsageDetail_20' ) start [2024-12-21 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068758', 'tblTempUsageDetail_20' ) end [2024-12-21 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068758', 'tblTempVendorCDR_20' ) start [2024-12-21 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068758', 'tblTempVendorCDR_20' ) end [2024-12-21 07:53:18] Production.INFO: ProcessCDR(1,14068758,1,1,2) [2024-12-21 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068758', 'tblTempUsageDetail_20' ) start [2024-12-21 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068758', 'tblTempUsageDetail_20' ) end [2024-12-21 07:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:53:21] Production.INFO: ==8468== Releasing lock... [2024-12-21 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:53:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:54:05 [end_date_ymd] => 2024-12-21 07:54:05 [RateCDR] => 1 ) [2024-12-21 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:54:05' and `end` < '2024-12-21 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:54:18] Production.INFO: count ==20 [2024-12-21 07:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:54:05 - End Time 2024-12-21 07:54:05 [2024-12-21 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068763', 'tblTempUsageDetail_20' ) start [2024-12-21 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068763', 'tblTempUsageDetail_20' ) end [2024-12-21 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068763', 'tblTempVendorCDR_20' ) start [2024-12-21 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068763', 'tblTempVendorCDR_20' ) end [2024-12-21 07:54:18] Production.INFO: ProcessCDR(1,14068763,1,1,2) [2024-12-21 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068763', 'tblTempUsageDetail_20' ) start [2024-12-21 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068763', 'tblTempUsageDetail_20' ) end [2024-12-21 07:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:54:21] Production.INFO: ==8539== Releasing lock... [2024-12-21 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:54:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-21 07:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:55:04 [end_date_ymd] => 2024-12-21 07:55:04 [RateCDR] => 1 ) [2024-12-21 07:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:55:04' and `end` < '2024-12-21 07:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:55:16] Production.INFO: count ==21 [2024-12-21 07:55:16] Production.ERROR: pbx CDR StartTime 2024-12-21 04:55:04 - End Time 2024-12-21 07:55:04 [2024-12-21 07:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068768', 'tblTempUsageDetail_20' ) start [2024-12-21 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068768', 'tblTempUsageDetail_20' ) end [2024-12-21 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068768', 'tblTempVendorCDR_20' ) start [2024-12-21 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068768', 'tblTempVendorCDR_20' ) end [2024-12-21 07:55:17] Production.INFO: ProcessCDR(1,14068768,1,1,2) [2024-12-21 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068768', 'tblTempUsageDetail_20' ) start [2024-12-21 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068768', 'tblTempUsageDetail_20' ) end [2024-12-21 07:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:55:21] Production.INFO: ==8608== Releasing lock... [2024-12-21 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:55:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:56:04 [end_date_ymd] => 2024-12-21 07:56:04 [RateCDR] => 1 ) [2024-12-21 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:56:04' and `end` < '2024-12-21 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-21 07:56:18] Production.INFO: count ==37 [2024-12-21 07:56:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:56:04 - End Time 2024-12-21 07:56:04 [2024-12-21 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068773', 'tblTempUsageDetail_20' ) start [2024-12-21 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068773', 'tblTempUsageDetail_20' ) end [2024-12-21 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068773', 'tblTempVendorCDR_20' ) start [2024-12-21 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068773', 'tblTempVendorCDR_20' ) end [2024-12-21 07:56:18] Production.INFO: ProcessCDR(1,14068773,1,1,2) [2024-12-21 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068773', 'tblTempUsageDetail_20' ) start [2024-12-21 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068773', 'tblTempUsageDetail_20' ) end [2024-12-21 07:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:56:22] Production.INFO: ==8683== Releasing lock... [2024-12-21 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:56:22] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:57:05 [end_date_ymd] => 2024-12-21 07:57:05 [RateCDR] => 1 ) [2024-12-21 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-21 04:57:05' and `end` < '2024-12-21 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-21 07:57:18] Production.INFO: count ==37 [2024-12-21 07:57:18] Production.ERROR: pbx CDR StartTime 2024-12-21 04:57:05 - End Time 2024-12-21 07:57:05 [2024-12-21 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068778', 'tblTempUsageDetail_20' ) start [2024-12-21 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068778', 'tblTempUsageDetail_20' ) end [2024-12-21 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068778', 'tblTempVendorCDR_20' ) start [2024-12-21 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068778', 'tblTempVendorCDR_20' ) end [2024-12-21 07:57:18] Production.INFO: ProcessCDR(1,14068778,1,1,2) [2024-12-21 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068778', 'tblTempUsageDetail_20' ) start [2024-12-21 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068778', 'tblTempUsageDetail_20' ) end [2024-12-21 07:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:57:21] Production.INFO: ==8754== Releasing lock... [2024-12-21 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:57:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:58:04 [end_date_ymd] => 2024-12-21 07:58:04 [RateCDR] => 1 ) [2024-12-21 07:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:58:04' and `end` < '2024-12-21 07:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:58:17] Production.INFO: count ==37 [2024-12-21 07:58:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:58:04 - End Time 2024-12-21 07:58:04 [2024-12-21 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068783', 'tblTempUsageDetail_20' ) start [2024-12-21 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068783', 'tblTempUsageDetail_20' ) end [2024-12-21 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068783', 'tblTempVendorCDR_20' ) start [2024-12-21 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068783', 'tblTempVendorCDR_20' ) end [2024-12-21 07:58:17] Production.INFO: ProcessCDR(1,14068783,1,1,2) [2024-12-21 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068783', 'tblTempUsageDetail_20' ) start [2024-12-21 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068783', 'tblTempUsageDetail_20' ) end [2024-12-21 07:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:58:20] Production.INFO: ==8823== Releasing lock... [2024-12-21 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:58:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 04:59:04 [end_date_ymd] => 2024-12-21 07:59:04 [RateCDR] => 1 ) [2024-12-21 07:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 04:59:04' and `end` < '2024-12-21 07:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 07:59:17] Production.INFO: count ==37 [2024-12-21 07:59:17] Production.ERROR: pbx CDR StartTime 2024-12-21 04:59:04 - End Time 2024-12-21 07:59:04 [2024-12-21 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068788', 'tblTempUsageDetail_20' ) start [2024-12-21 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068788', 'tblTempUsageDetail_20' ) end [2024-12-21 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068788', 'tblTempVendorCDR_20' ) start [2024-12-21 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068788', 'tblTempVendorCDR_20' ) end [2024-12-21 07:59:17] Production.INFO: ProcessCDR(1,14068788,1,1,2) [2024-12-21 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068788', 'tblTempUsageDetail_20' ) start [2024-12-21 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068788', 'tblTempUsageDetail_20' ) end [2024-12-21 07:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 07:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 07:59:20] Production.INFO: ==8897== Releasing lock... [2024-12-21 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 07:59:20] Production.INFO: 28 MB #Memory Used# [2024-12-21 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:00:05 [end_date_ymd] => 2024-12-21 08:00:05 [RateCDR] => 1 ) [2024-12-21 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:00:05' and `end` < '2024-12-21 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:00:18] Production.INFO: count ==39 [2024-12-21 08:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:00:05 - End Time 2024-12-21 08:00:05 [2024-12-21 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068794', 'tblTempUsageDetail_20' ) start [2024-12-21 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068794', 'tblTempUsageDetail_20' ) end [2024-12-21 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068794', 'tblTempVendorCDR_20' ) start [2024-12-21 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068794', 'tblTempVendorCDR_20' ) end [2024-12-21 08:00:18] Production.INFO: ProcessCDR(1,14068794,1,1,2) [2024-12-21 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068794', 'tblTempUsageDetail_20' ) start [2024-12-21 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068794', 'tblTempUsageDetail_20' ) end [2024-12-21 08:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:00:21] Production.INFO: ==8973== Releasing lock... [2024-12-21 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:00:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 08:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:01:04 [end_date_ymd] => 2024-12-21 08:01:04 [RateCDR] => 1 ) [2024-12-21 08:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:01:04' and `end` < '2024-12-21 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-21 08:01:19] Production.INFO: count ==39 [2024-12-21 08:01:19] Production.ERROR: pbx CDR StartTime 2024-12-21 05:01:04 - End Time 2024-12-21 08:01:04 [2024-12-21 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068799', 'tblTempUsageDetail_20' ) start [2024-12-21 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068799', 'tblTempUsageDetail_20' ) end [2024-12-21 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068799', 'tblTempVendorCDR_20' ) start [2024-12-21 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068799', 'tblTempVendorCDR_20' ) end [2024-12-21 08:01:19] Production.INFO: ProcessCDR(1,14068799,1,1,2) [2024-12-21 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068799', 'tblTempUsageDetail_20' ) start [2024-12-21 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068799', 'tblTempUsageDetail_20' ) end [2024-12-21 08:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:01:22] Production.INFO: ==9057== Releasing lock... [2024-12-21 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:01:22] Production.INFO: 28 MB #Memory Used# [2024-12-21 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:02:05 [end_date_ymd] => 2024-12-21 08:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:02:05' and `end` < '2024-12-21 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-21 08:02:19] Production.INFO: count ==40 [2024-12-21 08:02:19] Production.ERROR: pbx CDR StartTime 2024-12-21 05:02:05 - End Time 2024-12-21 08:02:05 [2024-12-21 08:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068804', 'tblTempUsageDetail_20' ) start [2024-12-21 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068804', 'tblTempUsageDetail_20' ) end [2024-12-21 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068804', 'tblTempVendorCDR_20' ) start [2024-12-21 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068804', 'tblTempVendorCDR_20' ) end [2024-12-21 08:02:19] Production.INFO: ProcessCDR(1,14068804,1,1,2) [2024-12-21 08:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068804', 'tblTempUsageDetail_20' ) start [2024-12-21 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068804', 'tblTempUsageDetail_20' ) end [2024-12-21 08:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:02:22] Production.INFO: ==9129== Releasing lock... [2024-12-21 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:02:22] Production.INFO: 28 MB #Memory Used# [2024-12-21 08:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:03:04 [end_date_ymd] => 2024-12-21 08:03:04 [RateCDR] => 1 ) [2024-12-21 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-21 05:03:04' and `end` < '2024-12-21 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-21 08:03:16] Production.INFO: count ==40 [2024-12-21 08:03:16] Production.ERROR: pbx CDR StartTime 2024-12-21 05:03:04 - End Time 2024-12-21 08:03:04 [2024-12-21 08:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068809', 'tblTempUsageDetail_20' ) start [2024-12-21 08:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068809', 'tblTempUsageDetail_20' ) end [2024-12-21 08:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068809', 'tblTempVendorCDR_20' ) start [2024-12-21 08:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068809', 'tblTempVendorCDR_20' ) end [2024-12-21 08:03:16] Production.INFO: ProcessCDR(1,14068809,1,1,2) [2024-12-21 08:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:03:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068809', 'tblTempUsageDetail_20' ) start [2024-12-21 08:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068809', 'tblTempUsageDetail_20' ) end [2024-12-21 08:03:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:03:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:03:19] Production.INFO: ==9197== Releasing lock... [2024-12-21 08:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:03:19] Production.INFO: 28 MB #Memory Used# [2024-12-21 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:04:05 [end_date_ymd] => 2024-12-21 08:04:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:04:05' and `end` < '2024-12-21 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-21 08:04:18] Production.INFO: count ==40 [2024-12-21 08:04:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:04:05 - End Time 2024-12-21 08:04:05 [2024-12-21 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068814', 'tblTempUsageDetail_20' ) start [2024-12-21 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068814', 'tblTempUsageDetail_20' ) end [2024-12-21 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068814', 'tblTempVendorCDR_20' ) start [2024-12-21 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068814', 'tblTempVendorCDR_20' ) end [2024-12-21 08:04:18] Production.INFO: ProcessCDR(1,14068814,1,1,2) [2024-12-21 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068814', 'tblTempUsageDetail_20' ) start [2024-12-21 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068814', 'tblTempUsageDetail_20' ) end [2024-12-21 08:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:04:21] Production.INFO: ==9270== Releasing lock... [2024-12-21 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:04:21] Production.INFO: 28 MB #Memory Used# [2024-12-21 08:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:05:04 [end_date_ymd] => 2024-12-21 08:05:04 [RateCDR] => 1 ) [2024-12-21 08:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:05:04' and `end` < '2024-12-21 08:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:05:16] Production.INFO: count ==47 [2024-12-21 08:05:16] Production.ERROR: pbx CDR StartTime 2024-12-21 05:05:04 - End Time 2024-12-21 08:05:04 [2024-12-21 08:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068819', 'tblTempUsageDetail_20' ) start [2024-12-21 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068819', 'tblTempUsageDetail_20' ) end [2024-12-21 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068819', 'tblTempVendorCDR_20' ) start [2024-12-21 08:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068819', 'tblTempVendorCDR_20' ) end [2024-12-21 08:05:16] Production.INFO: ProcessCDR(1,14068819,1,1,2) [2024-12-21 08:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068819', 'tblTempUsageDetail_20' ) start [2024-12-21 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068819', 'tblTempUsageDetail_20' ) end [2024-12-21 08:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:05:21] Production.INFO: ==9342== Releasing lock... [2024-12-21 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:05:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:06:05 [end_date_ymd] => 2024-12-21 08:06:05 [RateCDR] => 1 ) [2024-12-21 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:06:05' and `end` < '2024-12-21 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:06:18] Production.INFO: count ==48 [2024-12-21 08:06:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:06:05 - End Time 2024-12-21 08:06:05 [2024-12-21 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068824', 'tblTempUsageDetail_20' ) start [2024-12-21 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068824', 'tblTempUsageDetail_20' ) end [2024-12-21 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068824', 'tblTempVendorCDR_20' ) start [2024-12-21 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068824', 'tblTempVendorCDR_20' ) end [2024-12-21 08:06:18] Production.INFO: ProcessCDR(1,14068824,1,1,2) [2024-12-21 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068824', 'tblTempUsageDetail_20' ) start [2024-12-21 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068824', 'tblTempUsageDetail_20' ) end [2024-12-21 08:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:06:22] Production.INFO: ==9460== Releasing lock... [2024-12-21 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:06:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:07:05 [end_date_ymd] => 2024-12-21 08:07:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:07:05' and `end` < '2024-12-21 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-21 08:07:17] Production.INFO: count ==49 [2024-12-21 08:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:07:05 - End Time 2024-12-21 08:07:05 [2024-12-21 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068829', 'tblTempUsageDetail_20' ) start [2024-12-21 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068829', 'tblTempUsageDetail_20' ) end [2024-12-21 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068829', 'tblTempVendorCDR_20' ) start [2024-12-21 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068829', 'tblTempVendorCDR_20' ) end [2024-12-21 08:07:17] Production.INFO: ProcessCDR(1,14068829,1,1,2) [2024-12-21 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068829', 'tblTempUsageDetail_20' ) start [2024-12-21 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068829', 'tblTempUsageDetail_20' ) end [2024-12-21 08:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:07:22] Production.INFO: ==9532== Releasing lock... [2024-12-21 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:07:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 08:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:08:04 [end_date_ymd] => 2024-12-21 08:08:04 [RateCDR] => 1 ) [2024-12-21 08: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-21 05:08:04' and `end` < '2024-12-21 08: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-21 08:08:16] Production.INFO: count ==53 [2024-12-21 08:08:16] Production.ERROR: pbx CDR StartTime 2024-12-21 05:08:04 - End Time 2024-12-21 08:08:04 [2024-12-21 08:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068834', 'tblTempUsageDetail_20' ) start [2024-12-21 08:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068834', 'tblTempUsageDetail_20' ) end [2024-12-21 08:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068834', 'tblTempVendorCDR_20' ) start [2024-12-21 08:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068834', 'tblTempVendorCDR_20' ) end [2024-12-21 08:08:16] Production.INFO: ProcessCDR(1,14068834,1,1,2) [2024-12-21 08:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068834', 'tblTempUsageDetail_20' ) start [2024-12-21 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068834', 'tblTempUsageDetail_20' ) end [2024-12-21 08:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:08:21] Production.INFO: ==9602== Releasing lock... [2024-12-21 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:08:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:09:05 [end_date_ymd] => 2024-12-21 08:09:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:09:05' and `end` < '2024-12-21 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-21 08:09:18] Production.INFO: count ==60 [2024-12-21 08:09:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:09:05 - End Time 2024-12-21 08:09:05 [2024-12-21 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068839', 'tblTempUsageDetail_20' ) start [2024-12-21 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068839', 'tblTempUsageDetail_20' ) end [2024-12-21 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068839', 'tblTempVendorCDR_20' ) start [2024-12-21 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068839', 'tblTempVendorCDR_20' ) end [2024-12-21 08:09:18] Production.INFO: ProcessCDR(1,14068839,1,1,2) [2024-12-21 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068839', 'tblTempUsageDetail_20' ) start [2024-12-21 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068839', 'tblTempUsageDetail_20' ) end [2024-12-21 08:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:09:23] Production.INFO: ==9672== Releasing lock... [2024-12-21 08:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:09:23] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:10:05 [end_date_ymd] => 2024-12-21 08:10:05 [RateCDR] => 1 ) [2024-12-21 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:10:05' and `end` < '2024-12-21 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:10:17] Production.INFO: count ==61 [2024-12-21 08:10:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:10:05 - End Time 2024-12-21 08:10:05 [2024-12-21 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068845', 'tblTempUsageDetail_20' ) start [2024-12-21 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068845', 'tblTempUsageDetail_20' ) end [2024-12-21 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068845', 'tblTempVendorCDR_20' ) start [2024-12-21 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068845', 'tblTempVendorCDR_20' ) end [2024-12-21 08:10:17] Production.INFO: ProcessCDR(1,14068845,1,1,2) [2024-12-21 08:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068845', 'tblTempUsageDetail_20' ) start [2024-12-21 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068845', 'tblTempUsageDetail_20' ) end [2024-12-21 08:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:10:21] Production.INFO: ==9744== Releasing lock... [2024-12-21 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:10:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:11:05 [end_date_ymd] => 2024-12-21 08:11:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:11:05' and `end` < '2024-12-21 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-21 08:11:18] Production.INFO: count ==61 [2024-12-21 08:11:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:11:05 - End Time 2024-12-21 08:11:05 [2024-12-21 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068850', 'tblTempUsageDetail_20' ) start [2024-12-21 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068850', 'tblTempUsageDetail_20' ) end [2024-12-21 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068850', 'tblTempVendorCDR_20' ) start [2024-12-21 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068850', 'tblTempVendorCDR_20' ) end [2024-12-21 08:11:18] Production.INFO: ProcessCDR(1,14068850,1,1,2) [2024-12-21 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068850', 'tblTempUsageDetail_20' ) start [2024-12-21 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068850', 'tblTempUsageDetail_20' ) end [2024-12-21 08:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:11:21] Production.INFO: ==9819== Releasing lock... [2024-12-21 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:11:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:12:04 [end_date_ymd] => 2024-12-21 08:12:04 [RateCDR] => 1 ) [2024-12-21 08: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-21 05:12:04' and `end` < '2024-12-21 08: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-21 08:12:17] Production.INFO: count ==63 [2024-12-21 08:12:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:12:04 - End Time 2024-12-21 08:12:04 [2024-12-21 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068855', 'tblTempUsageDetail_20' ) start [2024-12-21 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068855', 'tblTempUsageDetail_20' ) end [2024-12-21 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068855', 'tblTempVendorCDR_20' ) start [2024-12-21 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068855', 'tblTempVendorCDR_20' ) end [2024-12-21 08:12:17] Production.INFO: ProcessCDR(1,14068855,1,1,2) [2024-12-21 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068855', 'tblTempUsageDetail_20' ) start [2024-12-21 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068855', 'tblTempUsageDetail_20' ) end [2024-12-21 08:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:12:22] Production.INFO: ==9889== Releasing lock... [2024-12-21 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:12:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:13:04 [end_date_ymd] => 2024-12-21 08:13:04 [RateCDR] => 1 ) [2024-12-21 08:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:13:04' and `end` < '2024-12-21 08:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:13:17] Production.INFO: count ==69 [2024-12-21 08:13:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:13:04 - End Time 2024-12-21 08:13:04 [2024-12-21 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068860', 'tblTempUsageDetail_20' ) start [2024-12-21 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068860', 'tblTempUsageDetail_20' ) end [2024-12-21 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068860', 'tblTempVendorCDR_20' ) start [2024-12-21 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068860', 'tblTempVendorCDR_20' ) end [2024-12-21 08:13:17] Production.INFO: ProcessCDR(1,14068860,1,1,2) [2024-12-21 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068860', 'tblTempUsageDetail_20' ) start [2024-12-21 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068860', 'tblTempUsageDetail_20' ) end [2024-12-21 08:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:13:20] Production.INFO: ==9960== Releasing lock... [2024-12-21 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:13:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:14:05 [end_date_ymd] => 2024-12-21 08:14:05 [RateCDR] => 1 ) [2024-12-21 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:14:05' and `end` < '2024-12-21 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:14:19] Production.INFO: count ==74 [2024-12-21 08:14:19] Production.ERROR: pbx CDR StartTime 2024-12-21 05:14:05 - End Time 2024-12-21 08:14:05 [2024-12-21 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068865', 'tblTempUsageDetail_20' ) start [2024-12-21 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068865', 'tblTempUsageDetail_20' ) end [2024-12-21 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068865', 'tblTempVendorCDR_20' ) start [2024-12-21 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068865', 'tblTempVendorCDR_20' ) end [2024-12-21 08:14:19] Production.INFO: ProcessCDR(1,14068865,1,1,2) [2024-12-21 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068865', 'tblTempUsageDetail_20' ) start [2024-12-21 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068865', 'tblTempUsageDetail_20' ) end [2024-12-21 08:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:14:22] Production.INFO: ==10031== Releasing lock... [2024-12-21 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:14:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:15:04 [end_date_ymd] => 2024-12-21 08:15:04 [RateCDR] => 1 ) [2024-12-21 08:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:15:04' and `end` < '2024-12-21 08:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:15:16] Production.INFO: count ==75 [2024-12-21 08:15:16] Production.ERROR: pbx CDR StartTime 2024-12-21 05:15:04 - End Time 2024-12-21 08:15:04 [2024-12-21 08:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068870', 'tblTempUsageDetail_20' ) start [2024-12-21 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068870', 'tblTempUsageDetail_20' ) end [2024-12-21 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068870', 'tblTempVendorCDR_20' ) start [2024-12-21 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068870', 'tblTempVendorCDR_20' ) end [2024-12-21 08:15:16] Production.INFO: ProcessCDR(1,14068870,1,1,2) [2024-12-21 08:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068870', 'tblTempUsageDetail_20' ) start [2024-12-21 08:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068870', 'tblTempUsageDetail_20' ) end [2024-12-21 08:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:15:19] Production.INFO: ==10103== Releasing lock... [2024-12-21 08:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:15:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:16:05 [end_date_ymd] => 2024-12-21 08:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:16:05' and `end` < '2024-12-21 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-21 08:16:18] Production.INFO: count ==75 [2024-12-21 08:16:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:16:05 - End Time 2024-12-21 08:16:05 [2024-12-21 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068875', 'tblTempUsageDetail_20' ) start [2024-12-21 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068875', 'tblTempUsageDetail_20' ) end [2024-12-21 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068875', 'tblTempVendorCDR_20' ) start [2024-12-21 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068875', 'tblTempVendorCDR_20' ) end [2024-12-21 08:16:18] Production.INFO: ProcessCDR(1,14068875,1,1,2) [2024-12-21 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068875', 'tblTempUsageDetail_20' ) start [2024-12-21 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068875', 'tblTempUsageDetail_20' ) end [2024-12-21 08:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:16:21] Production.INFO: ==10174== Releasing lock... [2024-12-21 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:16:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:17:04 [end_date_ymd] => 2024-12-21 08:17:04 [RateCDR] => 1 ) [2024-12-21 08: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-21 05:17:04' and `end` < '2024-12-21 08: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-21 08:17:17] Production.INFO: count ==75 [2024-12-21 08:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:17:04 - End Time 2024-12-21 08:17:04 [2024-12-21 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068880', 'tblTempUsageDetail_20' ) start [2024-12-21 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068880', 'tblTempUsageDetail_20' ) end [2024-12-21 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068880', 'tblTempVendorCDR_20' ) start [2024-12-21 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068880', 'tblTempVendorCDR_20' ) end [2024-12-21 08:17:17] Production.INFO: ProcessCDR(1,14068880,1,1,2) [2024-12-21 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068880', 'tblTempUsageDetail_20' ) start [2024-12-21 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068880', 'tblTempUsageDetail_20' ) end [2024-12-21 08:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:17:20] Production.INFO: ==10257== Releasing lock... [2024-12-21 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:17:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:18:05 [end_date_ymd] => 2024-12-21 08:18:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:18:05' and `end` < '2024-12-21 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-21 08:18:17] Production.INFO: count ==75 [2024-12-21 08:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:18:05 - End Time 2024-12-21 08:18:05 [2024-12-21 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068885', 'tblTempUsageDetail_20' ) start [2024-12-21 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068885', 'tblTempUsageDetail_20' ) end [2024-12-21 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068885', 'tblTempVendorCDR_20' ) start [2024-12-21 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068885', 'tblTempVendorCDR_20' ) end [2024-12-21 08:18:17] Production.INFO: ProcessCDR(1,14068885,1,1,2) [2024-12-21 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:18:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:18:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068885', 'tblTempUsageDetail_20' ) start [2024-12-21 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068885', 'tblTempUsageDetail_20' ) end [2024-12-21 08:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:18:20] Production.INFO: ==10328== Releasing lock... [2024-12-21 08:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:18:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:19:05 [end_date_ymd] => 2024-12-21 08:19:05 [RateCDR] => 1 ) [2024-12-21 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:19:05' and `end` < '2024-12-21 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:19:18] Production.INFO: count ==75 [2024-12-21 08:19:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:19:05 - End Time 2024-12-21 08:19:05 [2024-12-21 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068890', 'tblTempUsageDetail_20' ) start [2024-12-21 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068890', 'tblTempUsageDetail_20' ) end [2024-12-21 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068890', 'tblTempVendorCDR_20' ) start [2024-12-21 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068890', 'tblTempVendorCDR_20' ) end [2024-12-21 08:19:18] Production.INFO: ProcessCDR(1,14068890,1,1,2) [2024-12-21 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068890', 'tblTempUsageDetail_20' ) start [2024-12-21 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068890', 'tblTempUsageDetail_20' ) end [2024-12-21 08:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:19:21] Production.INFO: ==10398== Releasing lock... [2024-12-21 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:19:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:20:06 [end_date_ymd] => 2024-12-21 08:20:06 [RateCDR] => 1 ) [2024-12-21 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-21 05:20:06' and `end` < '2024-12-21 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-21 08:20:18] Production.INFO: count ==89 [2024-12-21 08:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:20:06 - End Time 2024-12-21 08:20:06 [2024-12-21 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068896', 'tblTempUsageDetail_20' ) start [2024-12-21 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068896', 'tblTempUsageDetail_20' ) end [2024-12-21 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068896', 'tblTempVendorCDR_20' ) start [2024-12-21 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068896', 'tblTempVendorCDR_20' ) end [2024-12-21 08:20:18] Production.INFO: ProcessCDR(1,14068896,1,1,2) [2024-12-21 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068896', 'tblTempUsageDetail_20' ) start [2024-12-21 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068896', 'tblTempUsageDetail_20' ) end [2024-12-21 08:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:20:21] Production.INFO: ==10472== Releasing lock... [2024-12-21 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:20:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:21:05 [end_date_ymd] => 2024-12-21 08:21:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:21:05' and `end` < '2024-12-21 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-21 08:21:19] Production.INFO: count ==89 [2024-12-21 08:21:19] Production.ERROR: pbx CDR StartTime 2024-12-21 05:21:05 - End Time 2024-12-21 08:21:05 [2024-12-21 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068901', 'tblTempUsageDetail_20' ) start [2024-12-21 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068901', 'tblTempUsageDetail_20' ) end [2024-12-21 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068901', 'tblTempVendorCDR_20' ) start [2024-12-21 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068901', 'tblTempVendorCDR_20' ) end [2024-12-21 08:21:19] Production.INFO: ProcessCDR(1,14068901,1,1,2) [2024-12-21 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068901', 'tblTempUsageDetail_20' ) start [2024-12-21 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068901', 'tblTempUsageDetail_20' ) end [2024-12-21 08:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:21:22] Production.INFO: ==10548== Releasing lock... [2024-12-21 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:21:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 08:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:22:04 [end_date_ymd] => 2024-12-21 08:22:04 [RateCDR] => 1 ) [2024-12-21 08: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-21 05:22:04' and `end` < '2024-12-21 08: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-21 08:22:17] Production.INFO: count ==89 [2024-12-21 08:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:22:04 - End Time 2024-12-21 08:22:04 [2024-12-21 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068905', 'tblTempUsageDetail_20' ) start [2024-12-21 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068905', 'tblTempUsageDetail_20' ) end [2024-12-21 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068905', 'tblTempVendorCDR_20' ) start [2024-12-21 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068905', 'tblTempVendorCDR_20' ) end [2024-12-21 08:22:17] Production.INFO: ProcessCDR(1,14068905,1,1,2) [2024-12-21 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068905', 'tblTempUsageDetail_20' ) start [2024-12-21 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068905', 'tblTempUsageDetail_20' ) end [2024-12-21 08:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:22:20] Production.INFO: ==10662== Releasing lock... [2024-12-21 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:22:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:23:05 [end_date_ymd] => 2024-12-21 08:23:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:23:05' and `end` < '2024-12-21 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-21 08:23:17] Production.INFO: count ==90 [2024-12-21 08:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:23:05 - End Time 2024-12-21 08:23:05 [2024-12-21 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068911', 'tblTempUsageDetail_20' ) start [2024-12-21 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068911', 'tblTempUsageDetail_20' ) end [2024-12-21 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068911', 'tblTempVendorCDR_20' ) start [2024-12-21 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068911', 'tblTempVendorCDR_20' ) end [2024-12-21 08:23:17] Production.INFO: ProcessCDR(1,14068911,1,1,2) [2024-12-21 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068911', 'tblTempUsageDetail_20' ) start [2024-12-21 08:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068911', 'tblTempUsageDetail_20' ) end [2024-12-21 08:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:23:20] Production.INFO: ==10733== Releasing lock... [2024-12-21 08:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:23:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:24:05 [end_date_ymd] => 2024-12-21 08:24:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:24:05' and `end` < '2024-12-21 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-21 08:24:17] Production.INFO: count ==90 [2024-12-21 08:24:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:24:05 - End Time 2024-12-21 08:24:05 [2024-12-21 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068916', 'tblTempUsageDetail_20' ) start [2024-12-21 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068916', 'tblTempUsageDetail_20' ) end [2024-12-21 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068916', 'tblTempVendorCDR_20' ) start [2024-12-21 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068916', 'tblTempVendorCDR_20' ) end [2024-12-21 08:24:17] Production.INFO: ProcessCDR(1,14068916,1,1,2) [2024-12-21 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068916', 'tblTempUsageDetail_20' ) start [2024-12-21 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068916', 'tblTempUsageDetail_20' ) end [2024-12-21 08:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:24:20] Production.INFO: ==10804== Releasing lock... [2024-12-21 08:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:24:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:25:05 [end_date_ymd] => 2024-12-21 08:25:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:25:05' and `end` < '2024-12-21 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-21 08:25:18] Production.INFO: count ==90 [2024-12-21 08:25:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:25:05 - End Time 2024-12-21 08:25:05 [2024-12-21 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068921', 'tblTempUsageDetail_20' ) start [2024-12-21 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068921', 'tblTempUsageDetail_20' ) end [2024-12-21 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068921', 'tblTempVendorCDR_20' ) start [2024-12-21 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068921', 'tblTempVendorCDR_20' ) end [2024-12-21 08:25:18] Production.INFO: ProcessCDR(1,14068921,1,1,2) [2024-12-21 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068921', 'tblTempUsageDetail_20' ) start [2024-12-21 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068921', 'tblTempUsageDetail_20' ) end [2024-12-21 08:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:25:21] Production.INFO: ==10876== Releasing lock... [2024-12-21 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:25:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-21 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:26:05 [end_date_ymd] => 2024-12-21 08:26:05 [RateCDR] => 1 ) [2024-12-21 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:26:05' and `end` < '2024-12-21 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:26:17] Production.INFO: count ==95 [2024-12-21 08:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:26:05 - End Time 2024-12-21 08:26:05 [2024-12-21 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068926', 'tblTempUsageDetail_20' ) start [2024-12-21 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068926', 'tblTempUsageDetail_20' ) end [2024-12-21 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068926', 'tblTempVendorCDR_20' ) start [2024-12-21 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068926', 'tblTempVendorCDR_20' ) end [2024-12-21 08:26:17] Production.INFO: ProcessCDR(1,14068926,1,1,2) [2024-12-21 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068926', 'tblTempUsageDetail_20' ) start [2024-12-21 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068926', 'tblTempUsageDetail_20' ) end [2024-12-21 08:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:26:20] Production.INFO: ==10951== Releasing lock... [2024-12-21 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:26:20] Production.INFO: 29 MB #Memory Used# [2024-12-21 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:27:04 [end_date_ymd] => 2024-12-21 08:27:04 [RateCDR] => 1 ) [2024-12-21 08:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:27:04' and `end` < '2024-12-21 08:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:27:16] Production.INFO: count ==81 [2024-12-21 08:27:16] Production.ERROR: pbx CDR StartTime 2024-12-21 05:27:04 - End Time 2024-12-21 08:27:04 [2024-12-21 08:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068931', 'tblTempUsageDetail_20' ) start [2024-12-21 08:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068931', 'tblTempUsageDetail_20' ) end [2024-12-21 08:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068931', 'tblTempVendorCDR_20' ) start [2024-12-21 08:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068931', 'tblTempVendorCDR_20' ) end [2024-12-21 08:27:16] Production.INFO: ProcessCDR(1,14068931,1,1,2) [2024-12-21 08:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068931', 'tblTempUsageDetail_20' ) start [2024-12-21 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068931', 'tblTempUsageDetail_20' ) end [2024-12-21 08:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:27:21] Production.INFO: ==11020== Releasing lock... [2024-12-21 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:27:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-21 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:28:05 [end_date_ymd] => 2024-12-21 08:28:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:28:05' and `end` < '2024-12-21 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-21 08:28:18] Production.INFO: count ==82 [2024-12-21 08:28:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:28:05 - End Time 2024-12-21 08:28:05 [2024-12-21 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068936', 'tblTempUsageDetail_20' ) start [2024-12-21 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068936', 'tblTempUsageDetail_20' ) end [2024-12-21 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068936', 'tblTempVendorCDR_20' ) start [2024-12-21 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068936', 'tblTempVendorCDR_20' ) end [2024-12-21 08:28:18] Production.INFO: ProcessCDR(1,14068936,1,1,2) [2024-12-21 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068936', 'tblTempUsageDetail_20' ) start [2024-12-21 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068936', 'tblTempUsageDetail_20' ) end [2024-12-21 08:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:28:21] Production.INFO: ==11094== Releasing lock... [2024-12-21 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:28:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:29:04 [end_date_ymd] => 2024-12-21 08:29:04 [RateCDR] => 1 ) [2024-12-21 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-21 05:29:04' and `end` < '2024-12-21 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-21 08:29:17] Production.INFO: count ==82 [2024-12-21 08:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:29:04 - End Time 2024-12-21 08:29:04 [2024-12-21 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068941', 'tblTempUsageDetail_20' ) start [2024-12-21 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068941', 'tblTempUsageDetail_20' ) end [2024-12-21 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068941', 'tblTempVendorCDR_20' ) start [2024-12-21 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068941', 'tblTempVendorCDR_20' ) end [2024-12-21 08:29:17] Production.INFO: ProcessCDR(1,14068941,1,1,2) [2024-12-21 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068941', 'tblTempUsageDetail_20' ) start [2024-12-21 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068941', 'tblTempUsageDetail_20' ) end [2024-12-21 08:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:29:20] Production.INFO: ==11163== Releasing lock... [2024-12-21 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:29:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:30:05 [end_date_ymd] => 2024-12-21 08:30:05 [RateCDR] => 1 ) [2024-12-21 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:30:05' and `end` < '2024-12-21 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:30:17] Production.INFO: count ==82 [2024-12-21 08:30:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:30:05 - End Time 2024-12-21 08:30:05 [2024-12-21 08:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068946', 'tblTempUsageDetail_20' ) start [2024-12-21 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068946', 'tblTempUsageDetail_20' ) end [2024-12-21 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068946', 'tblTempVendorCDR_20' ) start [2024-12-21 08:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068946', 'tblTempVendorCDR_20' ) end [2024-12-21 08:30:17] Production.INFO: ProcessCDR(1,14068946,1,1,2) [2024-12-21 08:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068946', 'tblTempUsageDetail_20' ) start [2024-12-21 08:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068946', 'tblTempUsageDetail_20' ) end [2024-12-21 08:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:30:20] Production.INFO: ==11237== Releasing lock... [2024-12-21 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:30:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:31:05 [end_date_ymd] => 2024-12-21 08:31:05 [RateCDR] => 1 ) [2024-12-21 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:31:05' and `end` < '2024-12-21 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:31:17] Production.INFO: count ==83 [2024-12-21 08:31:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:31:05 - End Time 2024-12-21 08:31:05 [2024-12-21 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068952', 'tblTempUsageDetail_20' ) start [2024-12-21 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068952', 'tblTempUsageDetail_20' ) end [2024-12-21 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068952', 'tblTempVendorCDR_20' ) start [2024-12-21 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068952', 'tblTempVendorCDR_20' ) end [2024-12-21 08:31:17] Production.INFO: ProcessCDR(1,14068952,1,1,2) [2024-12-21 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068952', 'tblTempUsageDetail_20' ) start [2024-12-21 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068952', 'tblTempUsageDetail_20' ) end [2024-12-21 08:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:31:21] Production.INFO: ==11310== Releasing lock... [2024-12-21 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:31:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:32:05 [end_date_ymd] => 2024-12-21 08:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:32:05' and `end` < '2024-12-21 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-21 08:32:19] Production.INFO: count ==83 [2024-12-21 08:32:19] Production.ERROR: pbx CDR StartTime 2024-12-21 05:32:05 - End Time 2024-12-21 08:32:05 [2024-12-21 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068957', 'tblTempUsageDetail_20' ) start [2024-12-21 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068957', 'tblTempUsageDetail_20' ) end [2024-12-21 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068957', 'tblTempVendorCDR_20' ) start [2024-12-21 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068957', 'tblTempVendorCDR_20' ) end [2024-12-21 08:32:19] Production.INFO: ProcessCDR(1,14068957,1,1,2) [2024-12-21 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068957', 'tblTempUsageDetail_20' ) start [2024-12-21 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068957', 'tblTempUsageDetail_20' ) end [2024-12-21 08:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:32:22] Production.INFO: ==11381== Releasing lock... [2024-12-21 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:32:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:33:05 [end_date_ymd] => 2024-12-21 08:33:05 [RateCDR] => 1 ) [2024-12-21 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:33:05' and `end` < '2024-12-21 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:33:18] Production.INFO: count ==83 [2024-12-21 08:33:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:33:05 - End Time 2024-12-21 08:33:05 [2024-12-21 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068962', 'tblTempUsageDetail_20' ) start [2024-12-21 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068962', 'tblTempUsageDetail_20' ) end [2024-12-21 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068962', 'tblTempVendorCDR_20' ) start [2024-12-21 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068962', 'tblTempVendorCDR_20' ) end [2024-12-21 08:33:18] Production.INFO: ProcessCDR(1,14068962,1,1,2) [2024-12-21 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068962', 'tblTempUsageDetail_20' ) start [2024-12-21 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068962', 'tblTempUsageDetail_20' ) end [2024-12-21 08:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:33:21] Production.INFO: ==11454== Releasing lock... [2024-12-21 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:33:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:34:04 [end_date_ymd] => 2024-12-21 08:34:04 [RateCDR] => 1 ) [2024-12-21 08: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-21 05:34:04' and `end` < '2024-12-21 08: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-21 08:34:17] Production.INFO: count ==83 [2024-12-21 08:34:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:34:04 - End Time 2024-12-21 08:34:04 [2024-12-21 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068967', 'tblTempUsageDetail_20' ) start [2024-12-21 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068967', 'tblTempUsageDetail_20' ) end [2024-12-21 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068967', 'tblTempVendorCDR_20' ) start [2024-12-21 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068967', 'tblTempVendorCDR_20' ) end [2024-12-21 08:34:17] Production.INFO: ProcessCDR(1,14068967,1,1,2) [2024-12-21 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068967', 'tblTempUsageDetail_20' ) start [2024-12-21 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068967', 'tblTempUsageDetail_20' ) end [2024-12-21 08:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:34:20] Production.INFO: ==11528== Releasing lock... [2024-12-21 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:34:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:35:05 [end_date_ymd] => 2024-12-21 08:35:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:35:05' and `end` < '2024-12-21 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-21 08:35:17] Production.INFO: count ==83 [2024-12-21 08:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:35:05 - End Time 2024-12-21 08:35:05 [2024-12-21 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068972', 'tblTempUsageDetail_20' ) start [2024-12-21 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068972', 'tblTempUsageDetail_20' ) end [2024-12-21 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068972', 'tblTempVendorCDR_20' ) start [2024-12-21 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068972', 'tblTempVendorCDR_20' ) end [2024-12-21 08:35:17] Production.INFO: ProcessCDR(1,14068972,1,1,2) [2024-12-21 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068972', 'tblTempUsageDetail_20' ) start [2024-12-21 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068972', 'tblTempUsageDetail_20' ) end [2024-12-21 08:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:35:20] Production.INFO: ==11601== Releasing lock... [2024-12-21 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:35:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:36:05 [end_date_ymd] => 2024-12-21 08:36:05 [RateCDR] => 1 ) [2024-12-21 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:36:05' and `end` < '2024-12-21 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:36:17] Production.INFO: count ==83 [2024-12-21 08:36:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:36:05 - End Time 2024-12-21 08:36:05 [2024-12-21 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068977', 'tblTempUsageDetail_20' ) start [2024-12-21 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068977', 'tblTempUsageDetail_20' ) end [2024-12-21 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068977', 'tblTempVendorCDR_20' ) start [2024-12-21 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068977', 'tblTempVendorCDR_20' ) end [2024-12-21 08:36:17] Production.INFO: ProcessCDR(1,14068977,1,1,2) [2024-12-21 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068977', 'tblTempUsageDetail_20' ) start [2024-12-21 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068977', 'tblTempUsageDetail_20' ) end [2024-12-21 08:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:36:20] Production.INFO: ==11673== Releasing lock... [2024-12-21 08:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:36:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:37:05 [end_date_ymd] => 2024-12-21 08:37:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:37:05' and `end` < '2024-12-21 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-21 08:37:17] Production.INFO: count ==83 [2024-12-21 08:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:37:05 - End Time 2024-12-21 08:37:05 [2024-12-21 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068982', 'tblTempUsageDetail_20' ) start [2024-12-21 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068982', 'tblTempUsageDetail_20' ) end [2024-12-21 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068982', 'tblTempVendorCDR_20' ) start [2024-12-21 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068982', 'tblTempVendorCDR_20' ) end [2024-12-21 08:37:17] Production.INFO: ProcessCDR(1,14068982,1,1,2) [2024-12-21 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068982', 'tblTempUsageDetail_20' ) start [2024-12-21 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068982', 'tblTempUsageDetail_20' ) end [2024-12-21 08:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:37:21] Production.INFO: ==11787== Releasing lock... [2024-12-21 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:37:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:38:05 [end_date_ymd] => 2024-12-21 08:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:38:05' and `end` < '2024-12-21 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-21 08:38:16] Production.INFO: count ==83 [2024-12-21 08:38:16] Production.ERROR: pbx CDR StartTime 2024-12-21 05:38:05 - End Time 2024-12-21 08:38:05 [2024-12-21 08:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068985', 'tblTempUsageDetail_20' ) start [2024-12-21 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068985', 'tblTempUsageDetail_20' ) end [2024-12-21 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068985', 'tblTempVendorCDR_20' ) start [2024-12-21 08:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068985', 'tblTempVendorCDR_20' ) end [2024-12-21 08:38:16] Production.INFO: ProcessCDR(1,14068985,1,1,2) [2024-12-21 08:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068985', 'tblTempUsageDetail_20' ) start [2024-12-21 08:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068985', 'tblTempUsageDetail_20' ) end [2024-12-21 08:38:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:38:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:38:19] Production.INFO: ==11857== Releasing lock... [2024-12-21 08:38:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:38:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:39:04 [end_date_ymd] => 2024-12-21 08:39:04 [RateCDR] => 1 ) [2024-12-21 08:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:39:04' and `end` < '2024-12-21 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:39:16] Production.INFO: count ==83 [2024-12-21 08:39:16] Production.ERROR: pbx CDR StartTime 2024-12-21 05:39:04 - End Time 2024-12-21 08:39:04 [2024-12-21 08:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068992', 'tblTempUsageDetail_20' ) start [2024-12-21 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068992', 'tblTempUsageDetail_20' ) end [2024-12-21 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068992', 'tblTempVendorCDR_20' ) start [2024-12-21 08:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068992', 'tblTempVendorCDR_20' ) end [2024-12-21 08:39:16] Production.INFO: ProcessCDR(1,14068992,1,1,2) [2024-12-21 08:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068992', 'tblTempUsageDetail_20' ) start [2024-12-21 08:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068992', 'tblTempUsageDetail_20' ) end [2024-12-21 08:39:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:39:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:39:19] Production.INFO: ==11932== Releasing lock... [2024-12-21 08:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:39:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:40:05 [end_date_ymd] => 2024-12-21 08:40:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:40:05' and `end` < '2024-12-21 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-21 08:40:17] Production.INFO: count ==91 [2024-12-21 08:40:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:40:05 - End Time 2024-12-21 08:40:05 [2024-12-21 08:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068998', 'tblTempUsageDetail_20' ) start [2024-12-21 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14068998', 'tblTempUsageDetail_20' ) end [2024-12-21 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068998', 'tblTempVendorCDR_20' ) start [2024-12-21 08:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14068998', 'tblTempVendorCDR_20' ) end [2024-12-21 08:40:17] Production.INFO: ProcessCDR(1,14068998,1,1,2) [2024-12-21 08:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14068998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14068998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14068998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14068998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068998', 'tblTempUsageDetail_20' ) start [2024-12-21 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14068998', 'tblTempUsageDetail_20' ) end [2024-12-21 08:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:40:21] Production.INFO: ==12003== Releasing lock... [2024-12-21 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:40:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-21 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:41:05 [end_date_ymd] => 2024-12-21 08:41:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:41:05' and `end` < '2024-12-21 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-21 08:41:18] Production.INFO: count ==199 [2024-12-21 08:41:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:41:05 - End Time 2024-12-21 08:41:05 [2024-12-21 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069003', 'tblTempUsageDetail_20' ) start [2024-12-21 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069003', 'tblTempUsageDetail_20' ) end [2024-12-21 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069003', 'tblTempVendorCDR_20' ) start [2024-12-21 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069003', 'tblTempVendorCDR_20' ) end [2024-12-21 08:41:18] Production.INFO: ProcessCDR(1,14069003,1,1,2) [2024-12-21 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069003', 'tblTempUsageDetail_20' ) start [2024-12-21 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069003', 'tblTempUsageDetail_20' ) end [2024-12-21 08:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:41:23] Production.INFO: ==12078== Releasing lock... [2024-12-21 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:41:23] Production.INFO: 30 MB #Memory Used# [2024-12-21 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:42:05 [end_date_ymd] => 2024-12-21 08:42:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:42:05' and `end` < '2024-12-21 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-21 08:42:18] Production.INFO: count ==199 [2024-12-21 08:42:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:42:05 - End Time 2024-12-21 08:42:05 [2024-12-21 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069008', 'tblTempUsageDetail_20' ) start [2024-12-21 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069008', 'tblTempUsageDetail_20' ) end [2024-12-21 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069008', 'tblTempVendorCDR_20' ) start [2024-12-21 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069008', 'tblTempVendorCDR_20' ) end [2024-12-21 08:42:18] Production.INFO: ProcessCDR(1,14069008,1,1,2) [2024-12-21 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069008', 'tblTempUsageDetail_20' ) start [2024-12-21 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069008', 'tblTempUsageDetail_20' ) end [2024-12-21 08:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:42:21] Production.INFO: ==12149== Releasing lock... [2024-12-21 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:42:21] Production.INFO: 30 MB #Memory Used# [2024-12-21 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:43:04 [end_date_ymd] => 2024-12-21 08:43:04 [RateCDR] => 1 ) [2024-12-21 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-21 05:43:04' and `end` < '2024-12-21 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-21 08:43:17] Production.INFO: count ==199 [2024-12-21 08:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:43:04 - End Time 2024-12-21 08:43:04 [2024-12-21 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069013', 'tblTempUsageDetail_20' ) start [2024-12-21 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069013', 'tblTempUsageDetail_20' ) end [2024-12-21 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069013', 'tblTempVendorCDR_20' ) start [2024-12-21 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069013', 'tblTempVendorCDR_20' ) end [2024-12-21 08:43:17] Production.INFO: ProcessCDR(1,14069013,1,1,2) [2024-12-21 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069013', 'tblTempUsageDetail_20' ) start [2024-12-21 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069013', 'tblTempUsageDetail_20' ) end [2024-12-21 08:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:43:20] Production.INFO: ==12217== Releasing lock... [2024-12-21 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:43:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 08:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:44:04 [end_date_ymd] => 2024-12-21 08:44:04 [RateCDR] => 1 ) [2024-12-21 08:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:44:04' and `end` < '2024-12-21 08:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:44:17] Production.INFO: count ==199 [2024-12-21 08:44:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:44:04 - End Time 2024-12-21 08:44:04 [2024-12-21 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069018', 'tblTempUsageDetail_20' ) start [2024-12-21 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069018', 'tblTempUsageDetail_20' ) end [2024-12-21 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069018', 'tblTempVendorCDR_20' ) start [2024-12-21 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069018', 'tblTempVendorCDR_20' ) end [2024-12-21 08:44:17] Production.INFO: ProcessCDR(1,14069018,1,1,2) [2024-12-21 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069018', 'tblTempUsageDetail_20' ) start [2024-12-21 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069018', 'tblTempUsageDetail_20' ) end [2024-12-21 08:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:44:20] Production.INFO: ==12291== Releasing lock... [2024-12-21 08:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:44:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:45:05 [end_date_ymd] => 2024-12-21 08:45:05 [RateCDR] => 1 ) [2024-12-21 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:45:05' and `end` < '2024-12-21 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:45:17] Production.INFO: count ==199 [2024-12-21 08:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:45:05 - End Time 2024-12-21 08:45:05 [2024-12-21 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069023', 'tblTempUsageDetail_20' ) start [2024-12-21 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069023', 'tblTempUsageDetail_20' ) end [2024-12-21 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069023', 'tblTempVendorCDR_20' ) start [2024-12-21 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069023', 'tblTempVendorCDR_20' ) end [2024-12-21 08:45:17] Production.INFO: ProcessCDR(1,14069023,1,1,2) [2024-12-21 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069023', 'tblTempUsageDetail_20' ) start [2024-12-21 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069023', 'tblTempUsageDetail_20' ) end [2024-12-21 08:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:45:20] Production.INFO: ==12365== Releasing lock... [2024-12-21 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:45:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:46:05 [end_date_ymd] => 2024-12-21 08:46:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:46:05' and `end` < '2024-12-21 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-21 08:46:17] Production.INFO: count ==199 [2024-12-21 08:46:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:46:05 - End Time 2024-12-21 08:46:05 [2024-12-21 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069028', 'tblTempUsageDetail_20' ) start [2024-12-21 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069028', 'tblTempUsageDetail_20' ) end [2024-12-21 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069028', 'tblTempVendorCDR_20' ) start [2024-12-21 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069028', 'tblTempVendorCDR_20' ) end [2024-12-21 08:46:18] Production.INFO: ProcessCDR(1,14069028,1,1,2) [2024-12-21 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069028', 'tblTempUsageDetail_20' ) start [2024-12-21 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069028', 'tblTempUsageDetail_20' ) end [2024-12-21 08:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:46:21] Production.INFO: ==12437== Releasing lock... [2024-12-21 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:46:21] Production.INFO: 30 MB #Memory Used# [2024-12-21 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:47:05 [end_date_ymd] => 2024-12-21 08:47:05 [RateCDR] => 1 ) [2024-12-21 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:47:05' and `end` < '2024-12-21 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:47:19] Production.INFO: count ==202 [2024-12-21 08:47:20] Production.ERROR: pbx CDR StartTime 2024-12-21 05:47:05 - End Time 2024-12-21 08:47:05 [2024-12-21 08:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069033', 'tblTempUsageDetail_20' ) start [2024-12-21 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069033', 'tblTempUsageDetail_20' ) end [2024-12-21 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069033', 'tblTempVendorCDR_20' ) start [2024-12-21 08:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069033', 'tblTempVendorCDR_20' ) end [2024-12-21 08:47:20] Production.INFO: ProcessCDR(1,14069033,1,1,2) [2024-12-21 08:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069033', 'tblTempUsageDetail_20' ) start [2024-12-21 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069033', 'tblTempUsageDetail_20' ) end [2024-12-21 08:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:47:23] Production.INFO: ==12509== Releasing lock... [2024-12-21 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:47:23] Production.INFO: 30 MB #Memory Used# [2024-12-21 08:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:48:04 [end_date_ymd] => 2024-12-21 08:48:04 [RateCDR] => 1 ) [2024-12-21 08:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:48:04' and `end` < '2024-12-21 08:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:48:16] Production.INFO: count ==203 [2024-12-21 08:48:16] Production.ERROR: pbx CDR StartTime 2024-12-21 05:48:04 - End Time 2024-12-21 08:48:04 [2024-12-21 08:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069038', 'tblTempUsageDetail_20' ) start [2024-12-21 08:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069038', 'tblTempUsageDetail_20' ) end [2024-12-21 08:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069038', 'tblTempVendorCDR_20' ) start [2024-12-21 08:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069038', 'tblTempVendorCDR_20' ) end [2024-12-21 08:48:16] Production.INFO: ProcessCDR(1,14069038,1,1,2) [2024-12-21 08:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:48:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069038', 'tblTempUsageDetail_20' ) start [2024-12-21 08:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069038', 'tblTempUsageDetail_20' ) end [2024-12-21 08:48:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:48:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:48:19] Production.INFO: ==12584== Releasing lock... [2024-12-21 08:48:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:48:19] Production.INFO: 30 MB #Memory Used# [2024-12-21 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:49:05 [end_date_ymd] => 2024-12-21 08:49:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:49:05' and `end` < '2024-12-21 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-21 08:49:17] Production.INFO: count ==203 [2024-12-21 08:49:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:49:05 - End Time 2024-12-21 08:49:05 [2024-12-21 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069043', 'tblTempUsageDetail_20' ) start [2024-12-21 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069043', 'tblTempUsageDetail_20' ) end [2024-12-21 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069043', 'tblTempVendorCDR_20' ) start [2024-12-21 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069043', 'tblTempVendorCDR_20' ) end [2024-12-21 08:49:18] Production.INFO: ProcessCDR(1,14069043,1,1,2) [2024-12-21 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069043', 'tblTempUsageDetail_20' ) start [2024-12-21 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069043', 'tblTempUsageDetail_20' ) end [2024-12-21 08:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:49:21] Production.INFO: ==12659== Releasing lock... [2024-12-21 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:49:21] Production.INFO: 30 MB #Memory Used# [2024-12-21 08:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:50:05 [end_date_ymd] => 2024-12-21 08:50:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:50:05' and `end` < '2024-12-21 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-21 08:50:17] Production.INFO: count ==211 [2024-12-21 08:50:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:50:05 - End Time 2024-12-21 08:50:05 [2024-12-21 08:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069049', 'tblTempUsageDetail_20' ) start [2024-12-21 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069049', 'tblTempUsageDetail_20' ) end [2024-12-21 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069049', 'tblTempVendorCDR_20' ) start [2024-12-21 08:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069049', 'tblTempVendorCDR_20' ) end [2024-12-21 08:50:17] Production.INFO: ProcessCDR(1,14069049,1,1,2) [2024-12-21 08:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069049', 'tblTempUsageDetail_20' ) start [2024-12-21 08:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069049', 'tblTempUsageDetail_20' ) end [2024-12-21 08:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:50:20] Production.INFO: ==12736== Releasing lock... [2024-12-21 08:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:50:20] Production.INFO: 30 MB #Memory Used# [2024-12-21 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:51:05 [end_date_ymd] => 2024-12-21 08:51:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:51:05' and `end` < '2024-12-21 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-21 08:51:18] Production.INFO: count ==213 [2024-12-21 08:51:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:51:05 - End Time 2024-12-21 08:51:05 [2024-12-21 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069054', 'tblTempUsageDetail_20' ) start [2024-12-21 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069054', 'tblTempUsageDetail_20' ) end [2024-12-21 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069054', 'tblTempVendorCDR_20' ) start [2024-12-21 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069054', 'tblTempVendorCDR_20' ) end [2024-12-21 08:51:18] Production.INFO: ProcessCDR(1,14069054,1,1,2) [2024-12-21 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069054', 'tblTempUsageDetail_20' ) start [2024-12-21 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069054', 'tblTempUsageDetail_20' ) end [2024-12-21 08:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:51:21] Production.INFO: ==12818== Releasing lock... [2024-12-21 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:51:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:52:05 [end_date_ymd] => 2024-12-21 08:52:05 [RateCDR] => 1 ) [2024-12-21 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:52:05' and `end` < '2024-12-21 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:52:18] Production.INFO: count ==218 [2024-12-21 08:52:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:52:05 - End Time 2024-12-21 08:52:05 [2024-12-21 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069059', 'tblTempUsageDetail_20' ) start [2024-12-21 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069059', 'tblTempUsageDetail_20' ) end [2024-12-21 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069059', 'tblTempVendorCDR_20' ) start [2024-12-21 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069059', 'tblTempVendorCDR_20' ) end [2024-12-21 08:52:18] Production.INFO: ProcessCDR(1,14069059,1,1,2) [2024-12-21 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069059', 'tblTempUsageDetail_20' ) start [2024-12-21 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069059', 'tblTempUsageDetail_20' ) end [2024-12-21 08:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:52:21] Production.INFO: ==12897== Releasing lock... [2024-12-21 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:52:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:53:05 [end_date_ymd] => 2024-12-21 08:53:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:53:05' and `end` < '2024-12-21 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-21 08:53:18] Production.INFO: count ==219 [2024-12-21 08:53:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:53:05 - End Time 2024-12-21 08:53:05 [2024-12-21 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069064', 'tblTempUsageDetail_20' ) start [2024-12-21 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069064', 'tblTempUsageDetail_20' ) end [2024-12-21 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069064', 'tblTempVendorCDR_20' ) start [2024-12-21 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069064', 'tblTempVendorCDR_20' ) end [2024-12-21 08:53:18] Production.INFO: ProcessCDR(1,14069064,1,1,2) [2024-12-21 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069064', 'tblTempUsageDetail_20' ) start [2024-12-21 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069064', 'tblTempUsageDetail_20' ) end [2024-12-21 08:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:53:21] Production.INFO: ==13023== Releasing lock... [2024-12-21 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:53:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:54:05 [end_date_ymd] => 2024-12-21 08:54:05 [RateCDR] => 1 ) [2024-12-21 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:54:05' and `end` < '2024-12-21 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:54:18] Production.INFO: count ==235 [2024-12-21 08:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 05:54:05 - End Time 2024-12-21 08:54:05 [2024-12-21 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069069', 'tblTempUsageDetail_20' ) start [2024-12-21 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069069', 'tblTempUsageDetail_20' ) end [2024-12-21 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069069', 'tblTempVendorCDR_20' ) start [2024-12-21 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069069', 'tblTempVendorCDR_20' ) end [2024-12-21 08:54:18] Production.INFO: ProcessCDR(1,14069069,1,1,2) [2024-12-21 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069069', 'tblTempUsageDetail_20' ) start [2024-12-21 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069069', 'tblTempUsageDetail_20' ) end [2024-12-21 08:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:54:23] Production.INFO: ==13098== Releasing lock... [2024-12-21 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:54:23] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:55:05 [end_date_ymd] => 2024-12-21 08:55:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:55:05' and `end` < '2024-12-21 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-21 08:55:17] Production.INFO: count ==235 [2024-12-21 08:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:55:05 - End Time 2024-12-21 08:55:05 [2024-12-21 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069074', 'tblTempUsageDetail_20' ) start [2024-12-21 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069074', 'tblTempUsageDetail_20' ) end [2024-12-21 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069074', 'tblTempVendorCDR_20' ) start [2024-12-21 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069074', 'tblTempVendorCDR_20' ) end [2024-12-21 08:55:17] Production.INFO: ProcessCDR(1,14069074,1,1,2) [2024-12-21 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069074', 'tblTempUsageDetail_20' ) start [2024-12-21 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069074', 'tblTempUsageDetail_20' ) end [2024-12-21 08:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:55:20] Production.INFO: ==13180== Releasing lock... [2024-12-21 08:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:55:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:56:05 [end_date_ymd] => 2024-12-21 08:56:05 [RateCDR] => 1 ) [2024-12-21 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-21 05:56:05' and `end` < '2024-12-21 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-21 08:56:17] Production.INFO: count ==235 [2024-12-21 08:56:17] Production.ERROR: pbx CDR StartTime 2024-12-21 05:56:05 - End Time 2024-12-21 08:56:05 [2024-12-21 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069079', 'tblTempUsageDetail_20' ) start [2024-12-21 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069079', 'tblTempUsageDetail_20' ) end [2024-12-21 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069079', 'tblTempVendorCDR_20' ) start [2024-12-21 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069079', 'tblTempVendorCDR_20' ) end [2024-12-21 08:56:17] Production.INFO: ProcessCDR(1,14069079,1,1,2) [2024-12-21 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069079', 'tblTempUsageDetail_20' ) start [2024-12-21 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069079', 'tblTempUsageDetail_20' ) end [2024-12-21 08:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:56:20] Production.INFO: ==13266== Releasing lock... [2024-12-21 08:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:56:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:57:04 [end_date_ymd] => 2024-12-21 08:57:04 [RateCDR] => 1 ) [2024-12-21 08:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:57:04' and `end` < '2024-12-21 08:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:57:16] Production.INFO: count ==235 [2024-12-21 08:57:16] Production.ERROR: pbx CDR StartTime 2024-12-21 05:57:04 - End Time 2024-12-21 08:57:04 [2024-12-21 08:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069084', 'tblTempUsageDetail_20' ) start [2024-12-21 08:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069084', 'tblTempUsageDetail_20' ) end [2024-12-21 08:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069084', 'tblTempVendorCDR_20' ) start [2024-12-21 08:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069084', 'tblTempVendorCDR_20' ) end [2024-12-21 08:57:16] Production.INFO: ProcessCDR(1,14069084,1,1,2) [2024-12-21 08:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069084', 'tblTempUsageDetail_20' ) start [2024-12-21 08:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069084', 'tblTempUsageDetail_20' ) end [2024-12-21 08:57:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:57:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:57:19] Production.INFO: ==13341== Releasing lock... [2024-12-21 08:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:57:19] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:58:04 [end_date_ymd] => 2024-12-21 08:58:04 [RateCDR] => 1 ) [2024-12-21 08:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:58:04' and `end` < '2024-12-21 08:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:58:16] Production.INFO: count ==235 [2024-12-21 08:58:16] Production.ERROR: pbx CDR StartTime 2024-12-21 05:58:04 - End Time 2024-12-21 08:58:04 [2024-12-21 08:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069089', 'tblTempUsageDetail_20' ) start [2024-12-21 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069089', 'tblTempUsageDetail_20' ) end [2024-12-21 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069089', 'tblTempVendorCDR_20' ) start [2024-12-21 08:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069089', 'tblTempVendorCDR_20' ) end [2024-12-21 08:58:16] Production.INFO: ProcessCDR(1,14069089,1,1,2) [2024-12-21 08:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:58:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069089', 'tblTempUsageDetail_20' ) start [2024-12-21 08:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069089', 'tblTempUsageDetail_20' ) end [2024-12-21 08:58:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:58:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:58:19] Production.INFO: ==13422== Releasing lock... [2024-12-21 08:58:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:58:19] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 05:59:05 [end_date_ymd] => 2024-12-21 08:59:05 [RateCDR] => 1 ) [2024-12-21 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 05:59:05' and `end` < '2024-12-21 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 08:59:19] Production.INFO: count ==236 [2024-12-21 08:59:19] Production.ERROR: pbx CDR StartTime 2024-12-21 05:59:05 - End Time 2024-12-21 08:59:05 [2024-12-21 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069094', 'tblTempUsageDetail_20' ) start [2024-12-21 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069094', 'tblTempUsageDetail_20' ) end [2024-12-21 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069094', 'tblTempVendorCDR_20' ) start [2024-12-21 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069094', 'tblTempVendorCDR_20' ) end [2024-12-21 08:59:19] Production.INFO: ProcessCDR(1,14069094,1,1,2) [2024-12-21 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069094', 'tblTempUsageDetail_20' ) start [2024-12-21 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069094', 'tblTempUsageDetail_20' ) end [2024-12-21 08:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 08:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 08:59:23] Production.INFO: ==13499== Releasing lock... [2024-12-21 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 08:59:23] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:00:05 [end_date_ymd] => 2024-12-21 09:00:05 [RateCDR] => 1 ) [2024-12-21 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:00:05' and `end` < '2024-12-21 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:00:17] Production.INFO: count ==238 [2024-12-21 09:00:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:00:05 - End Time 2024-12-21 09:00:05 [2024-12-21 09:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069099', 'tblTempUsageDetail_20' ) start [2024-12-21 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069099', 'tblTempUsageDetail_20' ) end [2024-12-21 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069099', 'tblTempVendorCDR_20' ) start [2024-12-21 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069099', 'tblTempVendorCDR_20' ) end [2024-12-21 09:00:17] Production.INFO: ProcessCDR(1,14069099,1,1,2) [2024-12-21 09:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069099', 'tblTempUsageDetail_20' ) start [2024-12-21 09:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069099', 'tblTempUsageDetail_20' ) end [2024-12-21 09:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:00:20] Production.INFO: ==13584== Releasing lock... [2024-12-21 09:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:00:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:01:05 [end_date_ymd] => 2024-12-21 09:01:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:01:05' and `end` < '2024-12-21 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-21 09:01:17] Production.INFO: count ==238 [2024-12-21 09:01:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:01:05 - End Time 2024-12-21 09:01:05 [2024-12-21 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069105', 'tblTempUsageDetail_20' ) start [2024-12-21 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069105', 'tblTempUsageDetail_20' ) end [2024-12-21 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069105', 'tblTempVendorCDR_20' ) start [2024-12-21 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069105', 'tblTempVendorCDR_20' ) end [2024-12-21 09:01:17] Production.INFO: ProcessCDR(1,14069105,1,1,2) [2024-12-21 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069105', 'tblTempUsageDetail_20' ) start [2024-12-21 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069105', 'tblTempUsageDetail_20' ) end [2024-12-21 09:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:01:20] Production.INFO: ==13674== Releasing lock... [2024-12-21 09:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:01:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:02:05 [end_date_ymd] => 2024-12-21 09:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:02:05' and `end` < '2024-12-21 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-21 09:02:17] Production.INFO: count ==246 [2024-12-21 09:02:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:02:05 - End Time 2024-12-21 09:02:05 [2024-12-21 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069110', 'tblTempUsageDetail_20' ) start [2024-12-21 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069110', 'tblTempUsageDetail_20' ) end [2024-12-21 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069110', 'tblTempVendorCDR_20' ) start [2024-12-21 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069110', 'tblTempVendorCDR_20' ) end [2024-12-21 09:02:17] Production.INFO: ProcessCDR(1,14069110,1,1,2) [2024-12-21 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069110', 'tblTempUsageDetail_20' ) start [2024-12-21 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069110', 'tblTempUsageDetail_20' ) end [2024-12-21 09:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:02:21] Production.INFO: ==13759== Releasing lock... [2024-12-21 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:02:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-21 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:03:05 [end_date_ymd] => 2024-12-21 09:03:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:03:05' and `end` < '2024-12-21 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-21 09:03:17] Production.INFO: count ==252 [2024-12-21 09:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:03:05 - End Time 2024-12-21 09:03:05 [2024-12-21 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069115', 'tblTempUsageDetail_20' ) start [2024-12-21 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069115', 'tblTempUsageDetail_20' ) end [2024-12-21 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069115', 'tblTempVendorCDR_20' ) start [2024-12-21 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069115', 'tblTempVendorCDR_20' ) end [2024-12-21 09:03:17] Production.INFO: ProcessCDR(1,14069115,1,1,2) [2024-12-21 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069115', 'tblTempUsageDetail_20' ) start [2024-12-21 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069115', 'tblTempUsageDetail_20' ) end [2024-12-21 09:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:03:20] Production.INFO: ==13843== Releasing lock... [2024-12-21 09:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:03:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 09:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:04:04 [end_date_ymd] => 2024-12-21 09:04:04 [RateCDR] => 1 ) [2024-12-21 09: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-21 06:04:04' and `end` < '2024-12-21 09: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-21 09:04:16] Production.INFO: count ==257 [2024-12-21 09:04:16] Production.ERROR: pbx CDR StartTime 2024-12-21 06:04:04 - End Time 2024-12-21 09:04:04 [2024-12-21 09:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069120', 'tblTempUsageDetail_20' ) start [2024-12-21 09:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069120', 'tblTempUsageDetail_20' ) end [2024-12-21 09:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069120', 'tblTempVendorCDR_20' ) start [2024-12-21 09:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069120', 'tblTempVendorCDR_20' ) end [2024-12-21 09:04:16] Production.INFO: ProcessCDR(1,14069120,1,1,2) [2024-12-21 09:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:04:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069120', 'tblTempUsageDetail_20' ) start [2024-12-21 09:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069120', 'tblTempUsageDetail_20' ) end [2024-12-21 09:04:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:04:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:04:19] Production.INFO: ==13922== Releasing lock... [2024-12-21 09:04:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:04:19] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:05:04 [end_date_ymd] => 2024-12-21 09:05:04 [RateCDR] => 1 ) [2024-12-21 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-21 06:05:04' and `end` < '2024-12-21 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-21 09:05:16] Production.INFO: count ==263 [2024-12-21 09:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:05:04 - End Time 2024-12-21 09:05:04 [2024-12-21 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069125', 'tblTempUsageDetail_20' ) start [2024-12-21 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069125', 'tblTempUsageDetail_20' ) end [2024-12-21 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069125', 'tblTempVendorCDR_20' ) start [2024-12-21 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069125', 'tblTempVendorCDR_20' ) end [2024-12-21 09:05:17] Production.INFO: ProcessCDR(1,14069125,1,1,2) [2024-12-21 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069125', 'tblTempUsageDetail_20' ) start [2024-12-21 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069125', 'tblTempUsageDetail_20' ) end [2024-12-21 09:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:05:20] Production.INFO: ==14002== Releasing lock... [2024-12-21 09:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:05:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:06:05 [end_date_ymd] => 2024-12-21 09:06:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:06:05' and `end` < '2024-12-21 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-21 09:06:19] Production.INFO: count ==275 [2024-12-21 09:06:19] Production.ERROR: pbx CDR StartTime 2024-12-21 06:06:05 - End Time 2024-12-21 09:06:05 [2024-12-21 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069130', 'tblTempUsageDetail_20' ) start [2024-12-21 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069130', 'tblTempUsageDetail_20' ) end [2024-12-21 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069130', 'tblTempVendorCDR_20' ) start [2024-12-21 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069130', 'tblTempVendorCDR_20' ) end [2024-12-21 09:06:19] Production.INFO: ProcessCDR(1,14069130,1,1,2) [2024-12-21 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069130', 'tblTempUsageDetail_20' ) start [2024-12-21 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069130', 'tblTempUsageDetail_20' ) end [2024-12-21 09:06:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:06:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:06:23] Production.INFO: ==14082== Releasing lock... [2024-12-21 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:06:23] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:07:04 [end_date_ymd] => 2024-12-21 09:07:04 [RateCDR] => 1 ) [2024-12-21 09: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-21 06:07:04' and `end` < '2024-12-21 09: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-21 09:07:17] Production.INFO: count ==278 [2024-12-21 09:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:07:04 - End Time 2024-12-21 09:07:04 [2024-12-21 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069135', 'tblTempUsageDetail_20' ) start [2024-12-21 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069135', 'tblTempUsageDetail_20' ) end [2024-12-21 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069135', 'tblTempVendorCDR_20' ) start [2024-12-21 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069135', 'tblTempVendorCDR_20' ) end [2024-12-21 09:07:17] Production.INFO: ProcessCDR(1,14069135,1,1,2) [2024-12-21 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069135', 'tblTempUsageDetail_20' ) start [2024-12-21 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069135', 'tblTempUsageDetail_20' ) end [2024-12-21 09:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:07:21] Production.INFO: ==14166== Releasing lock... [2024-12-21 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:07:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-21 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:08:05 [end_date_ymd] => 2024-12-21 09:08:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:08:05' and `end` < '2024-12-21 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-21 09:08:19] Production.INFO: count ==285 [2024-12-21 09:08:19] Production.ERROR: pbx CDR StartTime 2024-12-21 06:08:05 - End Time 2024-12-21 09:08:05 [2024-12-21 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069140', 'tblTempUsageDetail_20' ) start [2024-12-21 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069140', 'tblTempUsageDetail_20' ) end [2024-12-21 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069140', 'tblTempVendorCDR_20' ) start [2024-12-21 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069140', 'tblTempVendorCDR_20' ) end [2024-12-21 09:08:19] Production.INFO: ProcessCDR(1,14069140,1,1,2) [2024-12-21 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069140', 'tblTempUsageDetail_20' ) start [2024-12-21 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069140', 'tblTempUsageDetail_20' ) end [2024-12-21 09:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:08:22] Production.INFO: ==14247== Releasing lock... [2024-12-21 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:08:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:09:04 [end_date_ymd] => 2024-12-21 09:09:04 [RateCDR] => 1 ) [2024-12-21 09: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-21 06:09:04' and `end` < '2024-12-21 09: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-21 09:09:18] Production.INFO: count ==291 [2024-12-21 09:09:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:09:04 - End Time 2024-12-21 09:09:04 [2024-12-21 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069145', 'tblTempUsageDetail_20' ) start [2024-12-21 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069145', 'tblTempUsageDetail_20' ) end [2024-12-21 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069145', 'tblTempVendorCDR_20' ) start [2024-12-21 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069145', 'tblTempVendorCDR_20' ) end [2024-12-21 09:09:18] Production.INFO: ProcessCDR(1,14069145,1,1,2) [2024-12-21 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069145', 'tblTempUsageDetail_20' ) start [2024-12-21 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069145', 'tblTempUsageDetail_20' ) end [2024-12-21 09:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:09:21] Production.INFO: ==14371== Releasing lock... [2024-12-21 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:09:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-21 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:10:05 [end_date_ymd] => 2024-12-21 09:10:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:10:05' and `end` < '2024-12-21 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-21 09:10:17] Production.INFO: count ==301 [2024-12-21 09:10:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:10:05 - End Time 2024-12-21 09:10:05 [2024-12-21 09:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069150', 'tblTempUsageDetail_20' ) start [2024-12-21 09:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069150', 'tblTempUsageDetail_20' ) end [2024-12-21 09:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069150', 'tblTempVendorCDR_20' ) start [2024-12-21 09:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069150', 'tblTempVendorCDR_20' ) end [2024-12-21 09:10:17] Production.INFO: ProcessCDR(1,14069150,1,1,2) [2024-12-21 09:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069150', 'tblTempUsageDetail_20' ) start [2024-12-21 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069150', 'tblTempUsageDetail_20' ) end [2024-12-21 09:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:10:21] Production.INFO: ==14451== Releasing lock... [2024-12-21 09:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:10:21] Production.INFO: 31 MB #Memory Used# [2024-12-21 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:11:04 [end_date_ymd] => 2024-12-21 09:11:04 [RateCDR] => 1 ) [2024-12-21 09: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-21 06:11:04' and `end` < '2024-12-21 09: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-21 09:11:16] Production.INFO: count ==323 [2024-12-21 09:11:16] Production.ERROR: pbx CDR StartTime 2024-12-21 06:11:04 - End Time 2024-12-21 09:11:04 [2024-12-21 09:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069156', 'tblTempUsageDetail_20' ) start [2024-12-21 09:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069156', 'tblTempUsageDetail_20' ) end [2024-12-21 09:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069156', 'tblTempVendorCDR_20' ) start [2024-12-21 09:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069156', 'tblTempVendorCDR_20' ) end [2024-12-21 09:11:16] Production.INFO: ProcessCDR(1,14069156,1,1,2) [2024-12-21 09:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069156', 'tblTempUsageDetail_20' ) start [2024-12-21 09:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069156', 'tblTempUsageDetail_20' ) end [2024-12-21 09:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:11:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:11:19] Production.INFO: ==14533== Releasing lock... [2024-12-21 09:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:11:19] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:12:05 [end_date_ymd] => 2024-12-21 09:12:05 [RateCDR] => 1 ) [2024-12-21 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:12:05' and `end` < '2024-12-21 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:12:17] Production.INFO: count ==323 [2024-12-21 09:12:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:12:05 - End Time 2024-12-21 09:12:05 [2024-12-21 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069161', 'tblTempUsageDetail_20' ) start [2024-12-21 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069161', 'tblTempUsageDetail_20' ) end [2024-12-21 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069161', 'tblTempVendorCDR_20' ) start [2024-12-21 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069161', 'tblTempVendorCDR_20' ) end [2024-12-21 09:12:17] Production.INFO: ProcessCDR(1,14069161,1,1,2) [2024-12-21 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069161', 'tblTempUsageDetail_20' ) start [2024-12-21 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069161', 'tblTempUsageDetail_20' ) end [2024-12-21 09:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:12:20] Production.INFO: ==14615== Releasing lock... [2024-12-21 09:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:12:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:13:05 [end_date_ymd] => 2024-12-21 09:13:05 [RateCDR] => 1 ) [2024-12-21 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:13:05' and `end` < '2024-12-21 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:13:19] Production.INFO: count ==330 [2024-12-21 09:13:19] Production.ERROR: pbx CDR StartTime 2024-12-21 06:13:05 - End Time 2024-12-21 09:13:05 [2024-12-21 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069166', 'tblTempUsageDetail_20' ) start [2024-12-21 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069166', 'tblTempUsageDetail_20' ) end [2024-12-21 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069166', 'tblTempVendorCDR_20' ) start [2024-12-21 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069166', 'tblTempVendorCDR_20' ) end [2024-12-21 09:13:19] Production.INFO: ProcessCDR(1,14069166,1,1,2) [2024-12-21 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069166', 'tblTempUsageDetail_20' ) start [2024-12-21 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069166', 'tblTempUsageDetail_20' ) end [2024-12-21 09:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:13:23] Production.INFO: ==14699== Releasing lock... [2024-12-21 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:13:23] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:14:05 [end_date_ymd] => 2024-12-21 09:14:05 [RateCDR] => 1 ) [2024-12-21 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:14:05' and `end` < '2024-12-21 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:14:18] Production.INFO: count ==330 [2024-12-21 09:14:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:14:05 - End Time 2024-12-21 09:14:05 [2024-12-21 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069171', 'tblTempUsageDetail_20' ) start [2024-12-21 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069171', 'tblTempUsageDetail_20' ) end [2024-12-21 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069171', 'tblTempVendorCDR_20' ) start [2024-12-21 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069171', 'tblTempVendorCDR_20' ) end [2024-12-21 09:14:18] Production.INFO: ProcessCDR(1,14069171,1,1,2) [2024-12-21 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069171', 'tblTempUsageDetail_20' ) start [2024-12-21 09:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069171', 'tblTempUsageDetail_20' ) end [2024-12-21 09:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:14:21] Production.INFO: ==14779== Releasing lock... [2024-12-21 09:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:14:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:15:05 [end_date_ymd] => 2024-12-21 09:15:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:15:05' and `end` < '2024-12-21 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-21 09:15:17] Production.INFO: count ==342 [2024-12-21 09:15:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:15:05 - End Time 2024-12-21 09:15:05 [2024-12-21 09:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069176', 'tblTempUsageDetail_20' ) start [2024-12-21 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069176', 'tblTempUsageDetail_20' ) end [2024-12-21 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069176', 'tblTempVendorCDR_20' ) start [2024-12-21 09:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069176', 'tblTempVendorCDR_20' ) end [2024-12-21 09:15:17] Production.INFO: ProcessCDR(1,14069176,1,1,2) [2024-12-21 09:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069176', 'tblTempUsageDetail_20' ) start [2024-12-21 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069176', 'tblTempUsageDetail_20' ) end [2024-12-21 09:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:15:20] Production.INFO: ==14859== Releasing lock... [2024-12-21 09:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:15:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 09:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:16:04 [end_date_ymd] => 2024-12-21 09:16:04 [RateCDR] => 1 ) [2024-12-21 09: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-21 06:16:04' and `end` < '2024-12-21 09: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-21 09:16:20] Production.INFO: count ==353 [2024-12-21 09:16:20] Production.ERROR: pbx CDR StartTime 2024-12-21 06:16:04 - End Time 2024-12-21 09:16:04 [2024-12-21 09:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069181', 'tblTempUsageDetail_20' ) start [2024-12-21 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069181', 'tblTempUsageDetail_20' ) end [2024-12-21 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069181', 'tblTempVendorCDR_20' ) start [2024-12-21 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069181', 'tblTempVendorCDR_20' ) end [2024-12-21 09:16:20] Production.INFO: ProcessCDR(1,14069181,1,1,2) [2024-12-21 09:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069181', 'tblTempUsageDetail_20' ) start [2024-12-21 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069181', 'tblTempUsageDetail_20' ) end [2024-12-21 09:16:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:16:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:16:24] Production.INFO: ==14941== Releasing lock... [2024-12-21 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:16:24] Production.INFO: 31.25 MB #Memory Used# [2024-12-21 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:17:05 [end_date_ymd] => 2024-12-21 09:17:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:17:05' and `end` < '2024-12-21 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-21 09:17:20] Production.INFO: count ==356 [2024-12-21 09:17:20] Production.ERROR: pbx CDR StartTime 2024-12-21 06:17:05 - End Time 2024-12-21 09:17:05 [2024-12-21 09:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069186', 'tblTempUsageDetail_20' ) start [2024-12-21 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069186', 'tblTempUsageDetail_20' ) end [2024-12-21 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069186', 'tblTempVendorCDR_20' ) start [2024-12-21 09:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069186', 'tblTempVendorCDR_20' ) end [2024-12-21 09:17:20] Production.INFO: ProcessCDR(1,14069186,1,1,2) [2024-12-21 09:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069186', 'tblTempUsageDetail_20' ) start [2024-12-21 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069186', 'tblTempUsageDetail_20' ) end [2024-12-21 09:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:17:23] Production.INFO: ==15022== Releasing lock... [2024-12-21 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:17:23] Production.INFO: 31.75 MB #Memory Used# [2024-12-21 09:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:18:04 [end_date_ymd] => 2024-12-21 09:18:04 [RateCDR] => 1 ) [2024-12-21 09:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:18:04' and `end` < '2024-12-21 09:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:18:16] Production.INFO: count ==370 [2024-12-21 09:18:16] Production.ERROR: pbx CDR StartTime 2024-12-21 06:18:04 - End Time 2024-12-21 09:18:04 [2024-12-21 09:18:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069191', 'tblTempUsageDetail_20' ) start [2024-12-21 09:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069191', 'tblTempUsageDetail_20' ) end [2024-12-21 09:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069191', 'tblTempVendorCDR_20' ) start [2024-12-21 09:18:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069191', 'tblTempVendorCDR_20' ) end [2024-12-21 09:18:16] Production.INFO: ProcessCDR(1,14069191,1,1,2) [2024-12-21 09:18:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069191', 'tblTempUsageDetail_20' ) start [2024-12-21 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069191', 'tblTempUsageDetail_20' ) end [2024-12-21 09:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:18:22] Production.INFO: ==15098== Releasing lock... [2024-12-21 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:18:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:19:05 [end_date_ymd] => 2024-12-21 09:19:05 [RateCDR] => 1 ) [2024-12-21 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:19:05' and `end` < '2024-12-21 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:19:18] Production.INFO: count ==370 [2024-12-21 09:19:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:19:05 - End Time 2024-12-21 09:19:05 [2024-12-21 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069196', 'tblTempUsageDetail_20' ) start [2024-12-21 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069196', 'tblTempUsageDetail_20' ) end [2024-12-21 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069196', 'tblTempVendorCDR_20' ) start [2024-12-21 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069196', 'tblTempVendorCDR_20' ) end [2024-12-21 09:19:18] Production.INFO: ProcessCDR(1,14069196,1,1,2) [2024-12-21 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069196', 'tblTempUsageDetail_20' ) start [2024-12-21 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069196', 'tblTempUsageDetail_20' ) end [2024-12-21 09:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:19:21] Production.INFO: ==15179== Releasing lock... [2024-12-21 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:19:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:20:05 [end_date_ymd] => 2024-12-21 09:20:05 [RateCDR] => 1 ) [2024-12-21 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:20:05' and `end` < '2024-12-21 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:20:17] Production.INFO: count ==379 [2024-12-21 09:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:20:05 - End Time 2024-12-21 09:20:05 [2024-12-21 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069202', 'tblTempUsageDetail_20' ) start [2024-12-21 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069202', 'tblTempUsageDetail_20' ) end [2024-12-21 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069202', 'tblTempVendorCDR_20' ) start [2024-12-21 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069202', 'tblTempVendorCDR_20' ) end [2024-12-21 09:20:18] Production.INFO: ProcessCDR(1,14069202,1,1,2) [2024-12-21 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069202', 'tblTempUsageDetail_20' ) start [2024-12-21 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069202', 'tblTempUsageDetail_20' ) end [2024-12-21 09:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:20:21] Production.INFO: ==15257== Releasing lock... [2024-12-21 09:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:20:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:21:05 [end_date_ymd] => 2024-12-21 09:21:05 [RateCDR] => 1 ) [2024-12-21 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:21:05' and `end` < '2024-12-21 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:21:17] Production.INFO: count ==415 [2024-12-21 09:21:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:21:05 - End Time 2024-12-21 09:21:05 [2024-12-21 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069207', 'tblTempUsageDetail_20' ) start [2024-12-21 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069207', 'tblTempUsageDetail_20' ) end [2024-12-21 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069207', 'tblTempVendorCDR_20' ) start [2024-12-21 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069207', 'tblTempVendorCDR_20' ) end [2024-12-21 09:21:17] Production.INFO: ProcessCDR(1,14069207,1,1,2) [2024-12-21 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069207', 'tblTempUsageDetail_20' ) start [2024-12-21 09:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069207', 'tblTempUsageDetail_20' ) end [2024-12-21 09:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:21:21] Production.INFO: ==15338== Releasing lock... [2024-12-21 09:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:21:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-21 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:22:05 [end_date_ymd] => 2024-12-21 09:22:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:22:05' and `end` < '2024-12-21 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-21 09:22:18] Production.INFO: count ==422 [2024-12-21 09:22:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:22:05 - End Time 2024-12-21 09:22:05 [2024-12-21 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069212', 'tblTempUsageDetail_20' ) start [2024-12-21 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069212', 'tblTempUsageDetail_20' ) end [2024-12-21 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069212', 'tblTempVendorCDR_20' ) start [2024-12-21 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069212', 'tblTempVendorCDR_20' ) end [2024-12-21 09:22:18] Production.INFO: ProcessCDR(1,14069212,1,1,2) [2024-12-21 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069212', 'tblTempUsageDetail_20' ) start [2024-12-21 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069212', 'tblTempUsageDetail_20' ) end [2024-12-21 09:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:22:22] Production.INFO: ==15415== Releasing lock... [2024-12-21 09:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:22:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:23:04 [end_date_ymd] => 2024-12-21 09:23:04 [RateCDR] => 1 ) [2024-12-21 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-21 06:23:04' and `end` < '2024-12-21 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-21 09:23:16] Production.INFO: count ==441 [2024-12-21 09:23:16] Production.ERROR: pbx CDR StartTime 2024-12-21 06:23:04 - End Time 2024-12-21 09:23:04 [2024-12-21 09:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069217', 'tblTempUsageDetail_20' ) start [2024-12-21 09:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069217', 'tblTempUsageDetail_20' ) end [2024-12-21 09:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069217', 'tblTempVendorCDR_20' ) start [2024-12-21 09:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069217', 'tblTempVendorCDR_20' ) end [2024-12-21 09:23:16] Production.INFO: ProcessCDR(1,14069217,1,1,2) [2024-12-21 09:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069217', 'tblTempUsageDetail_20' ) start [2024-12-21 09:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069217', 'tblTempUsageDetail_20' ) end [2024-12-21 09:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:23:20] Production.INFO: ==15493== Releasing lock... [2024-12-21 09:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:23:20] Production.INFO: 32 MB #Memory Used# [2024-12-21 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:24:05 [end_date_ymd] => 2024-12-21 09:24:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:24:05' and `end` < '2024-12-21 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-21 09:24:18] Production.INFO: count ==443 [2024-12-21 09:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:24:05 - End Time 2024-12-21 09:24:05 [2024-12-21 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069222', 'tblTempUsageDetail_20' ) start [2024-12-21 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069222', 'tblTempUsageDetail_20' ) end [2024-12-21 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069222', 'tblTempVendorCDR_20' ) start [2024-12-21 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069222', 'tblTempVendorCDR_20' ) end [2024-12-21 09:24:18] Production.INFO: ProcessCDR(1,14069222,1,1,2) [2024-12-21 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069222', 'tblTempUsageDetail_20' ) start [2024-12-21 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069222', 'tblTempUsageDetail_20' ) end [2024-12-21 09:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:24:23] Production.INFO: ==15608== Releasing lock... [2024-12-21 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:24:23] Production.INFO: 32 MB #Memory Used# [2024-12-21 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:25:04 [end_date_ymd] => 2024-12-21 09:25:04 [RateCDR] => 1 ) [2024-12-21 09:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:25:04' and `end` < '2024-12-21 09:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:25:16] Production.INFO: count ==445 [2024-12-21 09:25:16] Production.ERROR: pbx CDR StartTime 2024-12-21 06:25:04 - End Time 2024-12-21 09:25:04 [2024-12-21 09:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069227', 'tblTempUsageDetail_20' ) start [2024-12-21 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069227', 'tblTempUsageDetail_20' ) end [2024-12-21 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069227', 'tblTempVendorCDR_20' ) start [2024-12-21 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069227', 'tblTempVendorCDR_20' ) end [2024-12-21 09:25:16] Production.INFO: ProcessCDR(1,14069227,1,1,2) [2024-12-21 09:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069227', 'tblTempUsageDetail_20' ) start [2024-12-21 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069227', 'tblTempUsageDetail_20' ) end [2024-12-21 09:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:25:21] Production.INFO: ==15684== Releasing lock... [2024-12-21 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:25:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:26:05 [end_date_ymd] => 2024-12-21 09:26:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:26:05' and `end` < '2024-12-21 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-21 09:26:17] Production.INFO: count ==447 [2024-12-21 09:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:26:05 - End Time 2024-12-21 09:26:05 [2024-12-21 09:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069232', 'tblTempUsageDetail_20' ) start [2024-12-21 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069232', 'tblTempUsageDetail_20' ) end [2024-12-21 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069232', 'tblTempVendorCDR_20' ) start [2024-12-21 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069232', 'tblTempVendorCDR_20' ) end [2024-12-21 09:26:17] Production.INFO: ProcessCDR(1,14069232,1,1,2) [2024-12-21 09:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069232', 'tblTempUsageDetail_20' ) start [2024-12-21 09:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069232', 'tblTempUsageDetail_20' ) end [2024-12-21 09:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:26:20] Production.INFO: ==15756== Releasing lock... [2024-12-21 09:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:26:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:27:04 [end_date_ymd] => 2024-12-21 09:27:04 [RateCDR] => 1 ) [2024-12-21 09:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:27:04' and `end` < '2024-12-21 09:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:27:17] Production.INFO: count ==452 [2024-12-21 09:27:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:27:04 - End Time 2024-12-21 09:27:04 [2024-12-21 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069237', 'tblTempUsageDetail_20' ) start [2024-12-21 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069237', 'tblTempUsageDetail_20' ) end [2024-12-21 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069237', 'tblTempVendorCDR_20' ) start [2024-12-21 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069237', 'tblTempVendorCDR_20' ) end [2024-12-21 09:27:17] Production.INFO: ProcessCDR(1,14069237,1,1,2) [2024-12-21 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069237', 'tblTempUsageDetail_20' ) start [2024-12-21 09:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069237', 'tblTempUsageDetail_20' ) end [2024-12-21 09:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:27:20] Production.INFO: ==15829== Releasing lock... [2024-12-21 09:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:27:20] Production.INFO: 32 MB #Memory Used# [2024-12-21 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:28:05 [end_date_ymd] => 2024-12-21 09:28:05 [RateCDR] => 1 ) [2024-12-21 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:28:05' and `end` < '2024-12-21 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:28:21] Production.INFO: count ==452 [2024-12-21 09:28:21] Production.ERROR: pbx CDR StartTime 2024-12-21 06:28:05 - End Time 2024-12-21 09:28:05 [2024-12-21 09:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069242', 'tblTempUsageDetail_20' ) start [2024-12-21 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069242', 'tblTempUsageDetail_20' ) end [2024-12-21 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069242', 'tblTempVendorCDR_20' ) start [2024-12-21 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069242', 'tblTempVendorCDR_20' ) end [2024-12-21 09:28:21] Production.INFO: ProcessCDR(1,14069242,1,1,2) [2024-12-21 09:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069242', 'tblTempUsageDetail_20' ) start [2024-12-21 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069242', 'tblTempUsageDetail_20' ) end [2024-12-21 09:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:28:24] Production.INFO: ==15904== Releasing lock... [2024-12-21 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:28:24] Production.INFO: 32 MB #Memory Used# [2024-12-21 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:29:05 [end_date_ymd] => 2024-12-21 09:29:05 [RateCDR] => 1 ) [2024-12-21 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:29:05' and `end` < '2024-12-21 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:29:17] Production.INFO: count ==458 [2024-12-21 09:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:29:05 - End Time 2024-12-21 09:29:05 [2024-12-21 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069247', 'tblTempUsageDetail_20' ) start [2024-12-21 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069247', 'tblTempUsageDetail_20' ) end [2024-12-21 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069247', 'tblTempVendorCDR_20' ) start [2024-12-21 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069247', 'tblTempVendorCDR_20' ) end [2024-12-21 09:29:17] Production.INFO: ProcessCDR(1,14069247,1,1,2) [2024-12-21 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069247', 'tblTempUsageDetail_20' ) start [2024-12-21 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069247', 'tblTempUsageDetail_20' ) end [2024-12-21 09:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:29:21] Production.INFO: ==15980== Releasing lock... [2024-12-21 09:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:29:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-21 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:30:05 [end_date_ymd] => 2024-12-21 09:30:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:30:05' and `end` < '2024-12-21 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-21 09:30:17] Production.INFO: count ==464 [2024-12-21 09:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:30:05 - End Time 2024-12-21 09:30:05 [2024-12-21 09:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069252', 'tblTempUsageDetail_20' ) start [2024-12-21 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069252', 'tblTempUsageDetail_20' ) end [2024-12-21 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069252', 'tblTempVendorCDR_20' ) start [2024-12-21 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069252', 'tblTempVendorCDR_20' ) end [2024-12-21 09:30:18] Production.INFO: ProcessCDR(1,14069252,1,1,2) [2024-12-21 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069252', 'tblTempUsageDetail_20' ) start [2024-12-21 09:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069252', 'tblTempUsageDetail_20' ) end [2024-12-21 09:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:30:21] Production.INFO: ==16054== Releasing lock... [2024-12-21 09:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:30:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-21 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:31:05 [end_date_ymd] => 2024-12-21 09:31:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:31:05' and `end` < '2024-12-21 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-21 09:31:17] Production.INFO: count ==532 [2024-12-21 09:31:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:31:05 - End Time 2024-12-21 09:31:05 [2024-12-21 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069258', 'tblTempUsageDetail_20' ) start [2024-12-21 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069258', 'tblTempUsageDetail_20' ) end [2024-12-21 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069258', 'tblTempVendorCDR_20' ) start [2024-12-21 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069258', 'tblTempVendorCDR_20' ) end [2024-12-21 09:31:17] Production.INFO: ProcessCDR(1,14069258,1,1,2) [2024-12-21 09:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069258', 'tblTempUsageDetail_20' ) start [2024-12-21 09:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069258', 'tblTempUsageDetail_20' ) end [2024-12-21 09:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:31:20] Production.INFO: ==16131== Releasing lock... [2024-12-21 09:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:31:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:32:05 [end_date_ymd] => 2024-12-21 09:32:05 [RateCDR] => 1 ) [2024-12-21 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:32:05' and `end` < '2024-12-21 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:32:18] Production.INFO: count ==557 [2024-12-21 09:32:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:32:05 - End Time 2024-12-21 09:32:05 [2024-12-21 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069263', 'tblTempUsageDetail_20' ) start [2024-12-21 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069263', 'tblTempUsageDetail_20' ) end [2024-12-21 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069263', 'tblTempVendorCDR_20' ) start [2024-12-21 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069263', 'tblTempVendorCDR_20' ) end [2024-12-21 09:32:18] Production.INFO: ProcessCDR(1,14069263,1,1,2) [2024-12-21 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069263', 'tblTempUsageDetail_20' ) start [2024-12-21 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069263', 'tblTempUsageDetail_20' ) end [2024-12-21 09:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:32:21] Production.INFO: ==16202== Releasing lock... [2024-12-21 09:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:32:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:33:06 [end_date_ymd] => 2024-12-21 09:33:06 [RateCDR] => 1 ) [2024-12-21 09:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:33:06' and `end` < '2024-12-21 09:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:33:18] Production.INFO: count ==580 [2024-12-21 09:33:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:33:06 - End Time 2024-12-21 09:33:06 [2024-12-21 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069268', 'tblTempUsageDetail_20' ) start [2024-12-21 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069268', 'tblTempUsageDetail_20' ) end [2024-12-21 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069268', 'tblTempVendorCDR_20' ) start [2024-12-21 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069268', 'tblTempVendorCDR_20' ) end [2024-12-21 09:33:18] Production.INFO: ProcessCDR(1,14069268,1,1,2) [2024-12-21 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069268', 'tblTempUsageDetail_20' ) start [2024-12-21 09:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069268', 'tblTempUsageDetail_20' ) end [2024-12-21 09:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:33:21] Production.INFO: ==16277== Releasing lock... [2024-12-21 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:33:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 09:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:34:04 [end_date_ymd] => 2024-12-21 09:34:04 [RateCDR] => 1 ) [2024-12-21 09:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:34:04' and `end` < '2024-12-21 09:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:34:16] Production.INFO: count ==587 [2024-12-21 09:34:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:34:04 - End Time 2024-12-21 09:34:04 [2024-12-21 09:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069273', 'tblTempUsageDetail_20' ) start [2024-12-21 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069273', 'tblTempUsageDetail_20' ) end [2024-12-21 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069273', 'tblTempVendorCDR_20' ) start [2024-12-21 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069273', 'tblTempVendorCDR_20' ) end [2024-12-21 09:34:17] Production.INFO: ProcessCDR(1,14069273,1,1,2) [2024-12-21 09:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:34:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:34:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069273', 'tblTempUsageDetail_20' ) start [2024-12-21 09:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069273', 'tblTempUsageDetail_20' ) end [2024-12-21 09:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:34:20] Production.INFO: ==16348== Releasing lock... [2024-12-21 09:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:34:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:35:05 [end_date_ymd] => 2024-12-21 09:35:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:35:05' and `end` < '2024-12-21 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-21 09:35:17] Production.INFO: count ==595 [2024-12-21 09:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:35:05 - End Time 2024-12-21 09:35:05 [2024-12-21 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069278', 'tblTempUsageDetail_20' ) start [2024-12-21 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069278', 'tblTempUsageDetail_20' ) end [2024-12-21 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069278', 'tblTempVendorCDR_20' ) start [2024-12-21 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069278', 'tblTempVendorCDR_20' ) end [2024-12-21 09:35:17] Production.INFO: ProcessCDR(1,14069278,1,1,2) [2024-12-21 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069278', 'tblTempUsageDetail_20' ) start [2024-12-21 09:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069278', 'tblTempUsageDetail_20' ) end [2024-12-21 09:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:35:22] Production.INFO: ==16421== Releasing lock... [2024-12-21 09:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:35:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:36:04 [end_date_ymd] => 2024-12-21 09:36:04 [RateCDR] => 1 ) [2024-12-21 09:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:36:04' and `end` < '2024-12-21 09:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:36:17] Production.INFO: count ==609 [2024-12-21 09:36:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:36:04 - End Time 2024-12-21 09:36:04 [2024-12-21 09:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069283', 'tblTempUsageDetail_20' ) start [2024-12-21 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069283', 'tblTempUsageDetail_20' ) end [2024-12-21 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069283', 'tblTempVendorCDR_20' ) start [2024-12-21 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069283', 'tblTempVendorCDR_20' ) end [2024-12-21 09:36:17] Production.INFO: ProcessCDR(1,14069283,1,1,2) [2024-12-21 09:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069283', 'tblTempUsageDetail_20' ) start [2024-12-21 09:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069283', 'tblTempUsageDetail_20' ) end [2024-12-21 09:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:36:20] Production.INFO: ==16498== Releasing lock... [2024-12-21 09:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:36:20] Production.INFO: 33 MB #Memory Used# [2024-12-21 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:37:05 [end_date_ymd] => 2024-12-21 09:37:05 [RateCDR] => 1 ) [2024-12-21 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:37:05' and `end` < '2024-12-21 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:37:17] Production.INFO: count ==633 [2024-12-21 09:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:37:05 - End Time 2024-12-21 09:37:05 [2024-12-21 09:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069288', 'tblTempUsageDetail_20' ) start [2024-12-21 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069288', 'tblTempUsageDetail_20' ) end [2024-12-21 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069288', 'tblTempVendorCDR_20' ) start [2024-12-21 09:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069288', 'tblTempVendorCDR_20' ) end [2024-12-21 09:37:17] Production.INFO: ProcessCDR(1,14069288,1,1,2) [2024-12-21 09:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069288', 'tblTempUsageDetail_20' ) start [2024-12-21 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069288', 'tblTempUsageDetail_20' ) end [2024-12-21 09:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:37:21] Production.INFO: ==16569== Releasing lock... [2024-12-21 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:37:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 09:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:38:04 [end_date_ymd] => 2024-12-21 09:38:04 [RateCDR] => 1 ) [2024-12-21 09: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-21 06:38:04' and `end` < '2024-12-21 09: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-21 09:38:17] Production.INFO: count ==643 [2024-12-21 09:38:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:38:04 - End Time 2024-12-21 09:38:04 [2024-12-21 09:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069293', 'tblTempUsageDetail_20' ) start [2024-12-21 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069293', 'tblTempUsageDetail_20' ) end [2024-12-21 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069293', 'tblTempVendorCDR_20' ) start [2024-12-21 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069293', 'tblTempVendorCDR_20' ) end [2024-12-21 09:38:17] Production.INFO: ProcessCDR(1,14069293,1,1,2) [2024-12-21 09:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069293', 'tblTempUsageDetail_20' ) start [2024-12-21 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069293', 'tblTempUsageDetail_20' ) end [2024-12-21 09:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:38:22] Production.INFO: ==16640== Releasing lock... [2024-12-21 09:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:38:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:39:05 [end_date_ymd] => 2024-12-21 09:39:05 [RateCDR] => 1 ) [2024-12-21 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:39:05' and `end` < '2024-12-21 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:39:17] Production.INFO: count ==650 [2024-12-21 09:39:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:39:05 - End Time 2024-12-21 09:39:05 [2024-12-21 09:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069298', 'tblTempUsageDetail_20' ) start [2024-12-21 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069298', 'tblTempUsageDetail_20' ) end [2024-12-21 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069298', 'tblTempVendorCDR_20' ) start [2024-12-21 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069298', 'tblTempVendorCDR_20' ) end [2024-12-21 09:39:17] Production.INFO: ProcessCDR(1,14069298,1,1,2) [2024-12-21 09:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069298', 'tblTempUsageDetail_20' ) start [2024-12-21 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069298', 'tblTempUsageDetail_20' ) end [2024-12-21 09:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:39:20] Production.INFO: ==16717== Releasing lock... [2024-12-21 09:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:39:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:40:06 [end_date_ymd] => 2024-12-21 09:40:06 [RateCDR] => 1 ) [2024-12-21 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-21 06:40:06' and `end` < '2024-12-21 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-21 09:40:18] Production.INFO: count ==668 [2024-12-21 09:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:40:06 - End Time 2024-12-21 09:40:06 [2024-12-21 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069304', 'tblTempUsageDetail_20' ) start [2024-12-21 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069304', 'tblTempUsageDetail_20' ) end [2024-12-21 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069304', 'tblTempVendorCDR_20' ) start [2024-12-21 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069304', 'tblTempVendorCDR_20' ) end [2024-12-21 09:40:18] Production.INFO: ProcessCDR(1,14069304,1,1,2) [2024-12-21 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069304', 'tblTempUsageDetail_20' ) start [2024-12-21 09:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069304', 'tblTempUsageDetail_20' ) end [2024-12-21 09:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:40:23] Production.INFO: ==16829== Releasing lock... [2024-12-21 09:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:40:23] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:41:04 [end_date_ymd] => 2024-12-21 09:41:04 [RateCDR] => 1 ) [2024-12-21 09:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:41:04' and `end` < '2024-12-21 09:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:41:17] Production.INFO: count ==713 [2024-12-21 09:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:41:04 - End Time 2024-12-21 09:41:04 [2024-12-21 09:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069309', 'tblTempUsageDetail_20' ) start [2024-12-21 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069309', 'tblTempUsageDetail_20' ) end [2024-12-21 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069309', 'tblTempVendorCDR_20' ) start [2024-12-21 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069309', 'tblTempVendorCDR_20' ) end [2024-12-21 09:41:17] Production.INFO: ProcessCDR(1,14069309,1,1,2) [2024-12-21 09:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069309', 'tblTempUsageDetail_20' ) start [2024-12-21 09:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069309', 'tblTempUsageDetail_20' ) end [2024-12-21 09:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:41:20] Production.INFO: ==16904== Releasing lock... [2024-12-21 09:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:41:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-21 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:42:05 [end_date_ymd] => 2024-12-21 09:42:05 [RateCDR] => 1 ) [2024-12-21 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:42:05' and `end` < '2024-12-21 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:42:18] Production.INFO: count ==721 [2024-12-21 09:42:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:42:05 - End Time 2024-12-21 09:42:05 [2024-12-21 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069314', 'tblTempUsageDetail_20' ) start [2024-12-21 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069314', 'tblTempUsageDetail_20' ) end [2024-12-21 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069314', 'tblTempVendorCDR_20' ) start [2024-12-21 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069314', 'tblTempVendorCDR_20' ) end [2024-12-21 09:42:18] Production.INFO: ProcessCDR(1,14069314,1,1,2) [2024-12-21 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069314', 'tblTempUsageDetail_20' ) start [2024-12-21 09:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069314', 'tblTempUsageDetail_20' ) end [2024-12-21 09:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:42:21] Production.INFO: ==16975== Releasing lock... [2024-12-21 09:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:42:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:43:04 [end_date_ymd] => 2024-12-21 09:43:04 [RateCDR] => 1 ) [2024-12-21 09: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-21 06:43:04' and `end` < '2024-12-21 09: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-21 09:43:16] Production.INFO: count ==747 [2024-12-21 09:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:43:04 - End Time 2024-12-21 09:43:04 [2024-12-21 09:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069319', 'tblTempUsageDetail_20' ) start [2024-12-21 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069319', 'tblTempUsageDetail_20' ) end [2024-12-21 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069319', 'tblTempVendorCDR_20' ) start [2024-12-21 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069319', 'tblTempVendorCDR_20' ) end [2024-12-21 09:43:17] Production.INFO: ProcessCDR(1,14069319,1,1,2) [2024-12-21 09:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069319', 'tblTempUsageDetail_20' ) start [2024-12-21 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069319', 'tblTempUsageDetail_20' ) end [2024-12-21 09:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:43:20] Production.INFO: ==17043== Releasing lock... [2024-12-21 09:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:43:20] Production.INFO: 34 MB #Memory Used# [2024-12-21 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:44:05 [end_date_ymd] => 2024-12-21 09:44:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:44:05' and `end` < '2024-12-21 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-21 09:44:17] Production.INFO: count ==757 [2024-12-21 09:44:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:44:05 - End Time 2024-12-21 09:44:05 [2024-12-21 09:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069324', 'tblTempUsageDetail_20' ) start [2024-12-21 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069324', 'tblTempUsageDetail_20' ) end [2024-12-21 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069324', 'tblTempVendorCDR_20' ) start [2024-12-21 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069324', 'tblTempVendorCDR_20' ) end [2024-12-21 09:44:17] Production.INFO: ProcessCDR(1,14069324,1,1,2) [2024-12-21 09:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069324', 'tblTempUsageDetail_20' ) start [2024-12-21 09:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069324', 'tblTempUsageDetail_20' ) end [2024-12-21 09:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:44:20] Production.INFO: ==17116== Releasing lock... [2024-12-21 09:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:44:20] Production.INFO: 34 MB #Memory Used# [2024-12-21 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:45:04 [end_date_ymd] => 2024-12-21 09:45:04 [RateCDR] => 1 ) [2024-12-21 09:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:45:04' and `end` < '2024-12-21 09:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:45:16] Production.INFO: count ==765 [2024-12-21 09:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:45:04 - End Time 2024-12-21 09:45:04 [2024-12-21 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069329', 'tblTempUsageDetail_20' ) start [2024-12-21 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069329', 'tblTempUsageDetail_20' ) end [2024-12-21 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069329', 'tblTempVendorCDR_20' ) start [2024-12-21 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069329', 'tblTempVendorCDR_20' ) end [2024-12-21 09:45:17] Production.INFO: ProcessCDR(1,14069329,1,1,2) [2024-12-21 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069329', 'tblTempUsageDetail_20' ) start [2024-12-21 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069329', 'tblTempUsageDetail_20' ) end [2024-12-21 09:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:45:20] Production.INFO: ==17205== Releasing lock... [2024-12-21 09:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:45:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-21 09:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:46:04 [end_date_ymd] => 2024-12-21 09:46:04 [RateCDR] => 1 ) [2024-12-21 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-21 06:46:04' and `end` < '2024-12-21 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-21 09:46:17] Production.INFO: count ==772 [2024-12-21 09:46:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:46:04 - End Time 2024-12-21 09:46:04 [2024-12-21 09:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069334', 'tblTempUsageDetail_20' ) start [2024-12-21 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069334', 'tblTempUsageDetail_20' ) end [2024-12-21 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069334', 'tblTempVendorCDR_20' ) start [2024-12-21 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069334', 'tblTempVendorCDR_20' ) end [2024-12-21 09:46:17] Production.INFO: ProcessCDR(1,14069334,1,1,2) [2024-12-21 09:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069334', 'tblTempUsageDetail_20' ) start [2024-12-21 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069334', 'tblTempUsageDetail_20' ) end [2024-12-21 09:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:46:21] Production.INFO: ==17304== Releasing lock... [2024-12-21 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:46:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-21 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:47:05 [end_date_ymd] => 2024-12-21 09:47:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:47:05' and `end` < '2024-12-21 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-21 09:47:18] Production.INFO: count ==775 [2024-12-21 09:47:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:47:05 - End Time 2024-12-21 09:47:05 [2024-12-21 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069339', 'tblTempUsageDetail_20' ) start [2024-12-21 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069339', 'tblTempUsageDetail_20' ) end [2024-12-21 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069339', 'tblTempVendorCDR_20' ) start [2024-12-21 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069339', 'tblTempVendorCDR_20' ) end [2024-12-21 09:47:18] Production.INFO: ProcessCDR(1,14069339,1,1,2) [2024-12-21 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069339', 'tblTempUsageDetail_20' ) start [2024-12-21 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069339', 'tblTempUsageDetail_20' ) end [2024-12-21 09:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:47:23] Production.INFO: ==17415== Releasing lock... [2024-12-21 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:47:23] Production.INFO: 34 MB #Memory Used# [2024-12-21 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:48:04 [end_date_ymd] => 2024-12-21 09:48:04 [RateCDR] => 1 ) [2024-12-21 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:48:04' and `end` < '2024-12-21 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-21 09:48:17] Production.INFO: count ==778 [2024-12-21 09:48:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:48:04 - End Time 2024-12-21 09:48:04 [2024-12-21 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069344', 'tblTempUsageDetail_20' ) start [2024-12-21 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069344', 'tblTempUsageDetail_20' ) end [2024-12-21 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069344', 'tblTempVendorCDR_20' ) start [2024-12-21 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069344', 'tblTempVendorCDR_20' ) end [2024-12-21 09:48:17] Production.INFO: ProcessCDR(1,14069344,1,1,2) [2024-12-21 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069344', 'tblTempUsageDetail_20' ) start [2024-12-21 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069344', 'tblTempUsageDetail_20' ) end [2024-12-21 09:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:48:21] Production.INFO: ==17500== Releasing lock... [2024-12-21 09:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:48:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-21 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:49:05 [end_date_ymd] => 2024-12-21 09:49:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:49:05' and `end` < '2024-12-21 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-21 09:49:18] Production.INFO: count ==787 [2024-12-21 09:49:19] Production.ERROR: pbx CDR StartTime 2024-12-21 06:49:05 - End Time 2024-12-21 09:49:05 [2024-12-21 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069349', 'tblTempUsageDetail_20' ) start [2024-12-21 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069349', 'tblTempUsageDetail_20' ) end [2024-12-21 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069349', 'tblTempVendorCDR_20' ) start [2024-12-21 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069349', 'tblTempVendorCDR_20' ) end [2024-12-21 09:49:19] Production.INFO: ProcessCDR(1,14069349,1,1,2) [2024-12-21 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069349', 'tblTempUsageDetail_20' ) start [2024-12-21 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069349', 'tblTempUsageDetail_20' ) end [2024-12-21 09:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:49:23] Production.INFO: ==17580== Releasing lock... [2024-12-21 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:49:23] Production.INFO: 34 MB #Memory Used# [2024-12-21 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:50:05 [end_date_ymd] => 2024-12-21 09:50:05 [RateCDR] => 1 ) [2024-12-21 09:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:50:05' and `end` < '2024-12-21 09:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:50:17] Production.INFO: count ==801 [2024-12-21 09:50:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:50:05 - End Time 2024-12-21 09:50:05 [2024-12-21 09:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069355', 'tblTempUsageDetail_20' ) start [2024-12-21 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069355', 'tblTempUsageDetail_20' ) end [2024-12-21 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069355', 'tblTempVendorCDR_20' ) start [2024-12-21 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069355', 'tblTempVendorCDR_20' ) end [2024-12-21 09:50:17] Production.INFO: ProcessCDR(1,14069355,1,1,2) [2024-12-21 09:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069355', 'tblTempUsageDetail_20' ) start [2024-12-21 09:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069355', 'tblTempUsageDetail_20' ) end [2024-12-21 09:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:50:20] Production.INFO: ==17664== Releasing lock... [2024-12-21 09:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:50:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-21 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:51:05 [end_date_ymd] => 2024-12-21 09:51:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:51:05' and `end` < '2024-12-21 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-21 09:51:17] Production.INFO: count ==842 [2024-12-21 09:51:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:51:05 - End Time 2024-12-21 09:51:05 [2024-12-21 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069360', 'tblTempUsageDetail_20' ) start [2024-12-21 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069360', 'tblTempUsageDetail_20' ) end [2024-12-21 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069360', 'tblTempVendorCDR_20' ) start [2024-12-21 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069360', 'tblTempVendorCDR_20' ) end [2024-12-21 09:51:18] Production.INFO: ProcessCDR(1,14069360,1,1,2) [2024-12-21 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069360', 'tblTempUsageDetail_20' ) start [2024-12-21 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069360', 'tblTempUsageDetail_20' ) end [2024-12-21 09:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:51:22] Production.INFO: ==17741== Releasing lock... [2024-12-21 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:51:22] Production.INFO: 35 MB #Memory Used# [2024-12-21 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:52:05 [end_date_ymd] => 2024-12-21 09:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:52:05' and `end` < '2024-12-21 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-21 09:52:19] Production.INFO: count ==848 [2024-12-21 09:52:19] Production.ERROR: pbx CDR StartTime 2024-12-21 06:52:05 - End Time 2024-12-21 09:52:05 [2024-12-21 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069365', 'tblTempUsageDetail_20' ) start [2024-12-21 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069365', 'tblTempUsageDetail_20' ) end [2024-12-21 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069365', 'tblTempVendorCDR_20' ) start [2024-12-21 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069365', 'tblTempVendorCDR_20' ) end [2024-12-21 09:52:19] Production.INFO: ProcessCDR(1,14069365,1,1,2) [2024-12-21 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069365', 'tblTempUsageDetail_20' ) start [2024-12-21 09:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069365', 'tblTempUsageDetail_20' ) end [2024-12-21 09:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:52:22] Production.INFO: ==17824== Releasing lock... [2024-12-21 09:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:52:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-21 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:53:04 [end_date_ymd] => 2024-12-21 09:53:04 [RateCDR] => 1 ) [2024-12-21 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-21 06:53:04' and `end` < '2024-12-21 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-21 09:53:16] Production.INFO: count ==849 [2024-12-21 09:53:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:53:04 - End Time 2024-12-21 09:53:04 [2024-12-21 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069370', 'tblTempUsageDetail_20' ) start [2024-12-21 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069370', 'tblTempUsageDetail_20' ) end [2024-12-21 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069370', 'tblTempVendorCDR_20' ) start [2024-12-21 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069370', 'tblTempVendorCDR_20' ) end [2024-12-21 09:53:17] Production.INFO: ProcessCDR(1,14069370,1,1,2) [2024-12-21 09:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069370', 'tblTempUsageDetail_20' ) start [2024-12-21 09:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069370', 'tblTempUsageDetail_20' ) end [2024-12-21 09:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:53:20] Production.INFO: ==17903== Releasing lock... [2024-12-21 09:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:53:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-21 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:54:05 [end_date_ymd] => 2024-12-21 09:54:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:54:05' and `end` < '2024-12-21 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-21 09:54:17] Production.INFO: count ==863 [2024-12-21 09:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:54:05 - End Time 2024-12-21 09:54:05 [2024-12-21 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069375', 'tblTempUsageDetail_20' ) start [2024-12-21 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069375', 'tblTempUsageDetail_20' ) end [2024-12-21 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069375', 'tblTempVendorCDR_20' ) start [2024-12-21 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069375', 'tblTempVendorCDR_20' ) end [2024-12-21 09:54:18] Production.INFO: ProcessCDR(1,14069375,1,1,2) [2024-12-21 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069375', 'tblTempUsageDetail_20' ) start [2024-12-21 09:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069375', 'tblTempUsageDetail_20' ) end [2024-12-21 09:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:54:21] Production.INFO: ==17976== Releasing lock... [2024-12-21 09:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:54:21] Production.INFO: 35 MB #Memory Used# [2024-12-21 09:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:55:04 [end_date_ymd] => 2024-12-21 09:55:04 [RateCDR] => 1 ) [2024-12-21 09: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-21 06:55:04' and `end` < '2024-12-21 09: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-21 09:55:16] Production.INFO: count ==867 [2024-12-21 09:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:55:04 - End Time 2024-12-21 09:55:04 [2024-12-21 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069380', 'tblTempUsageDetail_20' ) start [2024-12-21 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069380', 'tblTempUsageDetail_20' ) end [2024-12-21 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069380', 'tblTempVendorCDR_20' ) start [2024-12-21 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069380', 'tblTempVendorCDR_20' ) end [2024-12-21 09:55:17] Production.INFO: ProcessCDR(1,14069380,1,1,2) [2024-12-21 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069380', 'tblTempUsageDetail_20' ) start [2024-12-21 09:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069380', 'tblTempUsageDetail_20' ) end [2024-12-21 09:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:55:20] Production.INFO: ==18059== Releasing lock... [2024-12-21 09:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:55:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-21 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:56:05 [end_date_ymd] => 2024-12-21 09:56:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:56:05' and `end` < '2024-12-21 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-21 09:56:17] Production.INFO: count ==870 [2024-12-21 09:56:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:56:05 - End Time 2024-12-21 09:56:05 [2024-12-21 09:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069385', 'tblTempUsageDetail_20' ) start [2024-12-21 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069385', 'tblTempUsageDetail_20' ) end [2024-12-21 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069385', 'tblTempVendorCDR_20' ) start [2024-12-21 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069385', 'tblTempVendorCDR_20' ) end [2024-12-21 09:56:17] Production.INFO: ProcessCDR(1,14069385,1,1,2) [2024-12-21 09:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069385', 'tblTempUsageDetail_20' ) start [2024-12-21 09:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069385', 'tblTempUsageDetail_20' ) end [2024-12-21 09:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:56:20] Production.INFO: ==18180== Releasing lock... [2024-12-21 09:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:56:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-21 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:57:04 [end_date_ymd] => 2024-12-21 09:57:04 [RateCDR] => 1 ) [2024-12-21 09:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:57:04' and `end` < '2024-12-21 09:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:57:16] Production.INFO: count ==883 [2024-12-21 09:57:16] Production.ERROR: pbx CDR StartTime 2024-12-21 06:57:04 - End Time 2024-12-21 09:57:04 [2024-12-21 09:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069390', 'tblTempUsageDetail_20' ) start [2024-12-21 09:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069390', 'tblTempUsageDetail_20' ) end [2024-12-21 09:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069390', 'tblTempVendorCDR_20' ) start [2024-12-21 09:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069390', 'tblTempVendorCDR_20' ) end [2024-12-21 09:57:16] Production.INFO: ProcessCDR(1,14069390,1,1,2) [2024-12-21 09:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069390', 'tblTempUsageDetail_20' ) start [2024-12-21 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069390', 'tblTempUsageDetail_20' ) end [2024-12-21 09:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:57:20] Production.INFO: ==18255== Releasing lock... [2024-12-21 09:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:57:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-21 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:58:05 [end_date_ymd] => 2024-12-21 09:58:05 [RateCDR] => 1 ) [2024-12-21 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 06:58:05' and `end` < '2024-12-21 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 09:58:17] Production.INFO: count ==896 [2024-12-21 09:58:17] Production.ERROR: pbx CDR StartTime 2024-12-21 06:58:05 - End Time 2024-12-21 09:58:05 [2024-12-21 09:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069395', 'tblTempUsageDetail_20' ) start [2024-12-21 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069395', 'tblTempUsageDetail_20' ) end [2024-12-21 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069395', 'tblTempVendorCDR_20' ) start [2024-12-21 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069395', 'tblTempVendorCDR_20' ) end [2024-12-21 09:58:17] Production.INFO: ProcessCDR(1,14069395,1,1,2) [2024-12-21 09:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069395', 'tblTempUsageDetail_20' ) start [2024-12-21 09:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069395', 'tblTempUsageDetail_20' ) end [2024-12-21 09:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:58:20] Production.INFO: ==18332== Releasing lock... [2024-12-21 09:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:58:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-21 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 06:59:05 [end_date_ymd] => 2024-12-21 09:59:05 [RateCDR] => 1 ) [2024-12-21 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-21 06:59:05' and `end` < '2024-12-21 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-21 09:59:18] Production.INFO: count ==897 [2024-12-21 09:59:18] Production.ERROR: pbx CDR StartTime 2024-12-21 06:59:05 - End Time 2024-12-21 09:59:05 [2024-12-21 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069400', 'tblTempUsageDetail_20' ) start [2024-12-21 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069400', 'tblTempUsageDetail_20' ) end [2024-12-21 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069400', 'tblTempVendorCDR_20' ) start [2024-12-21 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069400', 'tblTempVendorCDR_20' ) end [2024-12-21 09:59:18] Production.INFO: ProcessCDR(1,14069400,1,1,2) [2024-12-21 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069400', 'tblTempUsageDetail_20' ) start [2024-12-21 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069400', 'tblTempUsageDetail_20' ) end [2024-12-21 09:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 09:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 09:59:23] Production.INFO: ==18410== Releasing lock... [2024-12-21 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 09:59:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-21 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:00:05 [end_date_ymd] => 2024-12-21 10:00:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:00:05' and `end` < '2024-12-21 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-21 10:00:17] Production.INFO: count ==910 [2024-12-21 10:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:00:05 - End Time 2024-12-21 10:00:05 [2024-12-21 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069404', 'tblTempUsageDetail_20' ) start [2024-12-21 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069404', 'tblTempUsageDetail_20' ) end [2024-12-21 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069404', 'tblTempVendorCDR_20' ) start [2024-12-21 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069404', 'tblTempVendorCDR_20' ) end [2024-12-21 10:00:18] Production.INFO: ProcessCDR(1,14069404,1,1,2) [2024-12-21 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069404', 'tblTempUsageDetail_20' ) start [2024-12-21 10:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069404', 'tblTempUsageDetail_20' ) end [2024-12-21 10:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:00:21] Production.INFO: ==18485== Releasing lock... [2024-12-21 10:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:00:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-21 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:01:05 [end_date_ymd] => 2024-12-21 10:01:05 [RateCDR] => 1 ) [2024-12-21 10: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-21 07:01:05' and `end` < '2024-12-21 10: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-21 10:01:17] Production.INFO: count ==942 [2024-12-21 10:01:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:01:05 - End Time 2024-12-21 10:01:05 [2024-12-21 10:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069411', 'tblTempUsageDetail_20' ) start [2024-12-21 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069411', 'tblTempUsageDetail_20' ) end [2024-12-21 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069411', 'tblTempVendorCDR_20' ) start [2024-12-21 10:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069411', 'tblTempVendorCDR_20' ) end [2024-12-21 10:01:18] Production.INFO: ProcessCDR(1,14069411,1,1,2) [2024-12-21 10:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069411', 'tblTempUsageDetail_20' ) start [2024-12-21 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069411', 'tblTempUsageDetail_20' ) end [2024-12-21 10:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:01:21] Production.INFO: ==18584== Releasing lock... [2024-12-21 10:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:01:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:02:05 [end_date_ymd] => 2024-12-21 10:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:02:05' and `end` < '2024-12-21 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-21 10:02:17] Production.INFO: count ==942 [2024-12-21 10:02:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:02:05 - End Time 2024-12-21 10:02:05 [2024-12-21 10:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069416', 'tblTempUsageDetail_20' ) start [2024-12-21 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069416', 'tblTempUsageDetail_20' ) end [2024-12-21 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069416', 'tblTempVendorCDR_20' ) start [2024-12-21 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069416', 'tblTempVendorCDR_20' ) end [2024-12-21 10:02:17] Production.INFO: ProcessCDR(1,14069416,1,1,2) [2024-12-21 10:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069416', 'tblTempUsageDetail_20' ) start [2024-12-21 10:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069416', 'tblTempUsageDetail_20' ) end [2024-12-21 10:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:02:20] Production.INFO: ==18667== Releasing lock... [2024-12-21 10:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:02:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:03:05 [end_date_ymd] => 2024-12-21 10:03:05 [RateCDR] => 1 ) [2024-12-21 10: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-21 07:03:05' and `end` < '2024-12-21 10: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-21 10:03:18] Production.INFO: count ==948 [2024-12-21 10:03:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:03:05 - End Time 2024-12-21 10:03:05 [2024-12-21 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069418', 'tblTempUsageDetail_20' ) start [2024-12-21 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069418', 'tblTempUsageDetail_20' ) end [2024-12-21 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069418', 'tblTempVendorCDR_20' ) start [2024-12-21 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069418', 'tblTempVendorCDR_20' ) end [2024-12-21 10:03:18] Production.INFO: ProcessCDR(1,14069418,1,1,2) [2024-12-21 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069418', 'tblTempUsageDetail_20' ) start [2024-12-21 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069418', 'tblTempUsageDetail_20' ) end [2024-12-21 10:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:03:21] Production.INFO: ==18744== Releasing lock... [2024-12-21 10:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:03:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 10:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:04:04 [end_date_ymd] => 2024-12-21 10:04:04 [RateCDR] => 1 ) [2024-12-21 10:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:04:04' and `end` < '2024-12-21 10:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:04:16] Production.INFO: count ==957 [2024-12-21 10:04:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:04:04 - End Time 2024-12-21 10:04:04 [2024-12-21 10:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069426', 'tblTempUsageDetail_20' ) start [2024-12-21 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069426', 'tblTempUsageDetail_20' ) end [2024-12-21 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069426', 'tblTempVendorCDR_20' ) start [2024-12-21 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069426', 'tblTempVendorCDR_20' ) end [2024-12-21 10:04:17] Production.INFO: ProcessCDR(1,14069426,1,1,2) [2024-12-21 10:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069426', 'tblTempUsageDetail_20' ) start [2024-12-21 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069426', 'tblTempUsageDetail_20' ) end [2024-12-21 10:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:04:21] Production.INFO: ==18820== Releasing lock... [2024-12-21 10:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:04:21] Production.INFO: 36 MB #Memory Used# [2024-12-21 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:05:05 [end_date_ymd] => 2024-12-21 10:05:05 [RateCDR] => 1 ) [2024-12-21 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:05:05' and `end` < '2024-12-21 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:05:17] Production.INFO: count ==980 [2024-12-21 10:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:05:05 - End Time 2024-12-21 10:05:05 [2024-12-21 10:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069431', 'tblTempUsageDetail_20' ) start [2024-12-21 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069431', 'tblTempUsageDetail_20' ) end [2024-12-21 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069431', 'tblTempVendorCDR_20' ) start [2024-12-21 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069431', 'tblTempVendorCDR_20' ) end [2024-12-21 10:05:17] Production.INFO: ProcessCDR(1,14069431,1,1,2) [2024-12-21 10:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069431', 'tblTempUsageDetail_20' ) start [2024-12-21 10:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069431', 'tblTempUsageDetail_20' ) end [2024-12-21 10:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:05:20] Production.INFO: ==18900== Releasing lock... [2024-12-21 10:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:05:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 10:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:06:04 [end_date_ymd] => 2024-12-21 10:06:04 [RateCDR] => 1 ) [2024-12-21 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-21 07:06:04' and `end` < '2024-12-21 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-21 10:06:17] Production.INFO: count ==993 [2024-12-21 10:06:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:06:04 - End Time 2024-12-21 10:06:04 [2024-12-21 10:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069436', 'tblTempUsageDetail_20' ) start [2024-12-21 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069436', 'tblTempUsageDetail_20' ) end [2024-12-21 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069436', 'tblTempVendorCDR_20' ) start [2024-12-21 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069436', 'tblTempVendorCDR_20' ) end [2024-12-21 10:06:17] Production.INFO: ProcessCDR(1,14069436,1,1,2) [2024-12-21 10:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069436', 'tblTempUsageDetail_20' ) start [2024-12-21 10:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069436', 'tblTempUsageDetail_20' ) end [2024-12-21 10:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:06:21] Production.INFO: ==18972== Releasing lock... [2024-12-21 10:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:06:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:07:04 [end_date_ymd] => 2024-12-21 10:07:04 [RateCDR] => 1 ) [2024-12-21 10:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:07:04' and `end` < '2024-12-21 10:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:07:19] Production.INFO: count ==1002 [2024-12-21 10:07:19] Production.ERROR: pbx CDR StartTime 2024-12-21 07:07:04 - End Time 2024-12-21 10:07:04 [2024-12-21 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069441', 'tblTempUsageDetail_20' ) start [2024-12-21 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069441', 'tblTempUsageDetail_20' ) end [2024-12-21 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069441', 'tblTempVendorCDR_20' ) start [2024-12-21 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069441', 'tblTempVendorCDR_20' ) end [2024-12-21 10:07:19] Production.INFO: ProcessCDR(1,14069441,1,1,2) [2024-12-21 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069441', 'tblTempUsageDetail_20' ) start [2024-12-21 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069441', 'tblTempUsageDetail_20' ) end [2024-12-21 10:07:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:07:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:07:24] Production.INFO: ==19053== Releasing lock... [2024-12-21 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:07:24] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:08:05 [end_date_ymd] => 2024-12-21 10:08:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:08:05' and `end` < '2024-12-21 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-21 10:08:17] Production.INFO: count ==1016 [2024-12-21 10:08:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:08:05 - End Time 2024-12-21 10:08:05 [2024-12-21 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069446', 'tblTempUsageDetail_20' ) start [2024-12-21 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069446', 'tblTempUsageDetail_20' ) end [2024-12-21 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069446', 'tblTempVendorCDR_20' ) start [2024-12-21 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069446', 'tblTempVendorCDR_20' ) end [2024-12-21 10:08:18] Production.INFO: ProcessCDR(1,14069446,1,1,2) [2024-12-21 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069446', 'tblTempUsageDetail_20' ) start [2024-12-21 10:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069446', 'tblTempUsageDetail_20' ) end [2024-12-21 10:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:08:21] Production.INFO: ==19132== Releasing lock... [2024-12-21 10:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:08:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:09:05 [end_date_ymd] => 2024-12-21 10:09:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:09:05' and `end` < '2024-12-21 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-21 10:09:18] Production.INFO: count ==1017 [2024-12-21 10:09:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:09:05 - End Time 2024-12-21 10:09:05 [2024-12-21 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069451', 'tblTempUsageDetail_20' ) start [2024-12-21 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069451', 'tblTempUsageDetail_20' ) end [2024-12-21 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069451', 'tblTempVendorCDR_20' ) start [2024-12-21 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069451', 'tblTempVendorCDR_20' ) end [2024-12-21 10:09:18] Production.INFO: ProcessCDR(1,14069451,1,1,2) [2024-12-21 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069451', 'tblTempUsageDetail_20' ) start [2024-12-21 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069451', 'tblTempUsageDetail_20' ) end [2024-12-21 10:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:09:23] Production.INFO: ==19211== Releasing lock... [2024-12-21 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:09:23] Production.INFO: 36 MB #Memory Used# [2024-12-21 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:10:05 [end_date_ymd] => 2024-12-21 10:10:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:10:05' and `end` < '2024-12-21 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-21 10:10:18] Production.INFO: count ==1023 [2024-12-21 10:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:10:05 - End Time 2024-12-21 10:10:05 [2024-12-21 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069457', 'tblTempUsageDetail_20' ) start [2024-12-21 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069457', 'tblTempUsageDetail_20' ) end [2024-12-21 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069457', 'tblTempVendorCDR_20' ) start [2024-12-21 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069457', 'tblTempVendorCDR_20' ) end [2024-12-21 10:10:18] Production.INFO: ProcessCDR(1,14069457,1,1,2) [2024-12-21 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069457', 'tblTempUsageDetail_20' ) start [2024-12-21 10:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069457', 'tblTempUsageDetail_20' ) end [2024-12-21 10:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:10:21] Production.INFO: ==19298== Releasing lock... [2024-12-21 10:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:10:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 10:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:11:04 [end_date_ymd] => 2024-12-21 10:11:04 [RateCDR] => 1 ) [2024-12-21 10:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:11:04' and `end` < '2024-12-21 10:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:11:16] Production.INFO: count ==1034 [2024-12-21 10:11:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:11:04 - End Time 2024-12-21 10:11:04 [2024-12-21 10:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069462', 'tblTempUsageDetail_20' ) start [2024-12-21 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069462', 'tblTempUsageDetail_20' ) end [2024-12-21 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069462', 'tblTempVendorCDR_20' ) start [2024-12-21 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069462', 'tblTempVendorCDR_20' ) end [2024-12-21 10:11:17] Production.INFO: ProcessCDR(1,14069462,1,1,2) [2024-12-21 10:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069462', 'tblTempUsageDetail_20' ) start [2024-12-21 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069462', 'tblTempUsageDetail_20' ) end [2024-12-21 10:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:11:21] Production.INFO: ==19377== Releasing lock... [2024-12-21 10:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:11:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-21 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:12:05 [end_date_ymd] => 2024-12-21 10:12:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:12:05' and `end` < '2024-12-21 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-21 10:12:17] Production.INFO: count ==1040 [2024-12-21 10:12:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:12:05 - End Time 2024-12-21 10:12:05 [2024-12-21 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069467', 'tblTempUsageDetail_20' ) start [2024-12-21 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069467', 'tblTempUsageDetail_20' ) end [2024-12-21 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069467', 'tblTempVendorCDR_20' ) start [2024-12-21 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069467', 'tblTempVendorCDR_20' ) end [2024-12-21 10:12:18] Production.INFO: ProcessCDR(1,14069467,1,1,2) [2024-12-21 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069467', 'tblTempUsageDetail_20' ) start [2024-12-21 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069467', 'tblTempUsageDetail_20' ) end [2024-12-21 10:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:12:21] Production.INFO: ==19492== Releasing lock... [2024-12-21 10:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:12:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:13:05 [end_date_ymd] => 2024-12-21 10:13:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:13:05' and `end` < '2024-12-21 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-21 10:13:18] Production.INFO: count ==1046 [2024-12-21 10:13:19] Production.ERROR: pbx CDR StartTime 2024-12-21 07:13:05 - End Time 2024-12-21 10:13:05 [2024-12-21 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069472', 'tblTempUsageDetail_20' ) start [2024-12-21 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069472', 'tblTempUsageDetail_20' ) end [2024-12-21 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069472', 'tblTempVendorCDR_20' ) start [2024-12-21 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069472', 'tblTempVendorCDR_20' ) end [2024-12-21 10:13:19] Production.INFO: ProcessCDR(1,14069472,1,1,2) [2024-12-21 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069472', 'tblTempUsageDetail_20' ) start [2024-12-21 10:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069472', 'tblTempUsageDetail_20' ) end [2024-12-21 10:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:13:22] Production.INFO: ==19571== Releasing lock... [2024-12-21 10:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:13:22] Production.INFO: 37 MB #Memory Used# [2024-12-21 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:14:05 [end_date_ymd] => 2024-12-21 10:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:14:05' and `end` < '2024-12-21 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-21 10:14:17] Production.INFO: count ==1053 [2024-12-21 10:14:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:14:05 - End Time 2024-12-21 10:14:05 [2024-12-21 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069477', 'tblTempUsageDetail_20' ) start [2024-12-21 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069477', 'tblTempUsageDetail_20' ) end [2024-12-21 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069477', 'tblTempVendorCDR_20' ) start [2024-12-21 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069477', 'tblTempVendorCDR_20' ) end [2024-12-21 10:14:18] Production.INFO: ProcessCDR(1,14069477,1,1,2) [2024-12-21 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069477', 'tblTempUsageDetail_20' ) start [2024-12-21 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069477', 'tblTempUsageDetail_20' ) end [2024-12-21 10:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:14:22] Production.INFO: ==19652== Releasing lock... [2024-12-21 10:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:14:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:15:05 [end_date_ymd] => 2024-12-21 10:15:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:15:05' and `end` < '2024-12-21 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-21 10:15:17] Production.INFO: count ==1056 [2024-12-21 10:15:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:15:05 - End Time 2024-12-21 10:15:05 [2024-12-21 10:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069482', 'tblTempUsageDetail_20' ) start [2024-12-21 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069482', 'tblTempUsageDetail_20' ) end [2024-12-21 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069482', 'tblTempVendorCDR_20' ) start [2024-12-21 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069482', 'tblTempVendorCDR_20' ) end [2024-12-21 10:15:17] Production.INFO: ProcessCDR(1,14069482,1,1,2) [2024-12-21 10:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069482', 'tblTempUsageDetail_20' ) start [2024-12-21 10:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069482', 'tblTempUsageDetail_20' ) end [2024-12-21 10:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:15:20] Production.INFO: ==19730== Releasing lock... [2024-12-21 10:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:15:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-21 10:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:16:04 [end_date_ymd] => 2024-12-21 10:16:04 [RateCDR] => 1 ) [2024-12-21 10: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-21 07:16:04' and `end` < '2024-12-21 10:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:16:16] Production.INFO: count ==1067 [2024-12-21 10:16:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:16:04 - End Time 2024-12-21 10:16:04 [2024-12-21 10:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069487', 'tblTempUsageDetail_20' ) start [2024-12-21 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069487', 'tblTempUsageDetail_20' ) end [2024-12-21 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069487', 'tblTempVendorCDR_20' ) start [2024-12-21 10:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069487', 'tblTempVendorCDR_20' ) end [2024-12-21 10:16:17] Production.INFO: ProcessCDR(1,14069487,1,1,2) [2024-12-21 10:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069487', 'tblTempUsageDetail_20' ) start [2024-12-21 10:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069487', 'tblTempUsageDetail_20' ) end [2024-12-21 10:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:16:20] Production.INFO: ==19807== Releasing lock... [2024-12-21 10:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:16:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-21 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:17:05 [end_date_ymd] => 2024-12-21 10:17:05 [RateCDR] => 1 ) [2024-12-21 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:17:05' and `end` < '2024-12-21 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:17:17] Production.INFO: count ==1067 [2024-12-21 10:17:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:17:05 - End Time 2024-12-21 10:17:05 [2024-12-21 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069492', 'tblTempUsageDetail_20' ) start [2024-12-21 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069492', 'tblTempUsageDetail_20' ) end [2024-12-21 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069492', 'tblTempVendorCDR_20' ) start [2024-12-21 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069492', 'tblTempVendorCDR_20' ) end [2024-12-21 10:17:18] Production.INFO: ProcessCDR(1,14069492,1,1,2) [2024-12-21 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069492', 'tblTempUsageDetail_20' ) start [2024-12-21 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069492', 'tblTempUsageDetail_20' ) end [2024-12-21 10:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:17:21] Production.INFO: ==19880== Releasing lock... [2024-12-21 10:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:17:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-21 10:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:18:04 [end_date_ymd] => 2024-12-21 10:18:04 [RateCDR] => 1 ) [2024-12-21 10: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-21 07:18:04' and `end` < '2024-12-21 10: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-21 10:18:16] Production.INFO: count ==1068 [2024-12-21 10:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:18:04 - End Time 2024-12-21 10:18:04 [2024-12-21 10:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069497', 'tblTempUsageDetail_20' ) start [2024-12-21 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069497', 'tblTempUsageDetail_20' ) end [2024-12-21 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069497', 'tblTempVendorCDR_20' ) start [2024-12-21 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069497', 'tblTempVendorCDR_20' ) end [2024-12-21 10:18:17] Production.INFO: ProcessCDR(1,14069497,1,1,2) [2024-12-21 10:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069497', 'tblTempUsageDetail_20' ) start [2024-12-21 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069497', 'tblTempUsageDetail_20' ) end [2024-12-21 10:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:18:21] Production.INFO: ==19959== Releasing lock... [2024-12-21 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:18:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:19:05 [end_date_ymd] => 2024-12-21 10:19:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:19:05' and `end` < '2024-12-21 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-21 10:19:17] Production.INFO: count ==1068 [2024-12-21 10:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:19:05 - End Time 2024-12-21 10:19:05 [2024-12-21 10:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069502', 'tblTempUsageDetail_20' ) start [2024-12-21 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069502', 'tblTempUsageDetail_20' ) end [2024-12-21 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069502', 'tblTempVendorCDR_20' ) start [2024-12-21 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069502', 'tblTempVendorCDR_20' ) end [2024-12-21 10:19:17] Production.INFO: ProcessCDR(1,14069502,1,1,2) [2024-12-21 10:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069502', 'tblTempUsageDetail_20' ) start [2024-12-21 10:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069502', 'tblTempUsageDetail_20' ) end [2024-12-21 10:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:19:20] Production.INFO: ==20030== Releasing lock... [2024-12-21 10:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:19:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:20:06 [end_date_ymd] => 2024-12-21 10:20:06 [RateCDR] => 1 ) [2024-12-21 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:20:06' and `end` < '2024-12-21 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:20:18] Production.INFO: count ==1079 [2024-12-21 10:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:20:06 - End Time 2024-12-21 10:20:06 [2024-12-21 10:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069508', 'tblTempUsageDetail_20' ) start [2024-12-21 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069508', 'tblTempUsageDetail_20' ) end [2024-12-21 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069508', 'tblTempVendorCDR_20' ) start [2024-12-21 10:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069508', 'tblTempVendorCDR_20' ) end [2024-12-21 10:20:18] Production.INFO: ProcessCDR(1,14069508,1,1,2) [2024-12-21 10:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069508', 'tblTempUsageDetail_20' ) start [2024-12-21 10:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069508', 'tblTempUsageDetail_20' ) end [2024-12-21 10:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:20:21] Production.INFO: ==20118== Releasing lock... [2024-12-21 10:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:20:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-21 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:21:05 [end_date_ymd] => 2024-12-21 10:21:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:21:05' and `end` < '2024-12-21 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-21 10:21:17] Production.INFO: count ==1079 [2024-12-21 10:21:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:21:05 - End Time 2024-12-21 10:21:05 [2024-12-21 10:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069513', 'tblTempUsageDetail_20' ) start [2024-12-21 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069513', 'tblTempUsageDetail_20' ) end [2024-12-21 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069513', 'tblTempVendorCDR_20' ) start [2024-12-21 10:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069513', 'tblTempVendorCDR_20' ) end [2024-12-21 10:21:17] Production.INFO: ProcessCDR(1,14069513,1,1,2) [2024-12-21 10:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069513', 'tblTempUsageDetail_20' ) start [2024-12-21 10:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069513', 'tblTempUsageDetail_20' ) end [2024-12-21 10:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:21:20] Production.INFO: ==20199== Releasing lock... [2024-12-21 10:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:21:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-21 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:22:05 [end_date_ymd] => 2024-12-21 10:22:05 [RateCDR] => 1 ) [2024-12-21 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:22:05' and `end` < '2024-12-21 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:22:17] Production.INFO: count ==1082 [2024-12-21 10:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:22:05 - End Time 2024-12-21 10:22:05 [2024-12-21 10:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069518', 'tblTempUsageDetail_20' ) start [2024-12-21 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069518', 'tblTempUsageDetail_20' ) end [2024-12-21 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069518', 'tblTempVendorCDR_20' ) start [2024-12-21 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069518', 'tblTempVendorCDR_20' ) end [2024-12-21 10:22:17] Production.INFO: ProcessCDR(1,14069518,1,1,2) [2024-12-21 10:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069518', 'tblTempUsageDetail_20' ) start [2024-12-21 10:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069518', 'tblTempUsageDetail_20' ) end [2024-12-21 10:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:22:22] Production.INFO: ==20282== Releasing lock... [2024-12-21 10:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:22:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:23:04 [end_date_ymd] => 2024-12-21 10:23:04 [RateCDR] => 1 ) [2024-12-21 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-21 07:23:04' and `end` < '2024-12-21 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-21 10:23:17] Production.INFO: count ==1082 [2024-12-21 10:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:23:04 - End Time 2024-12-21 10:23:04 [2024-12-21 10:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069523', 'tblTempUsageDetail_20' ) start [2024-12-21 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069523', 'tblTempUsageDetail_20' ) end [2024-12-21 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069523', 'tblTempVendorCDR_20' ) start [2024-12-21 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069523', 'tblTempVendorCDR_20' ) end [2024-12-21 10:23:17] Production.INFO: ProcessCDR(1,14069523,1,1,2) [2024-12-21 10:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069523', 'tblTempUsageDetail_20' ) start [2024-12-21 10:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069523', 'tblTempUsageDetail_20' ) end [2024-12-21 10:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:23:20] Production.INFO: ==20391== Releasing lock... [2024-12-21 10:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:23:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 10:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:24:04 [end_date_ymd] => 2024-12-21 10:24:04 [RateCDR] => 1 ) [2024-12-21 10: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-21 07:24:04' and `end` < '2024-12-21 10: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-21 10:24:17] Production.INFO: count ==1082 [2024-12-21 10:24:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:24:04 - End Time 2024-12-21 10:24:04 [2024-12-21 10:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069528', 'tblTempUsageDetail_20' ) start [2024-12-21 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069528', 'tblTempUsageDetail_20' ) end [2024-12-21 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069528', 'tblTempVendorCDR_20' ) start [2024-12-21 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069528', 'tblTempVendorCDR_20' ) end [2024-12-21 10:24:17] Production.INFO: ProcessCDR(1,14069528,1,1,2) [2024-12-21 10:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069528', 'tblTempUsageDetail_20' ) start [2024-12-21 10:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069528', 'tblTempUsageDetail_20' ) end [2024-12-21 10:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:24:20] Production.INFO: ==20496== Releasing lock... [2024-12-21 10:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:24:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:25:05 [end_date_ymd] => 2024-12-21 10:25:05 [RateCDR] => 1 ) [2024-12-21 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:25:05' and `end` < '2024-12-21 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:25:17] Production.INFO: count ==1082 [2024-12-21 10:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:25:05 - End Time 2024-12-21 10:25:05 [2024-12-21 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069533', 'tblTempUsageDetail_20' ) start [2024-12-21 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069533', 'tblTempUsageDetail_20' ) end [2024-12-21 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069533', 'tblTempVendorCDR_20' ) start [2024-12-21 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069533', 'tblTempVendorCDR_20' ) end [2024-12-21 10:25:17] Production.INFO: ProcessCDR(1,14069533,1,1,2) [2024-12-21 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069533', 'tblTempUsageDetail_20' ) start [2024-12-21 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069533', 'tblTempUsageDetail_20' ) end [2024-12-21 10:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:25:20] Production.INFO: ==20604== Releasing lock... [2024-12-21 10:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:25:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 10:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:26:04 [end_date_ymd] => 2024-12-21 10:26:04 [RateCDR] => 1 ) [2024-12-21 10: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-21 07:26:04' and `end` < '2024-12-21 10: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-21 10:26:18] Production.INFO: count ==1088 [2024-12-21 10:26:19] Production.ERROR: pbx CDR StartTime 2024-12-21 07:26:04 - End Time 2024-12-21 10:26:04 [2024-12-21 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069538', 'tblTempUsageDetail_20' ) start [2024-12-21 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069538', 'tblTempUsageDetail_20' ) end [2024-12-21 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069538', 'tblTempVendorCDR_20' ) start [2024-12-21 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069538', 'tblTempVendorCDR_20' ) end [2024-12-21 10:26:19] Production.INFO: ProcessCDR(1,14069538,1,1,2) [2024-12-21 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069538', 'tblTempUsageDetail_20' ) start [2024-12-21 10:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069538', 'tblTempUsageDetail_20' ) end [2024-12-21 10:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:26:22] Production.INFO: ==20708== Releasing lock... [2024-12-21 10:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:26:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-21 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:27:05 [end_date_ymd] => 2024-12-21 10:27:05 [RateCDR] => 1 ) [2024-12-21 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:27:05' and `end` < '2024-12-21 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:27:18] Production.INFO: count ==1101 [2024-12-21 10:27:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:27:05 - End Time 2024-12-21 10:27:05 [2024-12-21 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069543', 'tblTempUsageDetail_20' ) start [2024-12-21 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069543', 'tblTempUsageDetail_20' ) end [2024-12-21 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069543', 'tblTempVendorCDR_20' ) start [2024-12-21 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069543', 'tblTempVendorCDR_20' ) end [2024-12-21 10:27:18] Production.INFO: ProcessCDR(1,14069543,1,1,2) [2024-12-21 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069543', 'tblTempUsageDetail_20' ) start [2024-12-21 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069543', 'tblTempUsageDetail_20' ) end [2024-12-21 10:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:27:21] Production.INFO: ==20850== Releasing lock... [2024-12-21 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:27:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 10:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:28:04 [end_date_ymd] => 2024-12-21 10:28:04 [RateCDR] => 1 ) [2024-12-21 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-21 07:28:04' and `end` < '2024-12-21 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-21 10:28:16] Production.INFO: count ==1108 [2024-12-21 10:28:16] Production.ERROR: pbx CDR StartTime 2024-12-21 07:28:04 - End Time 2024-12-21 10:28:04 [2024-12-21 10:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069548', 'tblTempUsageDetail_20' ) start [2024-12-21 10:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069548', 'tblTempUsageDetail_20' ) end [2024-12-21 10:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069548', 'tblTempVendorCDR_20' ) start [2024-12-21 10:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069548', 'tblTempVendorCDR_20' ) end [2024-12-21 10:28:16] Production.INFO: ProcessCDR(1,14069548,1,1,2) [2024-12-21 10:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:28:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069548', 'tblTempUsageDetail_20' ) start [2024-12-21 10:28:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069548', 'tblTempUsageDetail_20' ) end [2024-12-21 10:28:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:28:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:28:19] Production.INFO: ==20956== Releasing lock... [2024-12-21 10:28:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:28:19] Production.INFO: 36.75 MB #Memory Used# [2024-12-21 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:29:04 [end_date_ymd] => 2024-12-21 10:29:04 [RateCDR] => 1 ) [2024-12-21 10: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-21 07:29:04' and `end` < '2024-12-21 10: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-21 10:29:18] Production.INFO: count ==1112 [2024-12-21 10:29:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:29:04 - End Time 2024-12-21 10:29:04 [2024-12-21 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069553', 'tblTempUsageDetail_20' ) start [2024-12-21 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069553', 'tblTempUsageDetail_20' ) end [2024-12-21 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069553', 'tblTempVendorCDR_20' ) start [2024-12-21 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069553', 'tblTempVendorCDR_20' ) end [2024-12-21 10:29:18] Production.INFO: ProcessCDR(1,14069553,1,1,2) [2024-12-21 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069553', 'tblTempUsageDetail_20' ) start [2024-12-21 10:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069553', 'tblTempUsageDetail_20' ) end [2024-12-21 10:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:29:21] Production.INFO: ==21059== Releasing lock... [2024-12-21 10:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:29:21] Production.INFO: 37 MB #Memory Used# [2024-12-21 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:30:05 [end_date_ymd] => 2024-12-21 10:30:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:30:05' and `end` < '2024-12-21 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-21 10:30:17] Production.INFO: count ==1127 [2024-12-21 10:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:30:05 - End Time 2024-12-21 10:30:05 [2024-12-21 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069559', 'tblTempUsageDetail_20' ) start [2024-12-21 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069559', 'tblTempUsageDetail_20' ) end [2024-12-21 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069559', 'tblTempVendorCDR_20' ) start [2024-12-21 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069559', 'tblTempVendorCDR_20' ) end [2024-12-21 10:30:18] Production.INFO: ProcessCDR(1,14069559,1,1,2) [2024-12-21 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069559', 'tblTempUsageDetail_20' ) start [2024-12-21 10:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069559', 'tblTempUsageDetail_20' ) end [2024-12-21 10:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:30:22] Production.INFO: ==21160== Releasing lock... [2024-12-21 10:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:30:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-21 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:31:05 [end_date_ymd] => 2024-12-21 10:31:05 [RateCDR] => 1 ) [2024-12-21 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:31:05' and `end` < '2024-12-21 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:31:17] Production.INFO: count ==1140 [2024-12-21 10:31:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:31:05 - End Time 2024-12-21 10:31:05 [2024-12-21 10:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069564', 'tblTempUsageDetail_20' ) start [2024-12-21 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069564', 'tblTempUsageDetail_20' ) end [2024-12-21 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069564', 'tblTempVendorCDR_20' ) start [2024-12-21 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069564', 'tblTempVendorCDR_20' ) end [2024-12-21 10:31:17] Production.INFO: ProcessCDR(1,14069564,1,1,2) [2024-12-21 10:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069564', 'tblTempUsageDetail_20' ) start [2024-12-21 10:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069564', 'tblTempUsageDetail_20' ) end [2024-12-21 10:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:31:20] Production.INFO: ==21263== Releasing lock... [2024-12-21 10:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:31:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-21 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:32:05 [end_date_ymd] => 2024-12-21 10:32:05 [RateCDR] => 1 ) [2024-12-21 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:32:05' and `end` < '2024-12-21 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:32:17] Production.INFO: count ==1150 [2024-12-21 10:32:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:32:05 - End Time 2024-12-21 10:32:05 [2024-12-21 10:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069569', 'tblTempUsageDetail_20' ) start [2024-12-21 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069569', 'tblTempUsageDetail_20' ) end [2024-12-21 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069569', 'tblTempVendorCDR_20' ) start [2024-12-21 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069569', 'tblTempVendorCDR_20' ) end [2024-12-21 10:32:18] Production.INFO: ProcessCDR(1,14069569,1,1,2) [2024-12-21 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069569', 'tblTempUsageDetail_20' ) start [2024-12-21 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069569', 'tblTempUsageDetail_20' ) end [2024-12-21 10:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:32:22] Production.INFO: ==21367== Releasing lock... [2024-12-21 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:32:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-21 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:33:05 [end_date_ymd] => 2024-12-21 10:33:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:33:05' and `end` < '2024-12-21 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-21 10:33:17] Production.INFO: count ==1155 [2024-12-21 10:33:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:33:05 - End Time 2024-12-21 10:33:05 [2024-12-21 10:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069574', 'tblTempUsageDetail_20' ) start [2024-12-21 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069574', 'tblTempUsageDetail_20' ) end [2024-12-21 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069574', 'tblTempVendorCDR_20' ) start [2024-12-21 10:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069574', 'tblTempVendorCDR_20' ) end [2024-12-21 10:33:18] Production.INFO: ProcessCDR(1,14069574,1,1,2) [2024-12-21 10:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069574', 'tblTempUsageDetail_20' ) start [2024-12-21 10:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069574', 'tblTempUsageDetail_20' ) end [2024-12-21 10:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:33:21] Production.INFO: ==21470== Releasing lock... [2024-12-21 10:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:33:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-21 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:34:05 [end_date_ymd] => 2024-12-21 10:34:05 [RateCDR] => 1 ) [2024-12-21 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:34:05' and `end` < '2024-12-21 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:34:19] Production.INFO: count ==1164 [2024-12-21 10:34:20] Production.ERROR: pbx CDR StartTime 2024-12-21 07:34:05 - End Time 2024-12-21 10:34:05 [2024-12-21 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069579', 'tblTempUsageDetail_20' ) start [2024-12-21 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069579', 'tblTempUsageDetail_20' ) end [2024-12-21 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069579', 'tblTempVendorCDR_20' ) start [2024-12-21 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069579', 'tblTempVendorCDR_20' ) end [2024-12-21 10:34:20] Production.INFO: ProcessCDR(1,14069579,1,1,2) [2024-12-21 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069579', 'tblTempUsageDetail_20' ) start [2024-12-21 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069579', 'tblTempUsageDetail_20' ) end [2024-12-21 10:34:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:34:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:34:24] Production.INFO: ==21569== Releasing lock... [2024-12-21 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:34:24] Production.INFO: 36.75 MB #Memory Used# [2024-12-21 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:35:05 [end_date_ymd] => 2024-12-21 10:35:05 [RateCDR] => 1 ) [2024-12-21 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:35:05' and `end` < '2024-12-21 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:35:17] Production.INFO: count ==1172 [2024-12-21 10:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:35:05 - End Time 2024-12-21 10:35:05 [2024-12-21 10:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069584', 'tblTempUsageDetail_20' ) start [2024-12-21 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069584', 'tblTempUsageDetail_20' ) end [2024-12-21 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069584', 'tblTempVendorCDR_20' ) start [2024-12-21 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069584', 'tblTempVendorCDR_20' ) end [2024-12-21 10:35:18] Production.INFO: ProcessCDR(1,14069584,1,1,2) [2024-12-21 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069584', 'tblTempUsageDetail_20' ) start [2024-12-21 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069584', 'tblTempUsageDetail_20' ) end [2024-12-21 10:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:35:22] Production.INFO: ==21673== Releasing lock... [2024-12-21 10:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:35:22] Production.INFO: 37 MB #Memory Used# [2024-12-21 10:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:36:04 [end_date_ymd] => 2024-12-21 10:36:04 [RateCDR] => 1 ) [2024-12-21 10: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-21 07:36:04' and `end` < '2024-12-21 10: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-21 10:36:16] Production.INFO: count ==1175 [2024-12-21 10:36:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:36:04 - End Time 2024-12-21 10:36:04 [2024-12-21 10:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069589', 'tblTempUsageDetail_20' ) start [2024-12-21 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069589', 'tblTempUsageDetail_20' ) end [2024-12-21 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069589', 'tblTempVendorCDR_20' ) start [2024-12-21 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069589', 'tblTempVendorCDR_20' ) end [2024-12-21 10:36:17] Production.INFO: ProcessCDR(1,14069589,1,1,2) [2024-12-21 10:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069589', 'tblTempUsageDetail_20' ) start [2024-12-21 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069589', 'tblTempUsageDetail_20' ) end [2024-12-21 10:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:36:22] Production.INFO: ==21776== Releasing lock... [2024-12-21 10:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:36:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:37:05 [end_date_ymd] => 2024-12-21 10:37:05 [RateCDR] => 1 ) [2024-12-21 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:37:05' and `end` < '2024-12-21 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:37:18] Production.INFO: count ==1175 [2024-12-21 10:37:19] Production.ERROR: pbx CDR StartTime 2024-12-21 07:37:05 - End Time 2024-12-21 10:37:05 [2024-12-21 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069594', 'tblTempUsageDetail_20' ) start [2024-12-21 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069594', 'tblTempUsageDetail_20' ) end [2024-12-21 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069594', 'tblTempVendorCDR_20' ) start [2024-12-21 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069594', 'tblTempVendorCDR_20' ) end [2024-12-21 10:37:19] Production.INFO: ProcessCDR(1,14069594,1,1,2) [2024-12-21 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069594', 'tblTempUsageDetail_20' ) start [2024-12-21 10:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069594', 'tblTempUsageDetail_20' ) end [2024-12-21 10:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:37:22] Production.INFO: ==21879== Releasing lock... [2024-12-21 10:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:37:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:38:05 [end_date_ymd] => 2024-12-21 10:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:38:05' and `end` < '2024-12-21 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-21 10:38:18] Production.INFO: count ==1177 [2024-12-21 10:38:19] Production.ERROR: pbx CDR StartTime 2024-12-21 07:38:05 - End Time 2024-12-21 10:38:05 [2024-12-21 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069599', 'tblTempUsageDetail_20' ) start [2024-12-21 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069599', 'tblTempUsageDetail_20' ) end [2024-12-21 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069599', 'tblTempVendorCDR_20' ) start [2024-12-21 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069599', 'tblTempVendorCDR_20' ) end [2024-12-21 10:38:19] Production.INFO: ProcessCDR(1,14069599,1,1,2) [2024-12-21 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069599', 'tblTempUsageDetail_20' ) start [2024-12-21 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069599', 'tblTempUsageDetail_20' ) end [2024-12-21 10:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:38:22] Production.INFO: ==21980== Releasing lock... [2024-12-21 10:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:38:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-21 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:39:05 [end_date_ymd] => 2024-12-21 10:39:05 [RateCDR] => 1 ) [2024-12-21 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:39:05' and `end` < '2024-12-21 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:39:18] Production.INFO: count ==1178 [2024-12-21 10:39:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:39:05 - End Time 2024-12-21 10:39:05 [2024-12-21 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069604', 'tblTempUsageDetail_20' ) start [2024-12-21 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069604', 'tblTempUsageDetail_20' ) end [2024-12-21 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069604', 'tblTempVendorCDR_20' ) start [2024-12-21 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069604', 'tblTempVendorCDR_20' ) end [2024-12-21 10:39:18] Production.INFO: ProcessCDR(1,14069604,1,1,2) [2024-12-21 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069604', 'tblTempUsageDetail_20' ) start [2024-12-21 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069604', 'tblTempUsageDetail_20' ) end [2024-12-21 10:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:39:22] Production.INFO: ==22066== Releasing lock... [2024-12-21 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:39:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:40:06 [end_date_ymd] => 2024-12-21 10:40:06 [RateCDR] => 1 ) [2024-12-21 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:40:06' and `end` < '2024-12-21 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:40:18] Production.INFO: count ==1187 [2024-12-21 10:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:40:06 - End Time 2024-12-21 10:40:06 [2024-12-21 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069610', 'tblTempUsageDetail_20' ) start [2024-12-21 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069610', 'tblTempUsageDetail_20' ) end [2024-12-21 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069610', 'tblTempVendorCDR_20' ) start [2024-12-21 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069610', 'tblTempVendorCDR_20' ) end [2024-12-21 10:40:18] Production.INFO: ProcessCDR(1,14069610,1,1,2) [2024-12-21 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069610', 'tblTempUsageDetail_20' ) start [2024-12-21 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069610', 'tblTempUsageDetail_20' ) end [2024-12-21 10:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:40:23] Production.INFO: ==22138== Releasing lock... [2024-12-21 10:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:40:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:41:05 [end_date_ymd] => 2024-12-21 10:41:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:41:05' and `end` < '2024-12-21 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-21 10:41:17] Production.INFO: count ==1242 [2024-12-21 10:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:41:05 - End Time 2024-12-21 10:41:05 [2024-12-21 10:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069615', 'tblTempUsageDetail_20' ) start [2024-12-21 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069615', 'tblTempUsageDetail_20' ) end [2024-12-21 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069615', 'tblTempVendorCDR_20' ) start [2024-12-21 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069615', 'tblTempVendorCDR_20' ) end [2024-12-21 10:41:18] Production.INFO: ProcessCDR(1,14069615,1,1,2) [2024-12-21 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069615', 'tblTempUsageDetail_20' ) start [2024-12-21 10:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069615', 'tblTempUsageDetail_20' ) end [2024-12-21 10:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:41:22] Production.INFO: ==22218== Releasing lock... [2024-12-21 10:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:41:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:42:05 [end_date_ymd] => 2024-12-21 10:42:05 [RateCDR] => 1 ) [2024-12-21 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:42:05' and `end` < '2024-12-21 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:42:17] Production.INFO: count ==1261 [2024-12-21 10:42:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:42:05 - End Time 2024-12-21 10:42:05 [2024-12-21 10:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069620', 'tblTempUsageDetail_20' ) start [2024-12-21 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069620', 'tblTempUsageDetail_20' ) end [2024-12-21 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069620', 'tblTempVendorCDR_20' ) start [2024-12-21 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069620', 'tblTempVendorCDR_20' ) end [2024-12-21 10:42:17] Production.INFO: ProcessCDR(1,14069620,1,1,2) [2024-12-21 10:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069620', 'tblTempUsageDetail_20' ) start [2024-12-21 10:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069620', 'tblTempUsageDetail_20' ) end [2024-12-21 10:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:42:20] Production.INFO: ==22288== Releasing lock... [2024-12-21 10:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:42:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:43:05 [end_date_ymd] => 2024-12-21 10:43:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:43:05' and `end` < '2024-12-21 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-21 10:43:17] Production.INFO: count ==1263 [2024-12-21 10:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:43:05 - End Time 2024-12-21 10:43:05 [2024-12-21 10:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069625', 'tblTempUsageDetail_20' ) start [2024-12-21 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069625', 'tblTempUsageDetail_20' ) end [2024-12-21 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069625', 'tblTempVendorCDR_20' ) start [2024-12-21 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069625', 'tblTempVendorCDR_20' ) end [2024-12-21 10:43:17] Production.INFO: ProcessCDR(1,14069625,1,1,2) [2024-12-21 10:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069625', 'tblTempUsageDetail_20' ) start [2024-12-21 10:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069625', 'tblTempUsageDetail_20' ) end [2024-12-21 10:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:43:22] Production.INFO: ==22398== Releasing lock... [2024-12-21 10:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:43:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:44:04 [end_date_ymd] => 2024-12-21 10:44:04 [RateCDR] => 1 ) [2024-12-21 10:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:44:04' and `end` < '2024-12-21 10:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:44:18] Production.INFO: count ==1273 [2024-12-21 10:44:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:44:04 - End Time 2024-12-21 10:44:04 [2024-12-21 10:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069630', 'tblTempUsageDetail_20' ) start [2024-12-21 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069630', 'tblTempUsageDetail_20' ) end [2024-12-21 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069630', 'tblTempVendorCDR_20' ) start [2024-12-21 10:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069630', 'tblTempVendorCDR_20' ) end [2024-12-21 10:44:18] Production.INFO: ProcessCDR(1,14069630,1,1,2) [2024-12-21 10:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069630', 'tblTempUsageDetail_20' ) start [2024-12-21 10:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069630', 'tblTempUsageDetail_20' ) end [2024-12-21 10:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:44:21] Production.INFO: ==22471== Releasing lock... [2024-12-21 10:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:44:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:45:05 [end_date_ymd] => 2024-12-21 10:45:05 [RateCDR] => 1 ) [2024-12-21 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:45:05' and `end` < '2024-12-21 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:45:17] Production.INFO: count ==1292 [2024-12-21 10:45:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:45:05 - End Time 2024-12-21 10:45:05 [2024-12-21 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069635', 'tblTempUsageDetail_20' ) start [2024-12-21 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069635', 'tblTempUsageDetail_20' ) end [2024-12-21 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069635', 'tblTempVendorCDR_20' ) start [2024-12-21 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069635', 'tblTempVendorCDR_20' ) end [2024-12-21 10:45:18] Production.INFO: ProcessCDR(1,14069635,1,1,2) [2024-12-21 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069635', 'tblTempUsageDetail_20' ) start [2024-12-21 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069635', 'tblTempUsageDetail_20' ) end [2024-12-21 10:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:45:22] Production.INFO: ==22541== Releasing lock... [2024-12-21 10:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:45:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:46:05 [end_date_ymd] => 2024-12-21 10:46:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:46:05' and `end` < '2024-12-21 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-21 10:46:17] Production.INFO: count ==1299 [2024-12-21 10:46:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:46:05 - End Time 2024-12-21 10:46:05 [2024-12-21 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069640', 'tblTempUsageDetail_20' ) start [2024-12-21 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069640', 'tblTempUsageDetail_20' ) end [2024-12-21 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069640', 'tblTempVendorCDR_20' ) start [2024-12-21 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069640', 'tblTempVendorCDR_20' ) end [2024-12-21 10:46:18] Production.INFO: ProcessCDR(1,14069640,1,1,2) [2024-12-21 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069640', 'tblTempUsageDetail_20' ) start [2024-12-21 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069640', 'tblTempUsageDetail_20' ) end [2024-12-21 10:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:46:21] Production.INFO: ==22611== Releasing lock... [2024-12-21 10:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:46:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-21 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:47:05 [end_date_ymd] => 2024-12-21 10:47:05 [RateCDR] => 1 ) [2024-12-21 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:47:05' and `end` < '2024-12-21 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:47:18] Production.INFO: count ==1299 [2024-12-21 10:47:19] Production.ERROR: pbx CDR StartTime 2024-12-21 07:47:05 - End Time 2024-12-21 10:47:05 [2024-12-21 10:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069645', 'tblTempUsageDetail_20' ) start [2024-12-21 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069645', 'tblTempUsageDetail_20' ) end [2024-12-21 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069645', 'tblTempVendorCDR_20' ) start [2024-12-21 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069645', 'tblTempVendorCDR_20' ) end [2024-12-21 10:47:19] Production.INFO: ProcessCDR(1,14069645,1,1,2) [2024-12-21 10:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069645', 'tblTempUsageDetail_20' ) start [2024-12-21 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069645', 'tblTempUsageDetail_20' ) end [2024-12-21 10:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:47:22] Production.INFO: ==22684== Releasing lock... [2024-12-21 10:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:47:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-21 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:48:05 [end_date_ymd] => 2024-12-21 10:48:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:48:05' and `end` < '2024-12-21 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-21 10:48:17] Production.INFO: count ==1302 [2024-12-21 10:48:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:48:05 - End Time 2024-12-21 10:48:05 [2024-12-21 10:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069650', 'tblTempUsageDetail_20' ) start [2024-12-21 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069650', 'tblTempUsageDetail_20' ) end [2024-12-21 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069650', 'tblTempVendorCDR_20' ) start [2024-12-21 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069650', 'tblTempVendorCDR_20' ) end [2024-12-21 10:48:17] Production.INFO: ProcessCDR(1,14069650,1,1,2) [2024-12-21 10:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069650', 'tblTempUsageDetail_20' ) start [2024-12-21 10:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069650', 'tblTempUsageDetail_20' ) end [2024-12-21 10:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:48:20] Production.INFO: ==22757== Releasing lock... [2024-12-21 10:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:48:20] Production.INFO: 38 MB #Memory Used# [2024-12-21 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:49:05 [end_date_ymd] => 2024-12-21 10:49:05 [RateCDR] => 1 ) [2024-12-21 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:49:05' and `end` < '2024-12-21 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:49:17] Production.INFO: count ==1303 [2024-12-21 10:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:49:05 - End Time 2024-12-21 10:49:05 [2024-12-21 10:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069655', 'tblTempUsageDetail_20' ) start [2024-12-21 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069655', 'tblTempUsageDetail_20' ) end [2024-12-21 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069655', 'tblTempVendorCDR_20' ) start [2024-12-21 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069655', 'tblTempVendorCDR_20' ) end [2024-12-21 10:49:17] Production.INFO: ProcessCDR(1,14069655,1,1,2) [2024-12-21 10:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069655', 'tblTempUsageDetail_20' ) start [2024-12-21 10:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069655', 'tblTempUsageDetail_20' ) end [2024-12-21 10:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:49:20] Production.INFO: ==22826== Releasing lock... [2024-12-21 10:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:49:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:50:05 [end_date_ymd] => 2024-12-21 10:50:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:50:05' and `end` < '2024-12-21 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-21 10:50:17] Production.INFO: count ==1317 [2024-12-21 10:50:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:50:05 - End Time 2024-12-21 10:50:05 [2024-12-21 10:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069661', 'tblTempUsageDetail_20' ) start [2024-12-21 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069661', 'tblTempUsageDetail_20' ) end [2024-12-21 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069661', 'tblTempVendorCDR_20' ) start [2024-12-21 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069661', 'tblTempVendorCDR_20' ) end [2024-12-21 10:50:18] Production.INFO: ProcessCDR(1,14069661,1,1,2) [2024-12-21 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069661', 'tblTempUsageDetail_20' ) start [2024-12-21 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069661', 'tblTempUsageDetail_20' ) end [2024-12-21 10:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:50:22] Production.INFO: ==22897== Releasing lock... [2024-12-21 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:50:22] Production.INFO: 38 MB #Memory Used# [2024-12-21 10:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:51:04 [end_date_ymd] => 2024-12-21 10:51:04 [RateCDR] => 1 ) [2024-12-21 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-21 07:51:04' and `end` < '2024-12-21 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-21 10:51:18] Production.INFO: count ==1350 [2024-12-21 10:51:19] Production.ERROR: pbx CDR StartTime 2024-12-21 07:51:04 - End Time 2024-12-21 10:51:04 [2024-12-21 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069666', 'tblTempUsageDetail_20' ) start [2024-12-21 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069666', 'tblTempUsageDetail_20' ) end [2024-12-21 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069666', 'tblTempVendorCDR_20' ) start [2024-12-21 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069666', 'tblTempVendorCDR_20' ) end [2024-12-21 10:51:19] Production.INFO: ProcessCDR(1,14069666,1,1,2) [2024-12-21 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069666', 'tblTempUsageDetail_20' ) start [2024-12-21 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069666', 'tblTempUsageDetail_20' ) end [2024-12-21 10:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:51:23] Production.INFO: ==22971== Releasing lock... [2024-12-21 10:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:51:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-21 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:52:05 [end_date_ymd] => 2024-12-21 10:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:52:05' and `end` < '2024-12-21 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-21 10:52:19] Production.INFO: count ==1357 [2024-12-21 10:52:19] Production.ERROR: pbx CDR StartTime 2024-12-21 07:52:05 - End Time 2024-12-21 10:52:05 [2024-12-21 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069671', 'tblTempUsageDetail_20' ) start [2024-12-21 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069671', 'tblTempUsageDetail_20' ) end [2024-12-21 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069671', 'tblTempVendorCDR_20' ) start [2024-12-21 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069671', 'tblTempVendorCDR_20' ) end [2024-12-21 10:52:19] Production.INFO: ProcessCDR(1,14069671,1,1,2) [2024-12-21 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069671', 'tblTempUsageDetail_20' ) start [2024-12-21 10:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069671', 'tblTempUsageDetail_20' ) end [2024-12-21 10:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:52:23] Production.INFO: ==23044== Releasing lock... [2024-12-21 10:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:52:23] Production.INFO: 38 MB #Memory Used# [2024-12-21 10:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:53:04 [end_date_ymd] => 2024-12-21 10:53:04 [RateCDR] => 1 ) [2024-12-21 10: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-21 07:53:04' and `end` < '2024-12-21 10: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-21 10:53:16] Production.INFO: count ==1358 [2024-12-21 10:53:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:53:04 - End Time 2024-12-21 10:53:04 [2024-12-21 10:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069676', 'tblTempUsageDetail_20' ) start [2024-12-21 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069676', 'tblTempUsageDetail_20' ) end [2024-12-21 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069676', 'tblTempVendorCDR_20' ) start [2024-12-21 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069676', 'tblTempVendorCDR_20' ) end [2024-12-21 10:53:17] Production.INFO: ProcessCDR(1,14069676,1,1,2) [2024-12-21 10:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069676', 'tblTempUsageDetail_20' ) start [2024-12-21 10:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069676', 'tblTempUsageDetail_20' ) end [2024-12-21 10:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:53:21] Production.INFO: ==23114== Releasing lock... [2024-12-21 10:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:53:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:54:05 [end_date_ymd] => 2024-12-21 10:54:05 [RateCDR] => 1 ) [2024-12-21 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:54:05' and `end` < '2024-12-21 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:54:17] Production.INFO: count ==1360 [2024-12-21 10:54:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:54:05 - End Time 2024-12-21 10:54:05 [2024-12-21 10:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069681', 'tblTempUsageDetail_20' ) start [2024-12-21 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069681', 'tblTempUsageDetail_20' ) end [2024-12-21 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069681', 'tblTempVendorCDR_20' ) start [2024-12-21 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069681', 'tblTempVendorCDR_20' ) end [2024-12-21 10:54:17] Production.INFO: ProcessCDR(1,14069681,1,1,2) [2024-12-21 10:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069681', 'tblTempUsageDetail_20' ) start [2024-12-21 10:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069681', 'tblTempUsageDetail_20' ) end [2024-12-21 10:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:54:22] Production.INFO: ==23185== Releasing lock... [2024-12-21 10:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:54:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 10:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:55:04 [end_date_ymd] => 2024-12-21 10:55:04 [RateCDR] => 1 ) [2024-12-21 10:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:55:04' and `end` < '2024-12-21 10:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:55:17] Production.INFO: count ==1365 [2024-12-21 10:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 07:55:04 - End Time 2024-12-21 10:55:04 [2024-12-21 10:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069686', 'tblTempUsageDetail_20' ) start [2024-12-21 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069686', 'tblTempUsageDetail_20' ) end [2024-12-21 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069686', 'tblTempVendorCDR_20' ) start [2024-12-21 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069686', 'tblTempVendorCDR_20' ) end [2024-12-21 10:55:17] Production.INFO: ProcessCDR(1,14069686,1,1,2) [2024-12-21 10:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069686', 'tblTempUsageDetail_20' ) start [2024-12-21 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069686', 'tblTempUsageDetail_20' ) end [2024-12-21 10:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:55:21] Production.INFO: ==23257== Releasing lock... [2024-12-21 10:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:55:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-21 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:56:06 [end_date_ymd] => 2024-12-21 10:56:06 [RateCDR] => 1 ) [2024-12-21 10:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:56:06' and `end` < '2024-12-21 10:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:56:19] Production.INFO: count ==1353 [2024-12-21 10:56:19] Production.ERROR: pbx CDR StartTime 2024-12-21 07:56:06 - End Time 2024-12-21 10:56:06 [2024-12-21 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069691', 'tblTempUsageDetail_20' ) start [2024-12-21 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069691', 'tblTempUsageDetail_20' ) end [2024-12-21 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069691', 'tblTempVendorCDR_20' ) start [2024-12-21 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069691', 'tblTempVendorCDR_20' ) end [2024-12-21 10:56:20] Production.INFO: ProcessCDR(1,14069691,1,1,2) [2024-12-21 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069691', 'tblTempUsageDetail_20' ) start [2024-12-21 10:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069691', 'tblTempUsageDetail_20' ) end [2024-12-21 10:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:56:24] Production.INFO: ==23332== Releasing lock... [2024-12-21 10:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:56:24] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:57:04 [end_date_ymd] => 2024-12-21 10:57:04 [RateCDR] => 1 ) [2024-12-21 10:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:57:04' and `end` < '2024-12-21 10:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:57:18] Production.INFO: count ==1360 [2024-12-21 10:57:19] Production.ERROR: pbx CDR StartTime 2024-12-21 07:57:04 - End Time 2024-12-21 10:57:04 [2024-12-21 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069696', 'tblTempUsageDetail_20' ) start [2024-12-21 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069696', 'tblTempUsageDetail_20' ) end [2024-12-21 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069696', 'tblTempVendorCDR_20' ) start [2024-12-21 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069696', 'tblTempVendorCDR_20' ) end [2024-12-21 10:57:19] Production.INFO: ProcessCDR(1,14069696,1,1,2) [2024-12-21 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069696', 'tblTempUsageDetail_20' ) start [2024-12-21 10:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069696', 'tblTempUsageDetail_20' ) end [2024-12-21 10:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:57:23] Production.INFO: ==23404== Releasing lock... [2024-12-21 10:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:57:23] Production.INFO: 38.25 MB #Memory Used# [2024-12-21 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:58:05 [end_date_ymd] => 2024-12-21 10:58:05 [RateCDR] => 1 ) [2024-12-21 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-21 07:58:05' and `end` < '2024-12-21 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-21 10:58:17] Production.INFO: count ==1372 [2024-12-21 10:58:18] Production.ERROR: pbx CDR StartTime 2024-12-21 07:58:05 - End Time 2024-12-21 10:58:05 [2024-12-21 10:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069701', 'tblTempUsageDetail_20' ) start [2024-12-21 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069701', 'tblTempUsageDetail_20' ) end [2024-12-21 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069701', 'tblTempVendorCDR_20' ) start [2024-12-21 10:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069701', 'tblTempVendorCDR_20' ) end [2024-12-21 10:58:18] Production.INFO: ProcessCDR(1,14069701,1,1,2) [2024-12-21 10:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069701', 'tblTempUsageDetail_20' ) start [2024-12-21 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069701', 'tblTempUsageDetail_20' ) end [2024-12-21 10:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:58:21] Production.INFO: ==23475== Releasing lock... [2024-12-21 10:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:58:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 07:59:05 [end_date_ymd] => 2024-12-21 10:59:05 [RateCDR] => 1 ) [2024-12-21 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 07:59:05' and `end` < '2024-12-21 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 10:59:18] Production.INFO: count ==1378 [2024-12-21 10:59:19] Production.ERROR: pbx CDR StartTime 2024-12-21 07:59:05 - End Time 2024-12-21 10:59:05 [2024-12-21 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069706', 'tblTempUsageDetail_20' ) start [2024-12-21 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069706', 'tblTempUsageDetail_20' ) end [2024-12-21 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069706', 'tblTempVendorCDR_20' ) start [2024-12-21 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069706', 'tblTempVendorCDR_20' ) end [2024-12-21 10:59:19] Production.INFO: ProcessCDR(1,14069706,1,1,2) [2024-12-21 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 10:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069706', 'tblTempUsageDetail_20' ) start [2024-12-21 10:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069706', 'tblTempUsageDetail_20' ) end [2024-12-21 10:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 10:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 10:59:22] Production.INFO: ==23585== Releasing lock... [2024-12-21 10:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 10:59:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:00:05 [end_date_ymd] => 2024-12-21 11:00:05 [RateCDR] => 1 ) [2024-12-21 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:00:05' and `end` < '2024-12-21 11:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:00:17] Production.INFO: count ==1385 [2024-12-21 11:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:00:05 - End Time 2024-12-21 11:00:05 [2024-12-21 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069712', 'tblTempUsageDetail_20' ) start [2024-12-21 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069712', 'tblTempUsageDetail_20' ) end [2024-12-21 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069712', 'tblTempVendorCDR_20' ) start [2024-12-21 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069712', 'tblTempVendorCDR_20' ) end [2024-12-21 11:00:18] Production.INFO: ProcessCDR(1,14069712,1,1,2) [2024-12-21 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069712', 'tblTempUsageDetail_20' ) start [2024-12-21 11:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069712', 'tblTempUsageDetail_20' ) end [2024-12-21 11:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:00:21] Production.INFO: ==23660== Releasing lock... [2024-12-21 11:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:00:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-21 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:01:05 [end_date_ymd] => 2024-12-21 11:01:05 [RateCDR] => 1 ) [2024-12-21 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:01:05' and `end` < '2024-12-21 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:01:19] Production.INFO: count ==1412 [2024-12-21 11:01:19] Production.ERROR: pbx CDR StartTime 2024-12-21 08:01:05 - End Time 2024-12-21 11:01:05 [2024-12-21 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069717', 'tblTempUsageDetail_20' ) start [2024-12-21 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069717', 'tblTempUsageDetail_20' ) end [2024-12-21 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069717', 'tblTempVendorCDR_20' ) start [2024-12-21 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069717', 'tblTempVendorCDR_20' ) end [2024-12-21 11:01:19] Production.INFO: ProcessCDR(1,14069717,1,1,2) [2024-12-21 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069717', 'tblTempUsageDetail_20' ) start [2024-12-21 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069717', 'tblTempUsageDetail_20' ) end [2024-12-21 11:01:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:01:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:01:24] Production.INFO: ==23824== Releasing lock... [2024-12-21 11:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:01:24] Production.INFO: 38.75 MB #Memory Used# [2024-12-21 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:02:05 [end_date_ymd] => 2024-12-21 11:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:02:05' and `end` < '2024-12-21 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-21 11:02:19] Production.INFO: count ==1407 [2024-12-21 11:02:19] Production.ERROR: pbx CDR StartTime 2024-12-21 08:02:05 - End Time 2024-12-21 11:02:05 [2024-12-21 11:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069722', 'tblTempUsageDetail_20' ) start [2024-12-21 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069722', 'tblTempUsageDetail_20' ) end [2024-12-21 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069722', 'tblTempVendorCDR_20' ) start [2024-12-21 11:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069722', 'tblTempVendorCDR_20' ) end [2024-12-21 11:02:19] Production.INFO: ProcessCDR(1,14069722,1,1,2) [2024-12-21 11:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069722', 'tblTempUsageDetail_20' ) start [2024-12-21 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069722', 'tblTempUsageDetail_20' ) end [2024-12-21 11:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:02:22] Production.INFO: ==23895== Releasing lock... [2024-12-21 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:02:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 11:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:03:04 [end_date_ymd] => 2024-12-21 11:03:04 [RateCDR] => 1 ) [2024-12-21 11:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:03:04' and `end` < '2024-12-21 11:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:03:17] Production.INFO: count ==1407 [2024-12-21 11:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:03:04 - End Time 2024-12-21 11:03:04 [2024-12-21 11:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069727', 'tblTempUsageDetail_20' ) start [2024-12-21 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069727', 'tblTempUsageDetail_20' ) end [2024-12-21 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069727', 'tblTempVendorCDR_20' ) start [2024-12-21 11:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069727', 'tblTempVendorCDR_20' ) end [2024-12-21 11:03:17] Production.INFO: ProcessCDR(1,14069727,1,1,2) [2024-12-21 11:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069727', 'tblTempUsageDetail_20' ) start [2024-12-21 11:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069727', 'tblTempUsageDetail_20' ) end [2024-12-21 11:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:03:20] Production.INFO: ==23965== Releasing lock... [2024-12-21 11:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:03:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:04:05 [end_date_ymd] => 2024-12-21 11:04:05 [RateCDR] => 1 ) [2024-12-21 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:04:05' and `end` < '2024-12-21 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:04:19] Production.INFO: count ==1409 [2024-12-21 11:04:20] Production.ERROR: pbx CDR StartTime 2024-12-21 08:04:05 - End Time 2024-12-21 11:04:05 [2024-12-21 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069732', 'tblTempUsageDetail_20' ) start [2024-12-21 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069732', 'tblTempUsageDetail_20' ) end [2024-12-21 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069732', 'tblTempVendorCDR_20' ) start [2024-12-21 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069732', 'tblTempVendorCDR_20' ) end [2024-12-21 11:04:20] Production.INFO: ProcessCDR(1,14069732,1,1,2) [2024-12-21 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069732', 'tblTempUsageDetail_20' ) start [2024-12-21 11:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069732', 'tblTempUsageDetail_20' ) end [2024-12-21 11:04:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:04:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:04:25] Production.INFO: ==24038== Releasing lock... [2024-12-21 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:04:25] Production.INFO: 38.75 MB #Memory Used# [2024-12-21 11:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:05:04 [end_date_ymd] => 2024-12-21 11:05:04 [RateCDR] => 1 ) [2024-12-21 11: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-21 08:05:04' and `end` < '2024-12-21 11: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-21 11:05:17] Production.INFO: count ==1406 [2024-12-21 11:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:05:04 - End Time 2024-12-21 11:05:04 [2024-12-21 11:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069737', 'tblTempUsageDetail_20' ) start [2024-12-21 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069737', 'tblTempUsageDetail_20' ) end [2024-12-21 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069737', 'tblTempVendorCDR_20' ) start [2024-12-21 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069737', 'tblTempVendorCDR_20' ) end [2024-12-21 11:05:17] Production.INFO: ProcessCDR(1,14069737,1,1,2) [2024-12-21 11:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069737', 'tblTempUsageDetail_20' ) start [2024-12-21 11:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069737', 'tblTempUsageDetail_20' ) end [2024-12-21 11:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:05:20] Production.INFO: ==24187== Releasing lock... [2024-12-21 11:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:05:20] Production.INFO: 38.75 MB #Memory Used# [2024-12-21 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:06:05 [end_date_ymd] => 2024-12-21 11:06:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:06:05' and `end` < '2024-12-21 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-21 11:06:17] Production.INFO: count ==1406 [2024-12-21 11:06:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:06:05 - End Time 2024-12-21 11:06:05 [2024-12-21 11:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069742', 'tblTempUsageDetail_20' ) start [2024-12-21 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069742', 'tblTempUsageDetail_20' ) end [2024-12-21 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069742', 'tblTempVendorCDR_20' ) start [2024-12-21 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069742', 'tblTempVendorCDR_20' ) end [2024-12-21 11:06:18] Production.INFO: ProcessCDR(1,14069742,1,1,2) [2024-12-21 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069742', 'tblTempUsageDetail_20' ) start [2024-12-21 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069742', 'tblTempUsageDetail_20' ) end [2024-12-21 11:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:06:22] Production.INFO: ==24258== Releasing lock... [2024-12-21 11:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:06:22] Production.INFO: 39 MB #Memory Used# [2024-12-21 11:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:07:04 [end_date_ymd] => 2024-12-21 11:07:04 [RateCDR] => 1 ) [2024-12-21 11: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-21 08:07:04' and `end` < '2024-12-21 11: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-21 11:07:17] Production.INFO: count ==1403 [2024-12-21 11:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:07:04 - End Time 2024-12-21 11:07:04 [2024-12-21 11:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069747', 'tblTempUsageDetail_20' ) start [2024-12-21 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069747', 'tblTempUsageDetail_20' ) end [2024-12-21 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069747', 'tblTempVendorCDR_20' ) start [2024-12-21 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069747', 'tblTempVendorCDR_20' ) end [2024-12-21 11:07:17] Production.INFO: ProcessCDR(1,14069747,1,1,2) [2024-12-21 11:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069747', 'tblTempUsageDetail_20' ) start [2024-12-21 11:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069747', 'tblTempUsageDetail_20' ) end [2024-12-21 11:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:07:21] Production.INFO: ==24328== Releasing lock... [2024-12-21 11:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:07:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-21 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:08:05 [end_date_ymd] => 2024-12-21 11:08:05 [RateCDR] => 1 ) [2024-12-21 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:08:05' and `end` < '2024-12-21 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:08:17] Production.INFO: count ==1402 [2024-12-21 11:08:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:08:05 - End Time 2024-12-21 11:08:05 [2024-12-21 11:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069752', 'tblTempUsageDetail_20' ) start [2024-12-21 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069752', 'tblTempUsageDetail_20' ) end [2024-12-21 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069752', 'tblTempVendorCDR_20' ) start [2024-12-21 11:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069752', 'tblTempVendorCDR_20' ) end [2024-12-21 11:08:17] Production.INFO: ProcessCDR(1,14069752,1,1,2) [2024-12-21 11:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069752', 'tblTempUsageDetail_20' ) start [2024-12-21 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069752', 'tblTempUsageDetail_20' ) end [2024-12-21 11:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:08:22] Production.INFO: ==24483== Releasing lock... [2024-12-21 11:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:08:22] Production.INFO: 38.75 MB #Memory Used# [2024-12-21 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:09:05 [end_date_ymd] => 2024-12-21 11:09:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:09:05' and `end` < '2024-12-21 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-21 11:09:17] Production.INFO: count ==1402 [2024-12-21 11:09:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:09:05 - End Time 2024-12-21 11:09:05 [2024-12-21 11:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069757', 'tblTempUsageDetail_20' ) start [2024-12-21 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069757', 'tblTempUsageDetail_20' ) end [2024-12-21 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069757', 'tblTempVendorCDR_20' ) start [2024-12-21 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069757', 'tblTempVendorCDR_20' ) end [2024-12-21 11:09:17] Production.INFO: ProcessCDR(1,14069757,1,1,2) [2024-12-21 11:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069757', 'tblTempUsageDetail_20' ) start [2024-12-21 11:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069757', 'tblTempUsageDetail_20' ) end [2024-12-21 11:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:09:20] Production.INFO: ==24554== Releasing lock... [2024-12-21 11:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:09:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:10:05 [end_date_ymd] => 2024-12-21 11:10:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:10:05' and `end` < '2024-12-21 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-21 11:10:17] Production.INFO: count ==1407 [2024-12-21 11:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:10:05 - End Time 2024-12-21 11:10:05 [2024-12-21 11:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069763', 'tblTempUsageDetail_20' ) start [2024-12-21 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069763', 'tblTempUsageDetail_20' ) end [2024-12-21 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069763', 'tblTempVendorCDR_20' ) start [2024-12-21 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069763', 'tblTempVendorCDR_20' ) end [2024-12-21 11:10:18] Production.INFO: ProcessCDR(1,14069763,1,1,2) [2024-12-21 11:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069763', 'tblTempUsageDetail_20' ) start [2024-12-21 11:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069763', 'tblTempUsageDetail_20' ) end [2024-12-21 11:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:10:21] Production.INFO: ==24626== Releasing lock... [2024-12-21 11:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:10:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-21 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:11:05 [end_date_ymd] => 2024-12-21 11:11:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:11:05' and `end` < '2024-12-21 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-21 11:11:17] Production.INFO: count ==1457 [2024-12-21 11:11:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:11:05 - End Time 2024-12-21 11:11:05 [2024-12-21 11:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069768', 'tblTempUsageDetail_20' ) start [2024-12-21 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069768', 'tblTempUsageDetail_20' ) end [2024-12-21 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069768', 'tblTempVendorCDR_20' ) start [2024-12-21 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069768', 'tblTempVendorCDR_20' ) end [2024-12-21 11:11:17] Production.INFO: ProcessCDR(1,14069768,1,1,2) [2024-12-21 11:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069768', 'tblTempUsageDetail_20' ) start [2024-12-21 11:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069768', 'tblTempUsageDetail_20' ) end [2024-12-21 11:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:11:20] Production.INFO: ==24699== Releasing lock... [2024-12-21 11:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:11:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-21 11:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:12:04 [end_date_ymd] => 2024-12-21 11:12:04 [RateCDR] => 1 ) [2024-12-21 11: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-21 08:12:04' and `end` < '2024-12-21 11: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-21 11:12:16] Production.INFO: count ==1464 [2024-12-21 11:12:16] Production.ERROR: pbx CDR StartTime 2024-12-21 08:12:04 - End Time 2024-12-21 11:12:04 [2024-12-21 11:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069773', 'tblTempUsageDetail_20' ) start [2024-12-21 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069773', 'tblTempUsageDetail_20' ) end [2024-12-21 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069773', 'tblTempVendorCDR_20' ) start [2024-12-21 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069773', 'tblTempVendorCDR_20' ) end [2024-12-21 11:12:17] Production.INFO: ProcessCDR(1,14069773,1,1,2) [2024-12-21 11:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:12:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:12:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069773', 'tblTempUsageDetail_20' ) start [2024-12-21 11:12:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069773', 'tblTempUsageDetail_20' ) end [2024-12-21 11:12:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:12:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:12:19] Production.INFO: ==24849== Releasing lock... [2024-12-21 11:12:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:12:19] Production.INFO: 39.25 MB #Memory Used# [2024-12-21 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:13:05 [end_date_ymd] => 2024-12-21 11:13:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:13:05' and `end` < '2024-12-21 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-21 11:13:17] Production.INFO: count ==1465 [2024-12-21 11:13:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:13:05 - End Time 2024-12-21 11:13:05 [2024-12-21 11:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069778', 'tblTempUsageDetail_20' ) start [2024-12-21 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069778', 'tblTempUsageDetail_20' ) end [2024-12-21 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069778', 'tblTempVendorCDR_20' ) start [2024-12-21 11:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069778', 'tblTempVendorCDR_20' ) end [2024-12-21 11:13:18] Production.INFO: ProcessCDR(1,14069778,1,1,2) [2024-12-21 11:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069778', 'tblTempUsageDetail_20' ) start [2024-12-21 11:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069778', 'tblTempUsageDetail_20' ) end [2024-12-21 11:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:13:21] Production.INFO: ==24922== Releasing lock... [2024-12-21 11:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:13:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-21 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:14:05 [end_date_ymd] => 2024-12-21 11:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:14:05' and `end` < '2024-12-21 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-21 11:14:18] Production.INFO: count ==1465 [2024-12-21 11:14:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:14:05 - End Time 2024-12-21 11:14:05 [2024-12-21 11:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069783', 'tblTempUsageDetail_20' ) start [2024-12-21 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069783', 'tblTempUsageDetail_20' ) end [2024-12-21 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069783', 'tblTempVendorCDR_20' ) start [2024-12-21 11:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069783', 'tblTempVendorCDR_20' ) end [2024-12-21 11:14:18] Production.INFO: ProcessCDR(1,14069783,1,1,2) [2024-12-21 11:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069783', 'tblTempUsageDetail_20' ) start [2024-12-21 11:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069783', 'tblTempUsageDetail_20' ) end [2024-12-21 11:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:14:23] Production.INFO: ==25034== Releasing lock... [2024-12-21 11:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:14:23] Production.INFO: 39 MB #Memory Used# [2024-12-21 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:15:04 [end_date_ymd] => 2024-12-21 11:15:04 [RateCDR] => 1 ) [2024-12-21 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-21 08:15:04' and `end` < '2024-12-21 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-21 11:15:17] Production.INFO: count ==1460 [2024-12-21 11:15:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:15:04 - End Time 2024-12-21 11:15:04 [2024-12-21 11:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069788', 'tblTempUsageDetail_20' ) start [2024-12-21 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069788', 'tblTempUsageDetail_20' ) end [2024-12-21 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069788', 'tblTempVendorCDR_20' ) start [2024-12-21 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069788', 'tblTempVendorCDR_20' ) end [2024-12-21 11:15:17] Production.INFO: ProcessCDR(1,14069788,1,1,2) [2024-12-21 11:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069788', 'tblTempUsageDetail_20' ) start [2024-12-21 11:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069788', 'tblTempUsageDetail_20' ) end [2024-12-21 11:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:15:20] Production.INFO: ==25184== Releasing lock... [2024-12-21 11:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:15:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-21 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:16:05 [end_date_ymd] => 2024-12-21 11:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:16:05' and `end` < '2024-12-21 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-21 11:16:18] Production.INFO: count ==1462 [2024-12-21 11:16:19] Production.ERROR: pbx CDR StartTime 2024-12-21 08:16:05 - End Time 2024-12-21 11:16:05 [2024-12-21 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069793', 'tblTempUsageDetail_20' ) start [2024-12-21 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069793', 'tblTempUsageDetail_20' ) end [2024-12-21 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069793', 'tblTempVendorCDR_20' ) start [2024-12-21 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069793', 'tblTempVendorCDR_20' ) end [2024-12-21 11:16:19] Production.INFO: ProcessCDR(1,14069793,1,1,2) [2024-12-21 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069793', 'tblTempUsageDetail_20' ) start [2024-12-21 11:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069793', 'tblTempUsageDetail_20' ) end [2024-12-21 11:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:16:23] Production.INFO: ==25257== Releasing lock... [2024-12-21 11:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:16:23] Production.INFO: 39 MB #Memory Used# [2024-12-21 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:17:04 [end_date_ymd] => 2024-12-21 11:17:04 [RateCDR] => 1 ) [2024-12-21 11:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:17:04' and `end` < '2024-12-21 11:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:17:18] Production.INFO: count ==1476 [2024-12-21 11:17:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:17:04 - End Time 2024-12-21 11:17:04 [2024-12-21 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069798', 'tblTempUsageDetail_20' ) start [2024-12-21 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069798', 'tblTempUsageDetail_20' ) end [2024-12-21 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069798', 'tblTempVendorCDR_20' ) start [2024-12-21 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069798', 'tblTempVendorCDR_20' ) end [2024-12-21 11:17:18] Production.INFO: ProcessCDR(1,14069798,1,1,2) [2024-12-21 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069798', 'tblTempUsageDetail_20' ) start [2024-12-21 11:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069798', 'tblTempUsageDetail_20' ) end [2024-12-21 11:17:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:17:23] Production.INFO: ==25326== Releasing lock... [2024-12-21 11:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:17:23] Production.INFO: 39.25 MB #Memory Used# [2024-12-21 11:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:18:04 [end_date_ymd] => 2024-12-21 11:18:04 [RateCDR] => 1 ) [2024-12-21 11:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:18:04' and `end` < '2024-12-21 11:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:18:16] Production.INFO: count ==1476 [2024-12-21 11:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:18:04 - End Time 2024-12-21 11:18:04 [2024-12-21 11:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069803', 'tblTempUsageDetail_20' ) start [2024-12-21 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069803', 'tblTempUsageDetail_20' ) end [2024-12-21 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069803', 'tblTempVendorCDR_20' ) start [2024-12-21 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069803', 'tblTempVendorCDR_20' ) end [2024-12-21 11:18:17] Production.INFO: ProcessCDR(1,14069803,1,1,2) [2024-12-21 11:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069803', 'tblTempUsageDetail_20' ) start [2024-12-21 11:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069803', 'tblTempUsageDetail_20' ) end [2024-12-21 11:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:18:20] Production.INFO: ==25401== Releasing lock... [2024-12-21 11:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:18:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-21 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:19:05 [end_date_ymd] => 2024-12-21 11:19:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:19:05' and `end` < '2024-12-21 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-21 11:19:17] Production.INFO: count ==1489 [2024-12-21 11:19:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:19:05 - End Time 2024-12-21 11:19:05 [2024-12-21 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069808', 'tblTempUsageDetail_20' ) start [2024-12-21 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069808', 'tblTempUsageDetail_20' ) end [2024-12-21 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069808', 'tblTempVendorCDR_20' ) start [2024-12-21 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069808', 'tblTempVendorCDR_20' ) end [2024-12-21 11:19:18] Production.INFO: ProcessCDR(1,14069808,1,1,2) [2024-12-21 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069808', 'tblTempUsageDetail_20' ) start [2024-12-21 11:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069808', 'tblTempUsageDetail_20' ) end [2024-12-21 11:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:19:22] Production.INFO: ==25478== Releasing lock... [2024-12-21 11:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:19:22] Production.INFO: 39.5 MB #Memory Used# [2024-12-21 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:20:05 [end_date_ymd] => 2024-12-21 11:20:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:20:05' and `end` < '2024-12-21 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-21 11:20:17] Production.INFO: count ==1494 [2024-12-21 11:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:20:05 - End Time 2024-12-21 11:20:05 [2024-12-21 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069813', 'tblTempUsageDetail_20' ) start [2024-12-21 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069813', 'tblTempUsageDetail_20' ) end [2024-12-21 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069813', 'tblTempVendorCDR_20' ) start [2024-12-21 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069813', 'tblTempVendorCDR_20' ) end [2024-12-21 11:20:18] Production.INFO: ProcessCDR(1,14069813,1,1,2) [2024-12-21 11:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069813', 'tblTempUsageDetail_20' ) start [2024-12-21 11:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069813', 'tblTempUsageDetail_20' ) end [2024-12-21 11:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:20:21] Production.INFO: ==25554== Releasing lock... [2024-12-21 11:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:20:21] Production.INFO: 39.25 MB #Memory Used# [2024-12-21 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:21:05 [end_date_ymd] => 2024-12-21 11:21:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:21:05' and `end` < '2024-12-21 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-21 11:21:18] Production.INFO: count ==1541 [2024-12-21 11:21:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:21:05 - End Time 2024-12-21 11:21:05 [2024-12-21 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069819', 'tblTempUsageDetail_20' ) start [2024-12-21 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069819', 'tblTempUsageDetail_20' ) end [2024-12-21 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069819', 'tblTempVendorCDR_20' ) start [2024-12-21 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069819', 'tblTempVendorCDR_20' ) end [2024-12-21 11:21:18] Production.INFO: ProcessCDR(1,14069819,1,1,2) [2024-12-21 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069819', 'tblTempUsageDetail_20' ) start [2024-12-21 11:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069819', 'tblTempUsageDetail_20' ) end [2024-12-21 11:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:21:21] Production.INFO: ==25635== Releasing lock... [2024-12-21 11:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:21:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-21 11:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:22:04 [end_date_ymd] => 2024-12-21 11:22:04 [RateCDR] => 1 ) [2024-12-21 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-21 08:22:04' and `end` < '2024-12-21 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-21 11:22:18] Production.INFO: count ==1554 [2024-12-21 11:22:19] Production.ERROR: pbx CDR StartTime 2024-12-21 08:22:04 - End Time 2024-12-21 11:22:04 [2024-12-21 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069824', 'tblTempUsageDetail_20' ) start [2024-12-21 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069824', 'tblTempUsageDetail_20' ) end [2024-12-21 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069824', 'tblTempVendorCDR_20' ) start [2024-12-21 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069824', 'tblTempVendorCDR_20' ) end [2024-12-21 11:22:19] Production.INFO: ProcessCDR(1,14069824,1,1,2) [2024-12-21 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069824', 'tblTempUsageDetail_20' ) start [2024-12-21 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069824', 'tblTempUsageDetail_20' ) end [2024-12-21 11:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:22:22] Production.INFO: ==25710== Releasing lock... [2024-12-21 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:22:22] Production.INFO: 40 MB #Memory Used# [2024-12-21 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:23:05 [end_date_ymd] => 2024-12-21 11:23:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:23:05' and `end` < '2024-12-21 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-21 11:23:18] Production.INFO: count ==1554 [2024-12-21 11:23:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:23:05 - End Time 2024-12-21 11:23:05 [2024-12-21 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069829', 'tblTempUsageDetail_20' ) start [2024-12-21 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069829', 'tblTempUsageDetail_20' ) end [2024-12-21 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069829', 'tblTempVendorCDR_20' ) start [2024-12-21 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069829', 'tblTempVendorCDR_20' ) end [2024-12-21 11:23:18] Production.INFO: ProcessCDR(1,14069829,1,1,2) [2024-12-21 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069829', 'tblTempUsageDetail_20' ) start [2024-12-21 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069829', 'tblTempUsageDetail_20' ) end [2024-12-21 11:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:23:23] Production.INFO: ==25780== Releasing lock... [2024-12-21 11:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:23:23] Production.INFO: 40 MB #Memory Used# [2024-12-21 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:24:06 [end_date_ymd] => 2024-12-21 11:24:06 [RateCDR] => 1 ) [2024-12-21 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:24:06' and `end` < '2024-12-21 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:24:18] Production.INFO: count ==1559 [2024-12-21 11:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:24:06 - End Time 2024-12-21 11:24:06 [2024-12-21 11:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069834', 'tblTempUsageDetail_20' ) start [2024-12-21 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069834', 'tblTempUsageDetail_20' ) end [2024-12-21 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069834', 'tblTempVendorCDR_20' ) start [2024-12-21 11:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069834', 'tblTempVendorCDR_20' ) end [2024-12-21 11:24:18] Production.INFO: ProcessCDR(1,14069834,1,1,2) [2024-12-21 11:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069834', 'tblTempUsageDetail_20' ) start [2024-12-21 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069834', 'tblTempUsageDetail_20' ) end [2024-12-21 11:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:24:21] Production.INFO: ==25852== Releasing lock... [2024-12-21 11:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:24:21] Production.INFO: 40 MB #Memory Used# [2024-12-21 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:25:05 [end_date_ymd] => 2024-12-21 11:25:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:25:05' and `end` < '2024-12-21 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-21 11:25:17] Production.INFO: count ==1565 [2024-12-21 11:25:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:25:05 - End Time 2024-12-21 11:25:05 [2024-12-21 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069839', 'tblTempUsageDetail_20' ) start [2024-12-21 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069839', 'tblTempUsageDetail_20' ) end [2024-12-21 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069839', 'tblTempVendorCDR_20' ) start [2024-12-21 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069839', 'tblTempVendorCDR_20' ) end [2024-12-21 11:25:18] Production.INFO: ProcessCDR(1,14069839,1,1,2) [2024-12-21 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069839', 'tblTempUsageDetail_20' ) start [2024-12-21 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069839', 'tblTempUsageDetail_20' ) end [2024-12-21 11:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:25:21] Production.INFO: ==25925== Releasing lock... [2024-12-21 11:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:25:21] Production.INFO: 40 MB #Memory Used# [2024-12-21 11:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:26:04 [end_date_ymd] => 2024-12-21 11:26:04 [RateCDR] => 1 ) [2024-12-21 11:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:26:04' and `end` < '2024-12-21 11:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:26:17] Production.INFO: count ==1565 [2024-12-21 11:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:26:04 - End Time 2024-12-21 11:26:04 [2024-12-21 11:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069844', 'tblTempUsageDetail_20' ) start [2024-12-21 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069844', 'tblTempUsageDetail_20' ) end [2024-12-21 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069844', 'tblTempVendorCDR_20' ) start [2024-12-21 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069844', 'tblTempVendorCDR_20' ) end [2024-12-21 11:26:17] Production.INFO: ProcessCDR(1,14069844,1,1,2) [2024-12-21 11:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069844', 'tblTempUsageDetail_20' ) start [2024-12-21 11:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069844', 'tblTempUsageDetail_20' ) end [2024-12-21 11:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:26:22] Production.INFO: ==25998== Releasing lock... [2024-12-21 11:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:26:22] Production.INFO: 40 MB #Memory Used# [2024-12-21 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:27:05 [end_date_ymd] => 2024-12-21 11:27:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:27:05' and `end` < '2024-12-21 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-21 11:27:17] Production.INFO: count ==1564 [2024-12-21 11:27:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:27:05 - End Time 2024-12-21 11:27:05 [2024-12-21 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069849', 'tblTempUsageDetail_20' ) start [2024-12-21 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069849', 'tblTempUsageDetail_20' ) end [2024-12-21 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069849', 'tblTempVendorCDR_20' ) start [2024-12-21 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069849', 'tblTempVendorCDR_20' ) end [2024-12-21 11:27:18] Production.INFO: ProcessCDR(1,14069849,1,1,2) [2024-12-21 11:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069849', 'tblTempUsageDetail_20' ) start [2024-12-21 11:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069849', 'tblTempUsageDetail_20' ) end [2024-12-21 11:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:27:21] Production.INFO: ==26071== Releasing lock... [2024-12-21 11:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:27:21] Production.INFO: 40 MB #Memory Used# [2024-12-21 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:28:05 [end_date_ymd] => 2024-12-21 11:28:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:28:05' and `end` < '2024-12-21 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-21 11:28:19] Production.INFO: count ==1564 [2024-12-21 11:28:19] Production.ERROR: pbx CDR StartTime 2024-12-21 08:28:05 - End Time 2024-12-21 11:28:05 [2024-12-21 11:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069854', 'tblTempUsageDetail_20' ) start [2024-12-21 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069854', 'tblTempUsageDetail_20' ) end [2024-12-21 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069854', 'tblTempVendorCDR_20' ) start [2024-12-21 11:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069854', 'tblTempVendorCDR_20' ) end [2024-12-21 11:28:19] Production.INFO: ProcessCDR(1,14069854,1,1,2) [2024-12-21 11:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069854', 'tblTempUsageDetail_20' ) start [2024-12-21 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069854', 'tblTempUsageDetail_20' ) end [2024-12-21 11:28:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:28:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:28:24] Production.INFO: ==26145== Releasing lock... [2024-12-21 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:28:24] Production.INFO: 40 MB #Memory Used# [2024-12-21 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:29:05 [end_date_ymd] => 2024-12-21 11:29:05 [RateCDR] => 1 ) [2024-12-21 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:29:05' and `end` < '2024-12-21 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:29:18] Production.INFO: count ==1572 [2024-12-21 11:29:19] Production.ERROR: pbx CDR StartTime 2024-12-21 08:29:05 - End Time 2024-12-21 11:29:05 [2024-12-21 11:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069859', 'tblTempUsageDetail_20' ) start [2024-12-21 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069859', 'tblTempUsageDetail_20' ) end [2024-12-21 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069859', 'tblTempVendorCDR_20' ) start [2024-12-21 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069859', 'tblTempVendorCDR_20' ) end [2024-12-21 11:29:19] Production.INFO: ProcessCDR(1,14069859,1,1,2) [2024-12-21 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069859', 'tblTempUsageDetail_20' ) start [2024-12-21 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069859', 'tblTempUsageDetail_20' ) end [2024-12-21 11:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:29:23] Production.INFO: ==26216== Releasing lock... [2024-12-21 11:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:29:23] Production.INFO: 40 MB #Memory Used# [2024-12-21 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:30:05 [end_date_ymd] => 2024-12-21 11:30:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:30:05' and `end` < '2024-12-21 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-21 11:30:17] Production.INFO: count ==1577 [2024-12-21 11:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:30:05 - End Time 2024-12-21 11:30:05 [2024-12-21 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069865', 'tblTempUsageDetail_20' ) start [2024-12-21 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069865', 'tblTempUsageDetail_20' ) end [2024-12-21 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069865', 'tblTempVendorCDR_20' ) start [2024-12-21 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069865', 'tblTempVendorCDR_20' ) end [2024-12-21 11:30:18] Production.INFO: ProcessCDR(1,14069865,1,1,2) [2024-12-21 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069865', 'tblTempUsageDetail_20' ) start [2024-12-21 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069865', 'tblTempUsageDetail_20' ) end [2024-12-21 11:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:30:22] Production.INFO: ==26328== Releasing lock... [2024-12-21 11:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:30:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:31:05 [end_date_ymd] => 2024-12-21 11:31:05 [RateCDR] => 1 ) [2024-12-21 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:31:05' and `end` < '2024-12-21 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:31:19] Production.INFO: count ==1621 [2024-12-21 11:31:19] Production.ERROR: pbx CDR StartTime 2024-12-21 08:31:05 - End Time 2024-12-21 11:31:05 [2024-12-21 11:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069870', 'tblTempUsageDetail_20' ) start [2024-12-21 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069870', 'tblTempUsageDetail_20' ) end [2024-12-21 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069870', 'tblTempVendorCDR_20' ) start [2024-12-21 11:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069870', 'tblTempVendorCDR_20' ) end [2024-12-21 11:31:19] Production.INFO: ProcessCDR(1,14069870,1,1,2) [2024-12-21 11:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069870', 'tblTempUsageDetail_20' ) start [2024-12-21 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069870', 'tblTempUsageDetail_20' ) end [2024-12-21 11:31:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:31:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:31:24] Production.INFO: ==26405== Releasing lock... [2024-12-21 11:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:31:24] Production.INFO: 41 MB #Memory Used# [2024-12-21 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:32:05 [end_date_ymd] => 2024-12-21 11:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:32:05' and `end` < '2024-12-21 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-21 11:32:19] Production.INFO: count ==1624 [2024-12-21 11:32:19] Production.ERROR: pbx CDR StartTime 2024-12-21 08:32:05 - End Time 2024-12-21 11:32:05 [2024-12-21 11:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069875', 'tblTempUsageDetail_20' ) start [2024-12-21 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069875', 'tblTempUsageDetail_20' ) end [2024-12-21 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069875', 'tblTempVendorCDR_20' ) start [2024-12-21 11:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069875', 'tblTempVendorCDR_20' ) end [2024-12-21 11:32:19] Production.INFO: ProcessCDR(1,14069875,1,1,2) [2024-12-21 11:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069875', 'tblTempUsageDetail_20' ) start [2024-12-21 11:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069875', 'tblTempUsageDetail_20' ) end [2024-12-21 11:32:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:32:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:32:24] Production.INFO: ==26474== Releasing lock... [2024-12-21 11:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:32:24] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:33:05 [end_date_ymd] => 2024-12-21 11:33:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:33:05' and `end` < '2024-12-21 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-21 11:33:17] Production.INFO: count ==1635 [2024-12-21 11:33:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:33:05 - End Time 2024-12-21 11:33:05 [2024-12-21 11:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069880', 'tblTempUsageDetail_20' ) start [2024-12-21 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069880', 'tblTempUsageDetail_20' ) end [2024-12-21 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069880', 'tblTempVendorCDR_20' ) start [2024-12-21 11:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069880', 'tblTempVendorCDR_20' ) end [2024-12-21 11:33:18] Production.INFO: ProcessCDR(1,14069880,1,1,2) [2024-12-21 11:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069880', 'tblTempUsageDetail_20' ) start [2024-12-21 11:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069880', 'tblTempUsageDetail_20' ) end [2024-12-21 11:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:33:23] Production.INFO: ==26549== Releasing lock... [2024-12-21 11:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:33:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:34:05 [end_date_ymd] => 2024-12-21 11:34:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:34:05' and `end` < '2024-12-21 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-21 11:34:17] Production.INFO: count ==1636 [2024-12-21 11:34:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:34:05 - End Time 2024-12-21 11:34:05 [2024-12-21 11:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069885', 'tblTempUsageDetail_20' ) start [2024-12-21 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069885', 'tblTempUsageDetail_20' ) end [2024-12-21 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069885', 'tblTempVendorCDR_20' ) start [2024-12-21 11:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069885', 'tblTempVendorCDR_20' ) end [2024-12-21 11:34:18] Production.INFO: ProcessCDR(1,14069885,1,1,2) [2024-12-21 11:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069885', 'tblTempUsageDetail_20' ) start [2024-12-21 11:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069885', 'tblTempUsageDetail_20' ) end [2024-12-21 11:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:34:22] Production.INFO: ==26618== Releasing lock... [2024-12-21 11:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:34:22] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:35:04 [end_date_ymd] => 2024-12-21 11:35:04 [RateCDR] => 1 ) [2024-12-21 11: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-21 08:35:04' and `end` < '2024-12-21 11: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-21 11:35:17] Production.INFO: count ==1639 [2024-12-21 11:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:35:04 - End Time 2024-12-21 11:35:04 [2024-12-21 11:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069890', 'tblTempUsageDetail_20' ) start [2024-12-21 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069890', 'tblTempUsageDetail_20' ) end [2024-12-21 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069890', 'tblTempVendorCDR_20' ) start [2024-12-21 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069890', 'tblTempVendorCDR_20' ) end [2024-12-21 11:35:17] Production.INFO: ProcessCDR(1,14069890,1,1,2) [2024-12-21 11:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069890', 'tblTempUsageDetail_20' ) start [2024-12-21 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069890', 'tblTempUsageDetail_20' ) end [2024-12-21 11:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:35:22] Production.INFO: ==26691== Releasing lock... [2024-12-21 11:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:35:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 11:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:36:04 [end_date_ymd] => 2024-12-21 11:36:04 [RateCDR] => 1 ) [2024-12-21 11:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:36:04' and `end` < '2024-12-21 11:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:36:18] Production.INFO: count ==1646 [2024-12-21 11:36:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:36:04 - End Time 2024-12-21 11:36:04 [2024-12-21 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069895', 'tblTempUsageDetail_20' ) start [2024-12-21 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069895', 'tblTempUsageDetail_20' ) end [2024-12-21 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069895', 'tblTempVendorCDR_20' ) start [2024-12-21 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069895', 'tblTempVendorCDR_20' ) end [2024-12-21 11:36:18] Production.INFO: ProcessCDR(1,14069895,1,1,2) [2024-12-21 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069895', 'tblTempUsageDetail_20' ) start [2024-12-21 11:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069895', 'tblTempUsageDetail_20' ) end [2024-12-21 11:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:36:23] Production.INFO: ==26762== Releasing lock... [2024-12-21 11:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:36:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:37:05 [end_date_ymd] => 2024-12-21 11:37:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:37:05' and `end` < '2024-12-21 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-21 11:37:19] Production.INFO: count ==1649 [2024-12-21 11:37:19] Production.ERROR: pbx CDR StartTime 2024-12-21 08:37:05 - End Time 2024-12-21 11:37:05 [2024-12-21 11:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069900', 'tblTempUsageDetail_20' ) start [2024-12-21 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069900', 'tblTempUsageDetail_20' ) end [2024-12-21 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069900', 'tblTempVendorCDR_20' ) start [2024-12-21 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069900', 'tblTempVendorCDR_20' ) end [2024-12-21 11:37:19] Production.INFO: ProcessCDR(1,14069900,1,1,2) [2024-12-21 11:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069900', 'tblTempUsageDetail_20' ) start [2024-12-21 11:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069900', 'tblTempUsageDetail_20' ) end [2024-12-21 11:37:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:37:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:37:24] Production.INFO: ==26832== Releasing lock... [2024-12-21 11:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:37:24] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:38:05 [end_date_ymd] => 2024-12-21 11:38:05 [RateCDR] => 1 ) [2024-12-21 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:38:05' and `end` < '2024-12-21 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:38:18] Production.INFO: count ==1649 [2024-12-21 11:38:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:38:05 - End Time 2024-12-21 11:38:05 [2024-12-21 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069905', 'tblTempUsageDetail_20' ) start [2024-12-21 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069905', 'tblTempUsageDetail_20' ) end [2024-12-21 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069905', 'tblTempVendorCDR_20' ) start [2024-12-21 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069905', 'tblTempVendorCDR_20' ) end [2024-12-21 11:38:18] Production.INFO: ProcessCDR(1,14069905,1,1,2) [2024-12-21 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069905', 'tblTempUsageDetail_20' ) start [2024-12-21 11:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069905', 'tblTempUsageDetail_20' ) end [2024-12-21 11:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:38:21] Production.INFO: ==26904== Releasing lock... [2024-12-21 11:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:38:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:39:04 [end_date_ymd] => 2024-12-21 11:39:04 [RateCDR] => 1 ) [2024-12-21 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-21 08:39:04' and `end` < '2024-12-21 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-21 11:39:17] Production.INFO: count ==1652 [2024-12-21 11:39:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:39:04 - End Time 2024-12-21 11:39:04 [2024-12-21 11:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069910', 'tblTempUsageDetail_20' ) start [2024-12-21 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069910', 'tblTempUsageDetail_20' ) end [2024-12-21 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069910', 'tblTempVendorCDR_20' ) start [2024-12-21 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069910', 'tblTempVendorCDR_20' ) end [2024-12-21 11:39:17] Production.INFO: ProcessCDR(1,14069910,1,1,2) [2024-12-21 11:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069910', 'tblTempUsageDetail_20' ) start [2024-12-21 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069910', 'tblTempUsageDetail_20' ) end [2024-12-21 11:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:39:22] Production.INFO: ==26974== Releasing lock... [2024-12-21 11:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:39:22] Production.INFO: 41 MB #Memory Used# [2024-12-21 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:40:05 [end_date_ymd] => 2024-12-21 11:40:05 [RateCDR] => 1 ) [2024-12-21 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:40:05' and `end` < '2024-12-21 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:40:17] Production.INFO: count ==1568 [2024-12-21 11:40:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:40:05 - End Time 2024-12-21 11:40:05 [2024-12-21 11:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069915', 'tblTempUsageDetail_20' ) start [2024-12-21 11:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069915', 'tblTempUsageDetail_20' ) end [2024-12-21 11:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069915', 'tblTempVendorCDR_20' ) start [2024-12-21 11:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069915', 'tblTempVendorCDR_20' ) end [2024-12-21 11:40:17] Production.INFO: ProcessCDR(1,14069915,1,1,2) [2024-12-21 11:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069915', 'tblTempUsageDetail_20' ) start [2024-12-21 11:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069915', 'tblTempUsageDetail_20' ) end [2024-12-21 11:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:40:20] Production.INFO: ==27049== Releasing lock... [2024-12-21 11:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:40:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-21 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:41:05 [end_date_ymd] => 2024-12-21 11:41:05 [RateCDR] => 1 ) [2024-12-21 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:41:05' and `end` < '2024-12-21 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:41:17] Production.INFO: count ==1610 [2024-12-21 11:41:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:41:05 - End Time 2024-12-21 11:41:05 [2024-12-21 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069921', 'tblTempUsageDetail_20' ) start [2024-12-21 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069921', 'tblTempUsageDetail_20' ) end [2024-12-21 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069921', 'tblTempVendorCDR_20' ) start [2024-12-21 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069921', 'tblTempVendorCDR_20' ) end [2024-12-21 11:41:18] Production.INFO: ProcessCDR(1,14069921,1,1,2) [2024-12-21 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069921', 'tblTempUsageDetail_20' ) start [2024-12-21 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069921', 'tblTempUsageDetail_20' ) end [2024-12-21 11:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:41:22] Production.INFO: ==27125== Releasing lock... [2024-12-21 11:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:41:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:42:05 [end_date_ymd] => 2024-12-21 11:42:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:42:05' and `end` < '2024-12-21 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-21 11:42:17] Production.INFO: count ==1620 [2024-12-21 11:42:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:42:05 - End Time 2024-12-21 11:42:05 [2024-12-21 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069926', 'tblTempUsageDetail_20' ) start [2024-12-21 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069926', 'tblTempUsageDetail_20' ) end [2024-12-21 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069926', 'tblTempVendorCDR_20' ) start [2024-12-21 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069926', 'tblTempVendorCDR_20' ) end [2024-12-21 11:42:18] Production.INFO: ProcessCDR(1,14069926,1,1,2) [2024-12-21 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069926', 'tblTempUsageDetail_20' ) start [2024-12-21 11:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069926', 'tblTempUsageDetail_20' ) end [2024-12-21 11:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:42:21] Production.INFO: ==27196== Releasing lock... [2024-12-21 11:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:42:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:43:05 [end_date_ymd] => 2024-12-21 11:43:05 [RateCDR] => 1 ) [2024-12-21 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:43:05' and `end` < '2024-12-21 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:43:17] Production.INFO: count ==1626 [2024-12-21 11:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:43:05 - End Time 2024-12-21 11:43:05 [2024-12-21 11:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069931', 'tblTempUsageDetail_20' ) start [2024-12-21 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069931', 'tblTempUsageDetail_20' ) end [2024-12-21 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069931', 'tblTempVendorCDR_20' ) start [2024-12-21 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069931', 'tblTempVendorCDR_20' ) end [2024-12-21 11:43:17] Production.INFO: ProcessCDR(1,14069931,1,1,2) [2024-12-21 11:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069931', 'tblTempUsageDetail_20' ) start [2024-12-21 11:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069931', 'tblTempUsageDetail_20' ) end [2024-12-21 11:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:43:20] Production.INFO: ==27268== Releasing lock... [2024-12-21 11:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:43:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:44:05 [end_date_ymd] => 2024-12-21 11:44:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:44:05' and `end` < '2024-12-21 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-21 11:44:17] Production.INFO: count ==1635 [2024-12-21 11:44:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:44:05 - End Time 2024-12-21 11:44:05 [2024-12-21 11:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069936', 'tblTempUsageDetail_20' ) start [2024-12-21 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069936', 'tblTempUsageDetail_20' ) end [2024-12-21 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069936', 'tblTempVendorCDR_20' ) start [2024-12-21 11:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069936', 'tblTempVendorCDR_20' ) end [2024-12-21 11:44:18] Production.INFO: ProcessCDR(1,14069936,1,1,2) [2024-12-21 11:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069936', 'tblTempUsageDetail_20' ) start [2024-12-21 11:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069936', 'tblTempUsageDetail_20' ) end [2024-12-21 11:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:44:22] Production.INFO: ==27338== Releasing lock... [2024-12-21 11:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:44:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:45:04 [end_date_ymd] => 2024-12-21 11:45:04 [RateCDR] => 1 ) [2024-12-21 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-21 08:45:04' and `end` < '2024-12-21 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-21 11:45:17] Production.INFO: count ==1635 [2024-12-21 11:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:45:04 - End Time 2024-12-21 11:45:04 [2024-12-21 11:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069941', 'tblTempUsageDetail_20' ) start [2024-12-21 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069941', 'tblTempUsageDetail_20' ) end [2024-12-21 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069941', 'tblTempVendorCDR_20' ) start [2024-12-21 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069941', 'tblTempVendorCDR_20' ) end [2024-12-21 11:45:17] Production.INFO: ProcessCDR(1,14069941,1,1,2) [2024-12-21 11:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069941', 'tblTempUsageDetail_20' ) start [2024-12-21 11:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069941', 'tblTempUsageDetail_20' ) end [2024-12-21 11:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:45:20] Production.INFO: ==27408== Releasing lock... [2024-12-21 11:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:45:20] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:46:05 [end_date_ymd] => 2024-12-21 11:46:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:46:05' and `end` < '2024-12-21 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-21 11:46:18] Production.INFO: count ==1634 [2024-12-21 11:46:19] Production.ERROR: pbx CDR StartTime 2024-12-21 08:46:05 - End Time 2024-12-21 11:46:05 [2024-12-21 11:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069946', 'tblTempUsageDetail_20' ) start [2024-12-21 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069946', 'tblTempUsageDetail_20' ) end [2024-12-21 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069946', 'tblTempVendorCDR_20' ) start [2024-12-21 11:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069946', 'tblTempVendorCDR_20' ) end [2024-12-21 11:46:19] Production.INFO: ProcessCDR(1,14069946,1,1,2) [2024-12-21 11:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069946', 'tblTempUsageDetail_20' ) start [2024-12-21 11:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069946', 'tblTempUsageDetail_20' ) end [2024-12-21 11:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:46:22] Production.INFO: ==27520== Releasing lock... [2024-12-21 11:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:46:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:47:05 [end_date_ymd] => 2024-12-21 11:47:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:47:05' and `end` < '2024-12-21 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-21 11:47:17] Production.INFO: count ==1634 [2024-12-21 11:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:47:05 - End Time 2024-12-21 11:47:05 [2024-12-21 11:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069951', 'tblTempUsageDetail_20' ) start [2024-12-21 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069951', 'tblTempUsageDetail_20' ) end [2024-12-21 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069951', 'tblTempVendorCDR_20' ) start [2024-12-21 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069951', 'tblTempVendorCDR_20' ) end [2024-12-21 11:47:17] Production.INFO: ProcessCDR(1,14069951,1,1,2) [2024-12-21 11:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069951', 'tblTempUsageDetail_20' ) start [2024-12-21 11:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069951', 'tblTempUsageDetail_20' ) end [2024-12-21 11:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:47:20] Production.INFO: ==27594== Releasing lock... [2024-12-21 11:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:47:20] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 11:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:48:04 [end_date_ymd] => 2024-12-21 11:48:04 [RateCDR] => 1 ) [2024-12-21 11:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:48:04' and `end` < '2024-12-21 11:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:48:18] Production.INFO: count ==1630 [2024-12-21 11:48:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:48:04 - End Time 2024-12-21 11:48:04 [2024-12-21 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069956', 'tblTempUsageDetail_20' ) start [2024-12-21 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069956', 'tblTempUsageDetail_20' ) end [2024-12-21 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069956', 'tblTempVendorCDR_20' ) start [2024-12-21 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069956', 'tblTempVendorCDR_20' ) end [2024-12-21 11:48:18] Production.INFO: ProcessCDR(1,14069956,1,1,2) [2024-12-21 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069956', 'tblTempUsageDetail_20' ) start [2024-12-21 11:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069956', 'tblTempUsageDetail_20' ) end [2024-12-21 11:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:48:23] Production.INFO: ==27666== Releasing lock... [2024-12-21 11:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:48:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:49:05 [end_date_ymd] => 2024-12-21 11:49:05 [RateCDR] => 1 ) [2024-12-21 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:49:05' and `end` < '2024-12-21 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:49:18] Production.INFO: count ==1631 [2024-12-21 11:49:19] Production.ERROR: pbx CDR StartTime 2024-12-21 08:49:05 - End Time 2024-12-21 11:49:05 [2024-12-21 11:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069961', 'tblTempUsageDetail_20' ) start [2024-12-21 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069961', 'tblTempUsageDetail_20' ) end [2024-12-21 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069961', 'tblTempVendorCDR_20' ) start [2024-12-21 11:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069961', 'tblTempVendorCDR_20' ) end [2024-12-21 11:49:19] Production.INFO: ProcessCDR(1,14069961,1,1,2) [2024-12-21 11:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069961', 'tblTempUsageDetail_20' ) start [2024-12-21 11:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069961', 'tblTempUsageDetail_20' ) end [2024-12-21 11:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:49:23] Production.INFO: ==27741== Releasing lock... [2024-12-21 11:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:49:23] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:50:06 [end_date_ymd] => 2024-12-21 11:50:06 [RateCDR] => 1 ) [2024-12-21 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-21 08:50:06' and `end` < '2024-12-21 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-21 11:50:18] Production.INFO: count ==1633 [2024-12-21 11:50:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:50:06 - End Time 2024-12-21 11:50:06 [2024-12-21 11:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069967', 'tblTempUsageDetail_20' ) start [2024-12-21 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069967', 'tblTempUsageDetail_20' ) end [2024-12-21 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069967', 'tblTempVendorCDR_20' ) start [2024-12-21 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069967', 'tblTempVendorCDR_20' ) end [2024-12-21 11:50:18] Production.INFO: ProcessCDR(1,14069967,1,1,2) [2024-12-21 11:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069967', 'tblTempUsageDetail_20' ) start [2024-12-21 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069967', 'tblTempUsageDetail_20' ) end [2024-12-21 11:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:50:23] Production.INFO: ==27813== Releasing lock... [2024-12-21 11:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:50:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:51:05 [end_date_ymd] => 2024-12-21 11:51:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:51:05' and `end` < '2024-12-21 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-21 11:51:17] Production.INFO: count ==1658 [2024-12-21 11:51:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:51:05 - End Time 2024-12-21 11:51:05 [2024-12-21 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069972', 'tblTempUsageDetail_20' ) start [2024-12-21 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069972', 'tblTempUsageDetail_20' ) end [2024-12-21 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069972', 'tblTempVendorCDR_20' ) start [2024-12-21 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069972', 'tblTempVendorCDR_20' ) end [2024-12-21 11:51:18] Production.INFO: ProcessCDR(1,14069972,1,1,2) [2024-12-21 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069972', 'tblTempUsageDetail_20' ) start [2024-12-21 11:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069972', 'tblTempUsageDetail_20' ) end [2024-12-21 11:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:51:21] Production.INFO: ==27887== Releasing lock... [2024-12-21 11:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:51:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:52:05 [end_date_ymd] => 2024-12-21 11:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:52:05' and `end` < '2024-12-21 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-21 11:52:17] Production.INFO: count ==1663 [2024-12-21 11:52:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:52:05 - End Time 2024-12-21 11:52:05 [2024-12-21 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069977', 'tblTempUsageDetail_20' ) start [2024-12-21 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069977', 'tblTempUsageDetail_20' ) end [2024-12-21 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069977', 'tblTempVendorCDR_20' ) start [2024-12-21 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069977', 'tblTempVendorCDR_20' ) end [2024-12-21 11:52:18] Production.INFO: ProcessCDR(1,14069977,1,1,2) [2024-12-21 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069977', 'tblTempUsageDetail_20' ) start [2024-12-21 11:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069977', 'tblTempUsageDetail_20' ) end [2024-12-21 11:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:52:21] Production.INFO: ==27959== Releasing lock... [2024-12-21 11:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:52:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:53:05 [end_date_ymd] => 2024-12-21 11:53:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:53:05' and `end` < '2024-12-21 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-21 11:53:17] Production.INFO: count ==1654 [2024-12-21 11:53:17] Production.ERROR: pbx CDR StartTime 2024-12-21 08:53:05 - End Time 2024-12-21 11:53:05 [2024-12-21 11:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069982', 'tblTempUsageDetail_20' ) start [2024-12-21 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069982', 'tblTempUsageDetail_20' ) end [2024-12-21 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069982', 'tblTempVendorCDR_20' ) start [2024-12-21 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069982', 'tblTempVendorCDR_20' ) end [2024-12-21 11:53:18] Production.INFO: ProcessCDR(1,14069982,1,1,2) [2024-12-21 11:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069982', 'tblTempUsageDetail_20' ) start [2024-12-21 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069982', 'tblTempUsageDetail_20' ) end [2024-12-21 11:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:53:22] Production.INFO: ==28031== Releasing lock... [2024-12-21 11:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:53:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:54:05 [end_date_ymd] => 2024-12-21 11:54:05 [RateCDR] => 1 ) [2024-12-21 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:54:05' and `end` < '2024-12-21 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:54:18] Production.INFO: count ==1650 [2024-12-21 11:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:54:05 - End Time 2024-12-21 11:54:05 [2024-12-21 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069987', 'tblTempUsageDetail_20' ) start [2024-12-21 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069987', 'tblTempUsageDetail_20' ) end [2024-12-21 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069987', 'tblTempVendorCDR_20' ) start [2024-12-21 11:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069987', 'tblTempVendorCDR_20' ) end [2024-12-21 11:54:19] Production.INFO: ProcessCDR(1,14069987,1,1,2) [2024-12-21 11:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069987', 'tblTempUsageDetail_20' ) start [2024-12-21 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069987', 'tblTempUsageDetail_20' ) end [2024-12-21 11:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:54:23] Production.INFO: ==28106== Releasing lock... [2024-12-21 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:54:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:55:05 [end_date_ymd] => 2024-12-21 11:55:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:55:05' and `end` < '2024-12-21 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-21 11:55:17] Production.INFO: count ==1652 [2024-12-21 11:55:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:55:05 - End Time 2024-12-21 11:55:05 [2024-12-21 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069992', 'tblTempUsageDetail_20' ) start [2024-12-21 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069992', 'tblTempUsageDetail_20' ) end [2024-12-21 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069992', 'tblTempVendorCDR_20' ) start [2024-12-21 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069992', 'tblTempVendorCDR_20' ) end [2024-12-21 11:55:18] Production.INFO: ProcessCDR(1,14069992,1,1,2) [2024-12-21 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069992', 'tblTempUsageDetail_20' ) start [2024-12-21 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069992', 'tblTempUsageDetail_20' ) end [2024-12-21 11:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:55:22] Production.INFO: ==28178== Releasing lock... [2024-12-21 11:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:55:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:56:05 [end_date_ymd] => 2024-12-21 11:56:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:56:05' and `end` < '2024-12-21 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-21 11:56:17] Production.INFO: count ==1652 [2024-12-21 11:56:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:56:05 - End Time 2024-12-21 11:56:05 [2024-12-21 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069997', 'tblTempUsageDetail_20' ) start [2024-12-21 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14069997', 'tblTempUsageDetail_20' ) end [2024-12-21 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069997', 'tblTempVendorCDR_20' ) start [2024-12-21 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14069997', 'tblTempVendorCDR_20' ) end [2024-12-21 11:56:18] Production.INFO: ProcessCDR(1,14069997,1,1,2) [2024-12-21 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14069997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14069997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14069997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14069997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069997', 'tblTempUsageDetail_20' ) start [2024-12-21 11:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14069997', 'tblTempUsageDetail_20' ) end [2024-12-21 11:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:56:21] Production.INFO: ==28247== Releasing lock... [2024-12-21 11:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:56:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:57:05 [end_date_ymd] => 2024-12-21 11:57:05 [RateCDR] => 1 ) [2024-12-21 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:57:05' and `end` < '2024-12-21 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:57:17] Production.INFO: count ==1656 [2024-12-21 11:57:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:57:05 - End Time 2024-12-21 11:57:05 [2024-12-21 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070002', 'tblTempUsageDetail_20' ) start [2024-12-21 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070002', 'tblTempUsageDetail_20' ) end [2024-12-21 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070002', 'tblTempVendorCDR_20' ) start [2024-12-21 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070002', 'tblTempVendorCDR_20' ) end [2024-12-21 11:57:18] Production.INFO: ProcessCDR(1,14070002,1,1,2) [2024-12-21 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070002', 'tblTempUsageDetail_20' ) start [2024-12-21 11:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070002', 'tblTempUsageDetail_20' ) end [2024-12-21 11:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:57:23] Production.INFO: ==28325== Releasing lock... [2024-12-21 11:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:57:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:58:05 [end_date_ymd] => 2024-12-21 11:58:05 [RateCDR] => 1 ) [2024-12-21 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-21 08:58:05' and `end` < '2024-12-21 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-21 11:58:18] Production.INFO: count ==1663 [2024-12-21 11:58:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:58:05 - End Time 2024-12-21 11:58:05 [2024-12-21 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070007', 'tblTempUsageDetail_20' ) start [2024-12-21 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070007', 'tblTempUsageDetail_20' ) end [2024-12-21 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070007', 'tblTempVendorCDR_20' ) start [2024-12-21 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070007', 'tblTempVendorCDR_20' ) end [2024-12-21 11:58:18] Production.INFO: ProcessCDR(1,14070007,1,1,2) [2024-12-21 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070007', 'tblTempUsageDetail_20' ) start [2024-12-21 11:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070007', 'tblTempUsageDetail_20' ) end [2024-12-21 11:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:58:21] Production.INFO: ==28403== Releasing lock... [2024-12-21 11:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:58:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 08:59:05 [end_date_ymd] => 2024-12-21 11:59:05 [RateCDR] => 1 ) [2024-12-21 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 08:59:05' and `end` < '2024-12-21 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 11:59:17] Production.INFO: count ==1663 [2024-12-21 11:59:18] Production.ERROR: pbx CDR StartTime 2024-12-21 08:59:05 - End Time 2024-12-21 11:59:05 [2024-12-21 11:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070012', 'tblTempUsageDetail_20' ) start [2024-12-21 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070012', 'tblTempUsageDetail_20' ) end [2024-12-21 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070012', 'tblTempVendorCDR_20' ) start [2024-12-21 11:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070012', 'tblTempVendorCDR_20' ) end [2024-12-21 11:59:18] Production.INFO: ProcessCDR(1,14070012,1,1,2) [2024-12-21 11:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 11:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070012', 'tblTempUsageDetail_20' ) start [2024-12-21 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070012', 'tblTempUsageDetail_20' ) end [2024-12-21 11:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 11:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 11:59:23] Production.INFO: ==28481== Releasing lock... [2024-12-21 11:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 11:59:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:00:05 [end_date_ymd] => 2024-12-21 12:00:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:00:05' and `end` < '2024-12-21 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-21 12:00:18] Production.INFO: count ==1676 [2024-12-21 12:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:00:05 - End Time 2024-12-21 12:00:05 [2024-12-21 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070018', 'tblTempUsageDetail_20' ) start [2024-12-21 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070018', 'tblTempUsageDetail_20' ) end [2024-12-21 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070018', 'tblTempVendorCDR_20' ) start [2024-12-21 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070018', 'tblTempVendorCDR_20' ) end [2024-12-21 12:00:18] Production.INFO: ProcessCDR(1,14070018,1,1,2) [2024-12-21 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070018', 'tblTempUsageDetail_20' ) start [2024-12-21 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070018', 'tblTempUsageDetail_20' ) end [2024-12-21 12:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:00:22] Production.INFO: ==28556== Releasing lock... [2024-12-21 12:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:00:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:01:05 [end_date_ymd] => 2024-12-21 12:01:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:01:05' and `end` < '2024-12-21 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-21 12:01:19] Production.INFO: count ==1756 [2024-12-21 12:01:20] Production.ERROR: pbx CDR StartTime 2024-12-21 09:01:05 - End Time 2024-12-21 12:01:05 [2024-12-21 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070023', 'tblTempUsageDetail_20' ) start [2024-12-21 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070023', 'tblTempUsageDetail_20' ) end [2024-12-21 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070023', 'tblTempVendorCDR_20' ) start [2024-12-21 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070023', 'tblTempVendorCDR_20' ) end [2024-12-21 12:01:20] Production.INFO: ProcessCDR(1,14070023,1,1,2) [2024-12-21 12:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070023', 'tblTempUsageDetail_20' ) start [2024-12-21 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070023', 'tblTempUsageDetail_20' ) end [2024-12-21 12:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:01:23] Production.INFO: ==28649== Releasing lock... [2024-12-21 12:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:01:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:02:05 [end_date_ymd] => 2024-12-21 12:02:05 [RateCDR] => 1 ) [2024-12-21 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:02:05' and `end` < '2024-12-21 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:02:17] Production.INFO: count ==1742 [2024-12-21 12:02:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:02:05 - End Time 2024-12-21 12:02:05 [2024-12-21 12:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070028', 'tblTempUsageDetail_20' ) start [2024-12-21 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070028', 'tblTempUsageDetail_20' ) end [2024-12-21 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070028', 'tblTempVendorCDR_20' ) start [2024-12-21 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070028', 'tblTempVendorCDR_20' ) end [2024-12-21 12:02:18] Production.INFO: ProcessCDR(1,14070028,1,1,2) [2024-12-21 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070028', 'tblTempUsageDetail_20' ) start [2024-12-21 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070028', 'tblTempUsageDetail_20' ) end [2024-12-21 12:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:02:22] Production.INFO: ==28763== Releasing lock... [2024-12-21 12:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:02:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 12:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:03:04 [end_date_ymd] => 2024-12-21 12:03:04 [RateCDR] => 1 ) [2024-12-21 12: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-21 09:03:04' and `end` < '2024-12-21 12:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:03:17] Production.INFO: count ==1751 [2024-12-21 12:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:03:04 - End Time 2024-12-21 12:03:04 [2024-12-21 12:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070033', 'tblTempUsageDetail_20' ) start [2024-12-21 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070033', 'tblTempUsageDetail_20' ) end [2024-12-21 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070033', 'tblTempVendorCDR_20' ) start [2024-12-21 12:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070033', 'tblTempVendorCDR_20' ) end [2024-12-21 12:03:17] Production.INFO: ProcessCDR(1,14070033,1,1,2) [2024-12-21 12:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070033', 'tblTempUsageDetail_20' ) start [2024-12-21 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070033', 'tblTempUsageDetail_20' ) end [2024-12-21 12:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:03:22] Production.INFO: ==28837== Releasing lock... [2024-12-21 12:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:03:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:04:04 [end_date_ymd] => 2024-12-21 12:04:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:04:04' and `end` < '2024-12-21 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-21 12:04:16] Production.INFO: count ==1757 [2024-12-21 12:04:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:04:04 - End Time 2024-12-21 12:04:04 [2024-12-21 12:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070038', 'tblTempUsageDetail_20' ) start [2024-12-21 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070038', 'tblTempUsageDetail_20' ) end [2024-12-21 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070038', 'tblTempVendorCDR_20' ) start [2024-12-21 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070038', 'tblTempVendorCDR_20' ) end [2024-12-21 12:04:17] Production.INFO: ProcessCDR(1,14070038,1,1,2) [2024-12-21 12:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070038', 'tblTempUsageDetail_20' ) start [2024-12-21 12:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070038', 'tblTempUsageDetail_20' ) end [2024-12-21 12:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:04:21] Production.INFO: ==28911== Releasing lock... [2024-12-21 12:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:04:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:05:04 [end_date_ymd] => 2024-12-21 12:05:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:05:04' and `end` < '2024-12-21 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-21 12:05:17] Production.INFO: count ==1757 [2024-12-21 12:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:05:04 - End Time 2024-12-21 12:05:04 [2024-12-21 12:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070041', 'tblTempUsageDetail_20' ) start [2024-12-21 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070041', 'tblTempUsageDetail_20' ) end [2024-12-21 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070041', 'tblTempVendorCDR_20' ) start [2024-12-21 12:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070041', 'tblTempVendorCDR_20' ) end [2024-12-21 12:05:17] Production.INFO: ProcessCDR(1,14070041,1,1,2) [2024-12-21 12:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070041', 'tblTempUsageDetail_20' ) start [2024-12-21 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070041', 'tblTempUsageDetail_20' ) end [2024-12-21 12:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:05:22] Production.INFO: ==28989== Releasing lock... [2024-12-21 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:05:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:06:05 [end_date_ymd] => 2024-12-21 12:06:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:06:05' and `end` < '2024-12-21 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:06:17] Production.INFO: count ==1751 [2024-12-21 12:06:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:06:05 - End Time 2024-12-21 12:06:05 [2024-12-21 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070048', 'tblTempUsageDetail_20' ) start [2024-12-21 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070048', 'tblTempUsageDetail_20' ) end [2024-12-21 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070048', 'tblTempVendorCDR_20' ) start [2024-12-21 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070048', 'tblTempVendorCDR_20' ) end [2024-12-21 12:06:18] Production.INFO: ProcessCDR(1,14070048,1,1,2) [2024-12-21 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070048', 'tblTempUsageDetail_20' ) start [2024-12-21 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070048', 'tblTempUsageDetail_20' ) end [2024-12-21 12:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:06:21] Production.INFO: ==29063== Releasing lock... [2024-12-21 12:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:06:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:07:04 [end_date_ymd] => 2024-12-21 12:07:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:07:04' and `end` < '2024-12-21 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-21 12:07:17] Production.INFO: count ==1777 [2024-12-21 12:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:07:04 - End Time 2024-12-21 12:07:04 [2024-12-21 12:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070053', 'tblTempUsageDetail_20' ) start [2024-12-21 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070053', 'tblTempUsageDetail_20' ) end [2024-12-21 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070053', 'tblTempVendorCDR_20' ) start [2024-12-21 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070053', 'tblTempVendorCDR_20' ) end [2024-12-21 12:07:17] Production.INFO: ProcessCDR(1,14070053,1,1,2) [2024-12-21 12:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070053', 'tblTempUsageDetail_20' ) start [2024-12-21 12:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070053', 'tblTempUsageDetail_20' ) end [2024-12-21 12:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:07:20] Production.INFO: ==29136== Releasing lock... [2024-12-21 12:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:07:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:08:04 [end_date_ymd] => 2024-12-21 12:08:04 [RateCDR] => 1 ) [2024-12-21 12: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-21 09:08:04' and `end` < '2024-12-21 12: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-21 12:08:17] Production.INFO: count ==1769 [2024-12-21 12:08:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:08:04 - End Time 2024-12-21 12:08:04 [2024-12-21 12:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070058', 'tblTempUsageDetail_20' ) start [2024-12-21 12:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070058', 'tblTempUsageDetail_20' ) end [2024-12-21 12:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070058', 'tblTempVendorCDR_20' ) start [2024-12-21 12:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070058', 'tblTempVendorCDR_20' ) end [2024-12-21 12:08:17] Production.INFO: ProcessCDR(1,14070058,1,1,2) [2024-12-21 12:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070058', 'tblTempUsageDetail_20' ) start [2024-12-21 12:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070058', 'tblTempUsageDetail_20' ) end [2024-12-21 12:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:08:20] Production.INFO: ==29220== Releasing lock... [2024-12-21 12:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:08:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 12:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:09:04 [end_date_ymd] => 2024-12-21 12:09:04 [RateCDR] => 1 ) [2024-12-21 12:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:09:04' and `end` < '2024-12-21 12:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:09:17] Production.INFO: count ==1769 [2024-12-21 12:09:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:09:04 - End Time 2024-12-21 12:09:04 [2024-12-21 12:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070063', 'tblTempUsageDetail_20' ) start [2024-12-21 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070063', 'tblTempUsageDetail_20' ) end [2024-12-21 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070063', 'tblTempVendorCDR_20' ) start [2024-12-21 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070063', 'tblTempVendorCDR_20' ) end [2024-12-21 12:09:17] Production.INFO: ProcessCDR(1,14070063,1,1,2) [2024-12-21 12:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070063', 'tblTempUsageDetail_20' ) start [2024-12-21 12:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070063', 'tblTempUsageDetail_20' ) end [2024-12-21 12:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:09:22] Production.INFO: ==29292== Releasing lock... [2024-12-21 12:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:09:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:10:05 [end_date_ymd] => 2024-12-21 12:10:05 [RateCDR] => 1 ) [2024-12-21 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:10:05' and `end` < '2024-12-21 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:10:17] Production.INFO: count ==1770 [2024-12-21 12:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:10:05 - End Time 2024-12-21 12:10:05 [2024-12-21 12:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070068', 'tblTempUsageDetail_20' ) start [2024-12-21 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070068', 'tblTempUsageDetail_20' ) end [2024-12-21 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070068', 'tblTempVendorCDR_20' ) start [2024-12-21 12:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070068', 'tblTempVendorCDR_20' ) end [2024-12-21 12:10:18] Production.INFO: ProcessCDR(1,14070068,1,1,2) [2024-12-21 12:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070068', 'tblTempUsageDetail_20' ) start [2024-12-21 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070068', 'tblTempUsageDetail_20' ) end [2024-12-21 12:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:10:23] Production.INFO: ==29369== Releasing lock... [2024-12-21 12:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:10:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:11:05 [end_date_ymd] => 2024-12-21 12:11:05 [RateCDR] => 1 ) [2024-12-21 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:11:05' and `end` < '2024-12-21 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:11:17] Production.INFO: count ==1837 [2024-12-21 12:11:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:11:05 - End Time 2024-12-21 12:11:05 [2024-12-21 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070074', 'tblTempUsageDetail_20' ) start [2024-12-21 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070074', 'tblTempUsageDetail_20' ) end [2024-12-21 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070074', 'tblTempVendorCDR_20' ) start [2024-12-21 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070074', 'tblTempVendorCDR_20' ) end [2024-12-21 12:11:18] Production.INFO: ProcessCDR(1,14070074,1,1,2) [2024-12-21 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070074', 'tblTempUsageDetail_20' ) start [2024-12-21 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070074', 'tblTempUsageDetail_20' ) end [2024-12-21 12:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:11:21] Production.INFO: ==29447== Releasing lock... [2024-12-21 12:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:11:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:12:04 [end_date_ymd] => 2024-12-21 12:12:04 [RateCDR] => 1 ) [2024-12-21 12:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:12:04' and `end` < '2024-12-21 12:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:12:18] Production.INFO: count ==1832 [2024-12-21 12:12:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:12:04 - End Time 2024-12-21 12:12:04 [2024-12-21 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070079', 'tblTempUsageDetail_20' ) start [2024-12-21 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070079', 'tblTempUsageDetail_20' ) end [2024-12-21 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070079', 'tblTempVendorCDR_20' ) start [2024-12-21 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070079', 'tblTempVendorCDR_20' ) end [2024-12-21 12:12:18] Production.INFO: ProcessCDR(1,14070079,1,1,2) [2024-12-21 12:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070079', 'tblTempUsageDetail_20' ) start [2024-12-21 12:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070079', 'tblTempUsageDetail_20' ) end [2024-12-21 12:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:12:21] Production.INFO: ==29518== Releasing lock... [2024-12-21 12:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:12:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:13:05 [end_date_ymd] => 2024-12-21 12:13:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:13:05' and `end` < '2024-12-21 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-21 12:13:18] Production.INFO: count ==1831 [2024-12-21 12:13:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:13:05 - End Time 2024-12-21 12:13:05 [2024-12-21 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070084', 'tblTempUsageDetail_20' ) start [2024-12-21 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070084', 'tblTempUsageDetail_20' ) end [2024-12-21 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070084', 'tblTempVendorCDR_20' ) start [2024-12-21 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070084', 'tblTempVendorCDR_20' ) end [2024-12-21 12:13:18] Production.INFO: ProcessCDR(1,14070084,1,1,2) [2024-12-21 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070084', 'tblTempUsageDetail_20' ) start [2024-12-21 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070084', 'tblTempUsageDetail_20' ) end [2024-12-21 12:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:13:21] Production.INFO: ==29596== Releasing lock... [2024-12-21 12:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:13:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:14:05 [end_date_ymd] => 2024-12-21 12:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:14:05' and `end` < '2024-12-21 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-21 12:14:18] Production.INFO: count ==1825 [2024-12-21 12:14:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:14:05 - End Time 2024-12-21 12:14:05 [2024-12-21 12:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070089', 'tblTempUsageDetail_20' ) start [2024-12-21 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070089', 'tblTempUsageDetail_20' ) end [2024-12-21 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070089', 'tblTempVendorCDR_20' ) start [2024-12-21 12:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070089', 'tblTempVendorCDR_20' ) end [2024-12-21 12:14:18] Production.INFO: ProcessCDR(1,14070089,1,1,2) [2024-12-21 12:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070089', 'tblTempUsageDetail_20' ) start [2024-12-21 12:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070089', 'tblTempUsageDetail_20' ) end [2024-12-21 12:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:14:23] Production.INFO: ==29678== Releasing lock... [2024-12-21 12:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:14:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:15:05 [end_date_ymd] => 2024-12-21 12:15:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:15:05' and `end` < '2024-12-21 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-21 12:15:17] Production.INFO: count ==1819 [2024-12-21 12:15:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:15:05 - End Time 2024-12-21 12:15:05 [2024-12-21 12:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070094', 'tblTempUsageDetail_20' ) start [2024-12-21 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070094', 'tblTempUsageDetail_20' ) end [2024-12-21 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070094', 'tblTempVendorCDR_20' ) start [2024-12-21 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070094', 'tblTempVendorCDR_20' ) end [2024-12-21 12:15:17] Production.INFO: ProcessCDR(1,14070094,1,1,2) [2024-12-21 12:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070094', 'tblTempUsageDetail_20' ) start [2024-12-21 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070094', 'tblTempUsageDetail_20' ) end [2024-12-21 12:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:15:22] Production.INFO: ==29759== Releasing lock... [2024-12-21 12:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:15:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:16:04 [end_date_ymd] => 2024-12-21 12:16:04 [RateCDR] => 1 ) [2024-12-21 12: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-21 09:16:04' and `end` < '2024-12-21 12: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-21 12:16:16] Production.INFO: count ==1823 [2024-12-21 12:16:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:16:04 - End Time 2024-12-21 12:16:04 [2024-12-21 12:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070096', 'tblTempUsageDetail_20' ) start [2024-12-21 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070096', 'tblTempUsageDetail_20' ) end [2024-12-21 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070096', 'tblTempVendorCDR_20' ) start [2024-12-21 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070096', 'tblTempVendorCDR_20' ) end [2024-12-21 12:16:17] Production.INFO: ProcessCDR(1,14070096,1,1,2) [2024-12-21 12:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070096', 'tblTempUsageDetail_20' ) start [2024-12-21 12:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070096', 'tblTempUsageDetail_20' ) end [2024-12-21 12:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:16:21] Production.INFO: ==29833== Releasing lock... [2024-12-21 12:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:16:21] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:17:05 [end_date_ymd] => 2024-12-21 12:17:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:17:05' and `end` < '2024-12-21 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-21 12:17:17] Production.INFO: count ==1822 [2024-12-21 12:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:17:05 - End Time 2024-12-21 12:17:05 [2024-12-21 12:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070104', 'tblTempUsageDetail_20' ) start [2024-12-21 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070104', 'tblTempUsageDetail_20' ) end [2024-12-21 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070104', 'tblTempVendorCDR_20' ) start [2024-12-21 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070104', 'tblTempVendorCDR_20' ) end [2024-12-21 12:17:18] Production.INFO: ProcessCDR(1,14070104,1,1,2) [2024-12-21 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070104', 'tblTempUsageDetail_20' ) start [2024-12-21 12:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070104', 'tblTempUsageDetail_20' ) end [2024-12-21 12:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:17:21] Production.INFO: ==29956== Releasing lock... [2024-12-21 12:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:17:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 12:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:18:04 [end_date_ymd] => 2024-12-21 12:18:04 [RateCDR] => 1 ) [2024-12-21 12: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-21 09:18:04' and `end` < '2024-12-21 12: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-21 12:18:16] Production.INFO: count ==1808 [2024-12-21 12:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:18:04 - End Time 2024-12-21 12:18:04 [2024-12-21 12:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070109', 'tblTempUsageDetail_20' ) start [2024-12-21 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070109', 'tblTempUsageDetail_20' ) end [2024-12-21 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070109', 'tblTempVendorCDR_20' ) start [2024-12-21 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070109', 'tblTempVendorCDR_20' ) end [2024-12-21 12:18:17] Production.INFO: ProcessCDR(1,14070109,1,1,2) [2024-12-21 12:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070109', 'tblTempUsageDetail_20' ) start [2024-12-21 12:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070109', 'tblTempUsageDetail_20' ) end [2024-12-21 12:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:18:20] Production.INFO: ==30032== Releasing lock... [2024-12-21 12:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:18:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:19:04 [end_date_ymd] => 2024-12-21 12:19:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:19:04' and `end` < '2024-12-21 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-21 12:19:17] Production.INFO: count ==1815 [2024-12-21 12:19:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:19:04 - End Time 2024-12-21 12:19:04 [2024-12-21 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070114', 'tblTempUsageDetail_20' ) start [2024-12-21 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070114', 'tblTempUsageDetail_20' ) end [2024-12-21 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070114', 'tblTempVendorCDR_20' ) start [2024-12-21 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070114', 'tblTempVendorCDR_20' ) end [2024-12-21 12:19:18] Production.INFO: ProcessCDR(1,14070114,1,1,2) [2024-12-21 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070114', 'tblTempUsageDetail_20' ) start [2024-12-21 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070114', 'tblTempUsageDetail_20' ) end [2024-12-21 12:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:19:21] Production.INFO: ==30106== Releasing lock... [2024-12-21 12:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:19:21] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:20:05 [end_date_ymd] => 2024-12-21 12:20:05 [RateCDR] => 1 ) [2024-12-21 12:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:20:05' and `end` < '2024-12-21 12:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:20:18] Production.INFO: count ==1819 [2024-12-21 12:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:20:05 - End Time 2024-12-21 12:20:05 [2024-12-21 12:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070120', 'tblTempUsageDetail_20' ) start [2024-12-21 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070120', 'tblTempUsageDetail_20' ) end [2024-12-21 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070120', 'tblTempVendorCDR_20' ) start [2024-12-21 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070120', 'tblTempVendorCDR_20' ) end [2024-12-21 12:20:18] Production.INFO: ProcessCDR(1,14070120,1,1,2) [2024-12-21 12:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070120', 'tblTempUsageDetail_20' ) start [2024-12-21 12:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070120', 'tblTempUsageDetail_20' ) end [2024-12-21 12:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:20:21] Production.INFO: ==30184== Releasing lock... [2024-12-21 12:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:20:21] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:21:04 [end_date_ymd] => 2024-12-21 12:21:04 [RateCDR] => 1 ) [2024-12-21 12:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:21:04' and `end` < '2024-12-21 12:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:21:17] Production.INFO: count ==1849 [2024-12-21 12:21:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:21:04 - End Time 2024-12-21 12:21:04 [2024-12-21 12:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070125', 'tblTempUsageDetail_20' ) start [2024-12-21 12:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070125', 'tblTempUsageDetail_20' ) end [2024-12-21 12:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070125', 'tblTempVendorCDR_20' ) start [2024-12-21 12:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070125', 'tblTempVendorCDR_20' ) end [2024-12-21 12:21:17] Production.INFO: ProcessCDR(1,14070125,1,1,2) [2024-12-21 12:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070125', 'tblTempUsageDetail_20' ) start [2024-12-21 12:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070125', 'tblTempUsageDetail_20' ) end [2024-12-21 12:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:21:21] Production.INFO: ==30261== Releasing lock... [2024-12-21 12:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:21:21] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:22:05 [end_date_ymd] => 2024-12-21 12:22:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:22:05' and `end` < '2024-12-21 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-21 12:22:17] Production.INFO: count ==1851 [2024-12-21 12:22:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:22:05 - End Time 2024-12-21 12:22:05 [2024-12-21 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070130', 'tblTempUsageDetail_20' ) start [2024-12-21 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070130', 'tblTempUsageDetail_20' ) end [2024-12-21 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070130', 'tblTempVendorCDR_20' ) start [2024-12-21 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070130', 'tblTempVendorCDR_20' ) end [2024-12-21 12:22:18] Production.INFO: ProcessCDR(1,14070130,1,1,2) [2024-12-21 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070130', 'tblTempUsageDetail_20' ) start [2024-12-21 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070130', 'tblTempUsageDetail_20' ) end [2024-12-21 12:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:22:22] Production.INFO: ==30338== Releasing lock... [2024-12-21 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:22:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:23:04 [end_date_ymd] => 2024-12-21 12:23:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:23:04' and `end` < '2024-12-21 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-21 12:23:17] Production.INFO: count ==1844 [2024-12-21 12:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:23:04 - End Time 2024-12-21 12:23:04 [2024-12-21 12:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070135', 'tblTempUsageDetail_20' ) start [2024-12-21 12:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070135', 'tblTempUsageDetail_20' ) end [2024-12-21 12:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070135', 'tblTempVendorCDR_20' ) start [2024-12-21 12:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070135', 'tblTempVendorCDR_20' ) end [2024-12-21 12:23:17] Production.INFO: ProcessCDR(1,14070135,1,1,2) [2024-12-21 12:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070135', 'tblTempUsageDetail_20' ) start [2024-12-21 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070135', 'tblTempUsageDetail_20' ) end [2024-12-21 12:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:23:22] Production.INFO: ==30409== Releasing lock... [2024-12-21 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:23:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:24:05 [end_date_ymd] => 2024-12-21 12:24:05 [RateCDR] => 1 ) [2024-12-21 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:24:05' and `end` < '2024-12-21 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:24:17] Production.INFO: count ==1852 [2024-12-21 12:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:24:05 - End Time 2024-12-21 12:24:05 [2024-12-21 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070140', 'tblTempUsageDetail_20' ) start [2024-12-21 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070140', 'tblTempUsageDetail_20' ) end [2024-12-21 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070140', 'tblTempVendorCDR_20' ) start [2024-12-21 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070140', 'tblTempVendorCDR_20' ) end [2024-12-21 12:24:18] Production.INFO: ProcessCDR(1,14070140,1,1,2) [2024-12-21 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070140', 'tblTempUsageDetail_20' ) start [2024-12-21 12:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070140', 'tblTempUsageDetail_20' ) end [2024-12-21 12:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:24:22] Production.INFO: ==30480== Releasing lock... [2024-12-21 12:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:24:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:25:04 [end_date_ymd] => 2024-12-21 12:25:04 [RateCDR] => 1 ) [2024-12-21 12: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-21 09:25:04' and `end` < '2024-12-21 12: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-21 12:25:17] Production.INFO: count ==1848 [2024-12-21 12:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:25:04 - End Time 2024-12-21 12:25:04 [2024-12-21 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070145', 'tblTempUsageDetail_20' ) start [2024-12-21 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070145', 'tblTempUsageDetail_20' ) end [2024-12-21 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070145', 'tblTempVendorCDR_20' ) start [2024-12-21 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070145', 'tblTempVendorCDR_20' ) end [2024-12-21 12:25:17] Production.INFO: ProcessCDR(1,14070145,1,1,2) [2024-12-21 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070145', 'tblTempUsageDetail_20' ) start [2024-12-21 12:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070145', 'tblTempUsageDetail_20' ) end [2024-12-21 12:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:25:22] Production.INFO: ==30553== Releasing lock... [2024-12-21 12:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:25:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:26:05 [end_date_ymd] => 2024-12-21 12:26:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:26:05' and `end` < '2024-12-21 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-21 12:26:17] Production.INFO: count ==1850 [2024-12-21 12:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:26:05 - End Time 2024-12-21 12:26:05 [2024-12-21 12:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070150', 'tblTempUsageDetail_20' ) start [2024-12-21 12:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070150', 'tblTempUsageDetail_20' ) end [2024-12-21 12:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070150', 'tblTempVendorCDR_20' ) start [2024-12-21 12:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070150', 'tblTempVendorCDR_20' ) end [2024-12-21 12:26:17] Production.INFO: ProcessCDR(1,14070150,1,1,2) [2024-12-21 12:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070150', 'tblTempUsageDetail_20' ) start [2024-12-21 12:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070150', 'tblTempUsageDetail_20' ) end [2024-12-21 12:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:26:22] Production.INFO: ==30626== Releasing lock... [2024-12-21 12:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:26:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:27:05 [end_date_ymd] => 2024-12-21 12:27:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:27:05' and `end` < '2024-12-21 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-21 12:27:17] Production.INFO: count ==1852 [2024-12-21 12:27:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:27:05 - End Time 2024-12-21 12:27:05 [2024-12-21 12:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070155', 'tblTempUsageDetail_20' ) start [2024-12-21 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070155', 'tblTempUsageDetail_20' ) end [2024-12-21 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070155', 'tblTempVendorCDR_20' ) start [2024-12-21 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070155', 'tblTempVendorCDR_20' ) end [2024-12-21 12:27:17] Production.INFO: ProcessCDR(1,14070155,1,1,2) [2024-12-21 12:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070155', 'tblTempUsageDetail_20' ) start [2024-12-21 12:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070155', 'tblTempUsageDetail_20' ) end [2024-12-21 12:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:27:22] Production.INFO: ==30696== Releasing lock... [2024-12-21 12:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:27:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:28:05 [end_date_ymd] => 2024-12-21 12:28:05 [RateCDR] => 1 ) [2024-12-21 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:28:05' and `end` < '2024-12-21 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:28:18] Production.INFO: count ==1851 [2024-12-21 12:28:19] Production.ERROR: pbx CDR StartTime 2024-12-21 09:28:05 - End Time 2024-12-21 12:28:05 [2024-12-21 12:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070160', 'tblTempUsageDetail_20' ) start [2024-12-21 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070160', 'tblTempUsageDetail_20' ) end [2024-12-21 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070160', 'tblTempVendorCDR_20' ) start [2024-12-21 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070160', 'tblTempVendorCDR_20' ) end [2024-12-21 12:28:19] Production.INFO: ProcessCDR(1,14070160,1,1,2) [2024-12-21 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070160', 'tblTempUsageDetail_20' ) start [2024-12-21 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070160', 'tblTempUsageDetail_20' ) end [2024-12-21 12:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:28:23] Production.INFO: ==30772== Releasing lock... [2024-12-21 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:28:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:29:04 [end_date_ymd] => 2024-12-21 12:29:04 [RateCDR] => 1 ) [2024-12-21 12:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:29:04' and `end` < '2024-12-21 12:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:29:17] Production.INFO: count ==1853 [2024-12-21 12:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:29:04 - End Time 2024-12-21 12:29:04 [2024-12-21 12:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070165', 'tblTempUsageDetail_20' ) start [2024-12-21 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070165', 'tblTempUsageDetail_20' ) end [2024-12-21 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070165', 'tblTempVendorCDR_20' ) start [2024-12-21 12:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070165', 'tblTempVendorCDR_20' ) end [2024-12-21 12:29:17] Production.INFO: ProcessCDR(1,14070165,1,1,2) [2024-12-21 12:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070165', 'tblTempUsageDetail_20' ) start [2024-12-21 12:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070165', 'tblTempUsageDetail_20' ) end [2024-12-21 12:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:29:22] Production.INFO: ==30850== Releasing lock... [2024-12-21 12:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:29:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:30:06 [end_date_ymd] => 2024-12-21 12:30:06 [RateCDR] => 1 ) [2024-12-21 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-21 09:30:06' and `end` < '2024-12-21 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-21 12:30:18] Production.INFO: count ==1840 [2024-12-21 12:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:30:06 - End Time 2024-12-21 12:30:06 [2024-12-21 12:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070171', 'tblTempUsageDetail_20' ) start [2024-12-21 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070171', 'tblTempUsageDetail_20' ) end [2024-12-21 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070171', 'tblTempVendorCDR_20' ) start [2024-12-21 12:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070171', 'tblTempVendorCDR_20' ) end [2024-12-21 12:30:19] Production.INFO: ProcessCDR(1,14070171,1,1,2) [2024-12-21 12:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070171', 'tblTempUsageDetail_20' ) start [2024-12-21 12:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070171', 'tblTempUsageDetail_20' ) end [2024-12-21 12:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:30:23] Production.INFO: ==30932== Releasing lock... [2024-12-21 12:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:30:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:31:04 [end_date_ymd] => 2024-12-21 12:31:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:31:04' and `end` < '2024-12-21 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-21 12:31:17] Production.INFO: count ==1849 [2024-12-21 12:31:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:31:04 - End Time 2024-12-21 12:31:04 [2024-12-21 12:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070176', 'tblTempUsageDetail_20' ) start [2024-12-21 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070176', 'tblTempUsageDetail_20' ) end [2024-12-21 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070176', 'tblTempVendorCDR_20' ) start [2024-12-21 12:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070176', 'tblTempVendorCDR_20' ) end [2024-12-21 12:31:17] Production.INFO: ProcessCDR(1,14070176,1,1,2) [2024-12-21 12:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070176', 'tblTempUsageDetail_20' ) start [2024-12-21 12:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070176', 'tblTempUsageDetail_20' ) end [2024-12-21 12:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:31:22] Production.INFO: ==31009== Releasing lock... [2024-12-21 12:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:31:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:32:05 [end_date_ymd] => 2024-12-21 12:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:32:05' and `end` < '2024-12-21 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-21 12:32:17] Production.INFO: count ==1816 [2024-12-21 12:32:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:32:05 - End Time 2024-12-21 12:32:05 [2024-12-21 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070181', 'tblTempUsageDetail_20' ) start [2024-12-21 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070181', 'tblTempUsageDetail_20' ) end [2024-12-21 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070181', 'tblTempVendorCDR_20' ) start [2024-12-21 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070181', 'tblTempVendorCDR_20' ) end [2024-12-21 12:32:18] Production.INFO: ProcessCDR(1,14070181,1,1,2) [2024-12-21 12:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070181', 'tblTempUsageDetail_20' ) start [2024-12-21 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070181', 'tblTempUsageDetail_20' ) end [2024-12-21 12:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:32:22] Production.INFO: ==31080== Releasing lock... [2024-12-21 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:32:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:33:04 [end_date_ymd] => 2024-12-21 12:33:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:33:04' and `end` < '2024-12-21 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-21 12:33:17] Production.INFO: count ==1818 [2024-12-21 12:33:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:33:04 - End Time 2024-12-21 12:33:04 [2024-12-21 12:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070186', 'tblTempUsageDetail_20' ) start [2024-12-21 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070186', 'tblTempUsageDetail_20' ) end [2024-12-21 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070186', 'tblTempVendorCDR_20' ) start [2024-12-21 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070186', 'tblTempVendorCDR_20' ) end [2024-12-21 12:33:17] Production.INFO: ProcessCDR(1,14070186,1,1,2) [2024-12-21 12:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070186', 'tblTempUsageDetail_20' ) start [2024-12-21 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070186', 'tblTempUsageDetail_20' ) end [2024-12-21 12:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:33:22] Production.INFO: ==31191== Releasing lock... [2024-12-21 12:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:33:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:34:05 [end_date_ymd] => 2024-12-21 12:34:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:34:05' and `end` < '2024-12-21 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-21 12:34:17] Production.INFO: count ==1812 [2024-12-21 12:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:34:05 - End Time 2024-12-21 12:34:05 [2024-12-21 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070191', 'tblTempUsageDetail_20' ) start [2024-12-21 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070191', 'tblTempUsageDetail_20' ) end [2024-12-21 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070191', 'tblTempVendorCDR_20' ) start [2024-12-21 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070191', 'tblTempVendorCDR_20' ) end [2024-12-21 12:34:18] Production.INFO: ProcessCDR(1,14070191,1,1,2) [2024-12-21 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070191', 'tblTempUsageDetail_20' ) start [2024-12-21 12:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070191', 'tblTempUsageDetail_20' ) end [2024-12-21 12:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:34:22] Production.INFO: ==31263== Releasing lock... [2024-12-21 12:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:34:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:35:04 [end_date_ymd] => 2024-12-21 12:35:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:35:04' and `end` < '2024-12-21 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-21 12:35:17] Production.INFO: count ==1816 [2024-12-21 12:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:35:04 - End Time 2024-12-21 12:35:04 [2024-12-21 12:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070196', 'tblTempUsageDetail_20' ) start [2024-12-21 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070196', 'tblTempUsageDetail_20' ) end [2024-12-21 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070196', 'tblTempVendorCDR_20' ) start [2024-12-21 12:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070196', 'tblTempVendorCDR_20' ) end [2024-12-21 12:35:17] Production.INFO: ProcessCDR(1,14070196,1,1,2) [2024-12-21 12:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070196', 'tblTempUsageDetail_20' ) start [2024-12-21 12:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070196', 'tblTempUsageDetail_20' ) end [2024-12-21 12:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:35:21] Production.INFO: ==31336== Releasing lock... [2024-12-21 12:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:35:21] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:36:05 [end_date_ymd] => 2024-12-21 12:36:05 [RateCDR] => 1 ) [2024-12-21 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:36:05' and `end` < '2024-12-21 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:36:17] Production.INFO: count ==1811 [2024-12-21 12:36:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:36:05 - End Time 2024-12-21 12:36:05 [2024-12-21 12:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070200', 'tblTempUsageDetail_20' ) start [2024-12-21 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070200', 'tblTempUsageDetail_20' ) end [2024-12-21 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070200', 'tblTempVendorCDR_20' ) start [2024-12-21 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070200', 'tblTempVendorCDR_20' ) end [2024-12-21 12:36:17] Production.INFO: ProcessCDR(1,14070200,1,1,2) [2024-12-21 12:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070200', 'tblTempUsageDetail_20' ) start [2024-12-21 12:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070200', 'tblTempUsageDetail_20' ) end [2024-12-21 12:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:36:20] Production.INFO: ==31410== Releasing lock... [2024-12-21 12:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:36:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:37:04 [end_date_ymd] => 2024-12-21 12:37:04 [RateCDR] => 1 ) [2024-12-21 12: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-21 09:37:04' and `end` < '2024-12-21 12: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-21 12:37:16] Production.INFO: count ==1807 [2024-12-21 12:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:37:04 - End Time 2024-12-21 12:37:04 [2024-12-21 12:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070206', 'tblTempUsageDetail_20' ) start [2024-12-21 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070206', 'tblTempUsageDetail_20' ) end [2024-12-21 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070206', 'tblTempVendorCDR_20' ) start [2024-12-21 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070206', 'tblTempVendorCDR_20' ) end [2024-12-21 12:37:17] Production.INFO: ProcessCDR(1,14070206,1,1,2) [2024-12-21 12:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070206', 'tblTempUsageDetail_20' ) start [2024-12-21 12:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070206', 'tblTempUsageDetail_20' ) end [2024-12-21 12:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:37:21] Production.INFO: ==31482== Releasing lock... [2024-12-21 12:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:37:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:38:05 [end_date_ymd] => 2024-12-21 12:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:38:05' and `end` < '2024-12-21 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-21 12:38:17] Production.INFO: count ==1805 [2024-12-21 12:38:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:38:05 - End Time 2024-12-21 12:38:05 [2024-12-21 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070211', 'tblTempUsageDetail_20' ) start [2024-12-21 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070211', 'tblTempUsageDetail_20' ) end [2024-12-21 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070211', 'tblTempVendorCDR_20' ) start [2024-12-21 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070211', 'tblTempVendorCDR_20' ) end [2024-12-21 12:38:18] Production.INFO: ProcessCDR(1,14070211,1,1,2) [2024-12-21 12:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070211', 'tblTempUsageDetail_20' ) start [2024-12-21 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070211', 'tblTempUsageDetail_20' ) end [2024-12-21 12:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:38:23] Production.INFO: ==31559== Releasing lock... [2024-12-21 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:38:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:39:05 [end_date_ymd] => 2024-12-21 12:39:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:39:05' and `end` < '2024-12-21 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-21 12:39:17] Production.INFO: count ==1816 [2024-12-21 12:39:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:39:05 - End Time 2024-12-21 12:39:05 [2024-12-21 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070216', 'tblTempUsageDetail_20' ) start [2024-12-21 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070216', 'tblTempUsageDetail_20' ) end [2024-12-21 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070216', 'tblTempVendorCDR_20' ) start [2024-12-21 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070216', 'tblTempVendorCDR_20' ) end [2024-12-21 12:39:18] Production.INFO: ProcessCDR(1,14070216,1,1,2) [2024-12-21 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070216', 'tblTempUsageDetail_20' ) start [2024-12-21 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070216', 'tblTempUsageDetail_20' ) end [2024-12-21 12:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:39:23] Production.INFO: ==31630== Releasing lock... [2024-12-21 12:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:39:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:40:05 [end_date_ymd] => 2024-12-21 12:40:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:40:05' and `end` < '2024-12-21 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-21 12:40:18] Production.INFO: count ==1820 [2024-12-21 12:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:40:05 - End Time 2024-12-21 12:40:05 [2024-12-21 12:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070222', 'tblTempUsageDetail_20' ) start [2024-12-21 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070222', 'tblTempUsageDetail_20' ) end [2024-12-21 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070222', 'tblTempVendorCDR_20' ) start [2024-12-21 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070222', 'tblTempVendorCDR_20' ) end [2024-12-21 12:40:18] Production.INFO: ProcessCDR(1,14070222,1,1,2) [2024-12-21 12:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070222', 'tblTempUsageDetail_20' ) start [2024-12-21 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070222', 'tblTempUsageDetail_20' ) end [2024-12-21 12:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:40:23] Production.INFO: ==31703== Releasing lock... [2024-12-21 12:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:40:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:41:04 [end_date_ymd] => 2024-12-21 12:41:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:41:04' and `end` < '2024-12-21 12:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:41:17] Production.INFO: count ==1831 [2024-12-21 12:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:41:04 - End Time 2024-12-21 12:41:04 [2024-12-21 12:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070227', 'tblTempUsageDetail_20' ) start [2024-12-21 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070227', 'tblTempUsageDetail_20' ) end [2024-12-21 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070227', 'tblTempVendorCDR_20' ) start [2024-12-21 12:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070227', 'tblTempVendorCDR_20' ) end [2024-12-21 12:41:17] Production.INFO: ProcessCDR(1,14070227,1,1,2) [2024-12-21 12:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070227', 'tblTempUsageDetail_20' ) start [2024-12-21 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070227', 'tblTempUsageDetail_20' ) end [2024-12-21 12:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:41:22] Production.INFO: ==31776== Releasing lock... [2024-12-21 12:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:41:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:42:04 [end_date_ymd] => 2024-12-21 12:42:04 [RateCDR] => 1 ) [2024-12-21 12: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-21 09:42:04' and `end` < '2024-12-21 12: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-21 12:42:16] Production.INFO: count ==1820 [2024-12-21 12:42:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:42:04 - End Time 2024-12-21 12:42:04 [2024-12-21 12:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070232', 'tblTempUsageDetail_20' ) start [2024-12-21 12:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070232', 'tblTempUsageDetail_20' ) end [2024-12-21 12:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070232', 'tblTempVendorCDR_20' ) start [2024-12-21 12:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070232', 'tblTempVendorCDR_20' ) end [2024-12-21 12:42:17] Production.INFO: ProcessCDR(1,14070232,1,1,2) [2024-12-21 12:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070232', 'tblTempUsageDetail_20' ) start [2024-12-21 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070232', 'tblTempUsageDetail_20' ) end [2024-12-21 12:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:42:21] Production.INFO: ==31847== Releasing lock... [2024-12-21 12:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:42:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:43:04 [end_date_ymd] => 2024-12-21 12:43:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:43:04' and `end` < '2024-12-21 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-21 12:43:17] Production.INFO: count ==1813 [2024-12-21 12:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:43:04 - End Time 2024-12-21 12:43:04 [2024-12-21 12:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070237', 'tblTempUsageDetail_20' ) start [2024-12-21 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070237', 'tblTempUsageDetail_20' ) end [2024-12-21 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070237', 'tblTempVendorCDR_20' ) start [2024-12-21 12:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070237', 'tblTempVendorCDR_20' ) end [2024-12-21 12:43:17] Production.INFO: ProcessCDR(1,14070237,1,1,2) [2024-12-21 12:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070237', 'tblTempUsageDetail_20' ) start [2024-12-21 12:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070237', 'tblTempUsageDetail_20' ) end [2024-12-21 12:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:43:22] Production.INFO: ==31924== Releasing lock... [2024-12-21 12:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:43:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:44:05 [end_date_ymd] => 2024-12-21 12:44:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:44:05' and `end` < '2024-12-21 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-21 12:44:17] Production.INFO: count ==1795 [2024-12-21 12:44:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:44:05 - End Time 2024-12-21 12:44:05 [2024-12-21 12:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070242', 'tblTempUsageDetail_20' ) start [2024-12-21 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070242', 'tblTempUsageDetail_20' ) end [2024-12-21 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070242', 'tblTempVendorCDR_20' ) start [2024-12-21 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070242', 'tblTempVendorCDR_20' ) end [2024-12-21 12:44:18] Production.INFO: ProcessCDR(1,14070242,1,1,2) [2024-12-21 12:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070242', 'tblTempUsageDetail_20' ) start [2024-12-21 12:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070242', 'tblTempUsageDetail_20' ) end [2024-12-21 12:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:44:21] Production.INFO: ==31999== Releasing lock... [2024-12-21 12:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:44:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:45:04 [end_date_ymd] => 2024-12-21 12:45:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:45:04' and `end` < '2024-12-21 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-21 12:45:17] Production.INFO: count ==1782 [2024-12-21 12:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:45:04 - End Time 2024-12-21 12:45:04 [2024-12-21 12:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070247', 'tblTempUsageDetail_20' ) start [2024-12-21 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070247', 'tblTempUsageDetail_20' ) end [2024-12-21 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070247', 'tblTempVendorCDR_20' ) start [2024-12-21 12:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070247', 'tblTempVendorCDR_20' ) end [2024-12-21 12:45:17] Production.INFO: ProcessCDR(1,14070247,1,1,2) [2024-12-21 12:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070247', 'tblTempUsageDetail_20' ) start [2024-12-21 12:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070247', 'tblTempUsageDetail_20' ) end [2024-12-21 12:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:45:21] Production.INFO: ==32074== Releasing lock... [2024-12-21 12:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:45:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:46:05 [end_date_ymd] => 2024-12-21 12:46:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:46:05' and `end` < '2024-12-21 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-21 12:46:17] Production.INFO: count ==1784 [2024-12-21 12:46:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:46:05 - End Time 2024-12-21 12:46:05 [2024-12-21 12:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070252', 'tblTempUsageDetail_20' ) start [2024-12-21 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070252', 'tblTempUsageDetail_20' ) end [2024-12-21 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070252', 'tblTempVendorCDR_20' ) start [2024-12-21 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070252', 'tblTempVendorCDR_20' ) end [2024-12-21 12:46:18] Production.INFO: ProcessCDR(1,14070252,1,1,2) [2024-12-21 12:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070252', 'tblTempUsageDetail_20' ) start [2024-12-21 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070252', 'tblTempUsageDetail_20' ) end [2024-12-21 12:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:46:23] Production.INFO: ==32145== Releasing lock... [2024-12-21 12:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:46:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:47:05 [end_date_ymd] => 2024-12-21 12:47:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:47:05' and `end` < '2024-12-21 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-21 12:47:19] Production.INFO: count ==1801 [2024-12-21 12:47:19] Production.ERROR: pbx CDR StartTime 2024-12-21 09:47:05 - End Time 2024-12-21 12:47:05 [2024-12-21 12:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070257', 'tblTempUsageDetail_20' ) start [2024-12-21 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070257', 'tblTempUsageDetail_20' ) end [2024-12-21 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070257', 'tblTempVendorCDR_20' ) start [2024-12-21 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070257', 'tblTempVendorCDR_20' ) end [2024-12-21 12:47:19] Production.INFO: ProcessCDR(1,14070257,1,1,2) [2024-12-21 12:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070257', 'tblTempUsageDetail_20' ) start [2024-12-21 12:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070257', 'tblTempUsageDetail_20' ) end [2024-12-21 12:47:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:47:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:47:24] Production.INFO: ==32216== Releasing lock... [2024-12-21 12:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:47:24] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:48:05 [end_date_ymd] => 2024-12-21 12:48:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:48:05' and `end` < '2024-12-21 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-21 12:48:17] Production.INFO: count ==1809 [2024-12-21 12:48:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:48:05 - End Time 2024-12-21 12:48:05 [2024-12-21 12:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070262', 'tblTempUsageDetail_20' ) start [2024-12-21 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070262', 'tblTempUsageDetail_20' ) end [2024-12-21 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070262', 'tblTempVendorCDR_20' ) start [2024-12-21 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070262', 'tblTempVendorCDR_20' ) end [2024-12-21 12:48:18] Production.INFO: ProcessCDR(1,14070262,1,1,2) [2024-12-21 12:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070262', 'tblTempUsageDetail_20' ) start [2024-12-21 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070262', 'tblTempUsageDetail_20' ) end [2024-12-21 12:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:48:21] Production.INFO: ==32290== Releasing lock... [2024-12-21 12:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:48:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:49:04 [end_date_ymd] => 2024-12-21 12:49:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:49:04' and `end` < '2024-12-21 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-21 12:49:17] Production.INFO: count ==1808 [2024-12-21 12:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:49:04 - End Time 2024-12-21 12:49:04 [2024-12-21 12:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070267', 'tblTempUsageDetail_20' ) start [2024-12-21 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070267', 'tblTempUsageDetail_20' ) end [2024-12-21 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070267', 'tblTempVendorCDR_20' ) start [2024-12-21 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070267', 'tblTempVendorCDR_20' ) end [2024-12-21 12:49:17] Production.INFO: ProcessCDR(1,14070267,1,1,2) [2024-12-21 12:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070267', 'tblTempUsageDetail_20' ) start [2024-12-21 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070267', 'tblTempUsageDetail_20' ) end [2024-12-21 12:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:49:22] Production.INFO: ==32401== Releasing lock... [2024-12-21 12:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:49:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:50:05 [end_date_ymd] => 2024-12-21 12:50:05 [RateCDR] => 1 ) [2024-12-21 12: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-21 09:50:05' and `end` < '2024-12-21 12: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-21 12:50:18] Production.INFO: count ==1803 [2024-12-21 12:50:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:50:05 - End Time 2024-12-21 12:50:05 [2024-12-21 12:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070273', 'tblTempUsageDetail_20' ) start [2024-12-21 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070273', 'tblTempUsageDetail_20' ) end [2024-12-21 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070273', 'tblTempVendorCDR_20' ) start [2024-12-21 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070273', 'tblTempVendorCDR_20' ) end [2024-12-21 12:50:18] Production.INFO: ProcessCDR(1,14070273,1,1,2) [2024-12-21 12:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070273', 'tblTempUsageDetail_20' ) start [2024-12-21 12:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070273', 'tblTempUsageDetail_20' ) end [2024-12-21 12:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:50:23] Production.INFO: ==32475== Releasing lock... [2024-12-21 12:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:50:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:51:05 [end_date_ymd] => 2024-12-21 12:51:05 [RateCDR] => 1 ) [2024-12-21 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:51:05' and `end` < '2024-12-21 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:51:17] Production.INFO: count ==1847 [2024-12-21 12:51:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:51:05 - End Time 2024-12-21 12:51:05 [2024-12-21 12:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070278', 'tblTempUsageDetail_20' ) start [2024-12-21 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070278', 'tblTempUsageDetail_20' ) end [2024-12-21 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070278', 'tblTempVendorCDR_20' ) start [2024-12-21 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070278', 'tblTempVendorCDR_20' ) end [2024-12-21 12:51:18] Production.INFO: ProcessCDR(1,14070278,1,1,2) [2024-12-21 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070278', 'tblTempUsageDetail_20' ) start [2024-12-21 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070278', 'tblTempUsageDetail_20' ) end [2024-12-21 12:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:51:21] Production.INFO: ==32548== Releasing lock... [2024-12-21 12:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:51:21] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:52:04 [end_date_ymd] => 2024-12-21 12:52:04 [RateCDR] => 1 ) [2024-12-21 12: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-21 09:52:04' and `end` < '2024-12-21 12: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-21 12:52:16] Production.INFO: count ==1849 [2024-12-21 12:52:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:52:04 - End Time 2024-12-21 12:52:04 [2024-12-21 12:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070283', 'tblTempUsageDetail_20' ) start [2024-12-21 12:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070283', 'tblTempUsageDetail_20' ) end [2024-12-21 12:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070283', 'tblTempVendorCDR_20' ) start [2024-12-21 12:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070283', 'tblTempVendorCDR_20' ) end [2024-12-21 12:52:17] Production.INFO: ProcessCDR(1,14070283,1,1,2) [2024-12-21 12:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070283', 'tblTempUsageDetail_20' ) start [2024-12-21 12:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070283', 'tblTempUsageDetail_20' ) end [2024-12-21 12:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:52:21] Production.INFO: ==32619== Releasing lock... [2024-12-21 12:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:52:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:53:05 [end_date_ymd] => 2024-12-21 12:53:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:53:05' and `end` < '2024-12-21 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-21 12:53:18] Production.INFO: count ==1842 [2024-12-21 12:53:19] Production.ERROR: pbx CDR StartTime 2024-12-21 09:53:05 - End Time 2024-12-21 12:53:05 [2024-12-21 12:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070288', 'tblTempUsageDetail_20' ) start [2024-12-21 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070288', 'tblTempUsageDetail_20' ) end [2024-12-21 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070288', 'tblTempVendorCDR_20' ) start [2024-12-21 12:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070288', 'tblTempVendorCDR_20' ) end [2024-12-21 12:53:19] Production.INFO: ProcessCDR(1,14070288,1,1,2) [2024-12-21 12:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070288', 'tblTempUsageDetail_20' ) start [2024-12-21 12:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070288', 'tblTempUsageDetail_20' ) end [2024-12-21 12:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:53:23] Production.INFO: ==32692== Releasing lock... [2024-12-21 12:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:53:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:54:04 [end_date_ymd] => 2024-12-21 12:54:04 [RateCDR] => 1 ) [2024-12-21 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-21 09:54:04' and `end` < '2024-12-21 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-21 12:54:17] Production.INFO: count ==1846 [2024-12-21 12:54:17] Production.ERROR: pbx CDR StartTime 2024-12-21 09:54:04 - End Time 2024-12-21 12:54:04 [2024-12-21 12:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070293', 'tblTempUsageDetail_20' ) start [2024-12-21 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070293', 'tblTempUsageDetail_20' ) end [2024-12-21 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070293', 'tblTempVendorCDR_20' ) start [2024-12-21 12:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070293', 'tblTempVendorCDR_20' ) end [2024-12-21 12:54:17] Production.INFO: ProcessCDR(1,14070293,1,1,2) [2024-12-21 12:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070293', 'tblTempUsageDetail_20' ) start [2024-12-21 12:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070293', 'tblTempUsageDetail_20' ) end [2024-12-21 12:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:54:22] Production.INFO: ==32762== Releasing lock... [2024-12-21 12:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:54:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:55:05 [end_date_ymd] => 2024-12-21 12:55:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:55:05' and `end` < '2024-12-21 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-21 12:55:17] Production.INFO: count ==1845 [2024-12-21 12:55:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:55:05 - End Time 2024-12-21 12:55:05 [2024-12-21 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070298', 'tblTempUsageDetail_20' ) start [2024-12-21 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070298', 'tblTempUsageDetail_20' ) end [2024-12-21 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070298', 'tblTempVendorCDR_20' ) start [2024-12-21 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070298', 'tblTempVendorCDR_20' ) end [2024-12-21 12:55:18] Production.INFO: ProcessCDR(1,14070298,1,1,2) [2024-12-21 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070298', 'tblTempUsageDetail_20' ) start [2024-12-21 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070298', 'tblTempUsageDetail_20' ) end [2024-12-21 12:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:55:23] Production.INFO: ==387== Releasing lock... [2024-12-21 12:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:55:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:56:04 [end_date_ymd] => 2024-12-21 12:56:04 [RateCDR] => 1 ) [2024-12-21 12: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-21 09:56:04' and `end` < '2024-12-21 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-21 12:56:18] Production.INFO: count ==1848 [2024-12-21 12:56:19] Production.ERROR: pbx CDR StartTime 2024-12-21 09:56:04 - End Time 2024-12-21 12:56:04 [2024-12-21 12:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070303', 'tblTempUsageDetail_20' ) start [2024-12-21 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070303', 'tblTempUsageDetail_20' ) end [2024-12-21 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070303', 'tblTempVendorCDR_20' ) start [2024-12-21 12:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070303', 'tblTempVendorCDR_20' ) end [2024-12-21 12:56:19] Production.INFO: ProcessCDR(1,14070303,1,1,2) [2024-12-21 12:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070303', 'tblTempUsageDetail_20' ) start [2024-12-21 12:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070303', 'tblTempUsageDetail_20' ) end [2024-12-21 12:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:56:23] Production.INFO: ==457== Releasing lock... [2024-12-21 12:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:56:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:57:05 [end_date_ymd] => 2024-12-21 12:57:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:57:05' and `end` < '2024-12-21 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-21 12:57:18] Production.INFO: count ==1847 [2024-12-21 12:57:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:57:05 - End Time 2024-12-21 12:57:05 [2024-12-21 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070308', 'tblTempUsageDetail_20' ) start [2024-12-21 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070308', 'tblTempUsageDetail_20' ) end [2024-12-21 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070308', 'tblTempVendorCDR_20' ) start [2024-12-21 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070308', 'tblTempVendorCDR_20' ) end [2024-12-21 12:57:18] Production.INFO: ProcessCDR(1,14070308,1,1,2) [2024-12-21 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070308', 'tblTempUsageDetail_20' ) start [2024-12-21 12:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070308', 'tblTempUsageDetail_20' ) end [2024-12-21 12:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:57:23] Production.INFO: ==534== Releasing lock... [2024-12-21 12:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:57:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:58:05 [end_date_ymd] => 2024-12-21 12:58:05 [RateCDR] => 1 ) [2024-12-21 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 09:58:05' and `end` < '2024-12-21 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 12:58:19] Production.INFO: count ==1832 [2024-12-21 12:58:20] Production.ERROR: pbx CDR StartTime 2024-12-21 09:58:05 - End Time 2024-12-21 12:58:05 [2024-12-21 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070313', 'tblTempUsageDetail_20' ) start [2024-12-21 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070313', 'tblTempUsageDetail_20' ) end [2024-12-21 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070313', 'tblTempVendorCDR_20' ) start [2024-12-21 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070313', 'tblTempVendorCDR_20' ) end [2024-12-21 12:58:20] Production.INFO: ProcessCDR(1,14070313,1,1,2) [2024-12-21 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070313', 'tblTempUsageDetail_20' ) start [2024-12-21 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070313', 'tblTempUsageDetail_20' ) end [2024-12-21 12:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:58:24] Production.INFO: ==611== Releasing lock... [2024-12-21 12:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:58:24] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 09:59:05 [end_date_ymd] => 2024-12-21 12:59:05 [RateCDR] => 1 ) [2024-12-21 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-21 09:59:05' and `end` < '2024-12-21 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-21 12:59:17] Production.INFO: count ==1834 [2024-12-21 12:59:18] Production.ERROR: pbx CDR StartTime 2024-12-21 09:59:05 - End Time 2024-12-21 12:59:05 [2024-12-21 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070318', 'tblTempUsageDetail_20' ) start [2024-12-21 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070318', 'tblTempUsageDetail_20' ) end [2024-12-21 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070318', 'tblTempVendorCDR_20' ) start [2024-12-21 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070318', 'tblTempVendorCDR_20' ) end [2024-12-21 12:59:18] Production.INFO: ProcessCDR(1,14070318,1,1,2) [2024-12-21 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 12:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070318', 'tblTempUsageDetail_20' ) start [2024-12-21 12:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070318', 'tblTempUsageDetail_20' ) end [2024-12-21 12:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 12:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 12:59:22] Production.INFO: ==708== Releasing lock... [2024-12-21 12:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 12:59:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:00:06 [end_date_ymd] => 2024-12-21 13:00:06 [RateCDR] => 1 ) [2024-12-21 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 10:00:06' and `end` < '2024-12-21 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 13:00:18] Production.INFO: count ==1839 [2024-12-21 13:00:19] Production.ERROR: pbx CDR StartTime 2024-12-21 10:00:06 - End Time 2024-12-21 13:00:06 [2024-12-21 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070324', 'tblTempUsageDetail_20' ) start [2024-12-21 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070324', 'tblTempUsageDetail_20' ) end [2024-12-21 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070324', 'tblTempVendorCDR_20' ) start [2024-12-21 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070324', 'tblTempVendorCDR_20' ) end [2024-12-21 13:00:19] Production.INFO: ProcessCDR(1,14070324,1,1,2) [2024-12-21 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070324', 'tblTempUsageDetail_20' ) start [2024-12-21 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070324', 'tblTempUsageDetail_20' ) end [2024-12-21 13:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:00:23] Production.INFO: ==785== Releasing lock... [2024-12-21 13:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:00:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 13:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:01:04 [end_date_ymd] => 2024-12-21 13:01:04 [RateCDR] => 1 ) [2024-12-21 13:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 10:01:04' and `end` < '2024-12-21 13:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 13:01:18] Production.INFO: count ==1841 [2024-12-21 13:01:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:01:04 - End Time 2024-12-21 13:01:04 [2024-12-21 13:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070329', 'tblTempUsageDetail_20' ) start [2024-12-21 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070329', 'tblTempUsageDetail_20' ) end [2024-12-21 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070329', 'tblTempVendorCDR_20' ) start [2024-12-21 13:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070329', 'tblTempVendorCDR_20' ) end [2024-12-21 13:01:18] Production.INFO: ProcessCDR(1,14070329,1,1,2) [2024-12-21 13:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070329', 'tblTempUsageDetail_20' ) start [2024-12-21 13:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070329', 'tblTempUsageDetail_20' ) end [2024-12-21 13:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:01:23] Production.INFO: ==869== Releasing lock... [2024-12-21 13:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:01:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:02:05 [end_date_ymd] => 2024-12-21 13:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:02:05' and `end` < '2024-12-21 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-21 13:02:18] Production.INFO: count ==1845 [2024-12-21 13:02:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:02:05 - End Time 2024-12-21 13:02:05 [2024-12-21 13:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070334', 'tblTempUsageDetail_20' ) start [2024-12-21 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070334', 'tblTempUsageDetail_20' ) end [2024-12-21 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070334', 'tblTempVendorCDR_20' ) start [2024-12-21 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070334', 'tblTempVendorCDR_20' ) end [2024-12-21 13:02:18] Production.INFO: ProcessCDR(1,14070334,1,1,2) [2024-12-21 13:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070334', 'tblTempUsageDetail_20' ) start [2024-12-21 13:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070334', 'tblTempUsageDetail_20' ) end [2024-12-21 13:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:02:23] Production.INFO: ==945== Releasing lock... [2024-12-21 13:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:02:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 13:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:03:04 [end_date_ymd] => 2024-12-21 13:03:04 [RateCDR] => 1 ) [2024-12-21 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-21 10:03:04' and `end` < '2024-12-21 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-21 13:03:17] Production.INFO: count ==1843 [2024-12-21 13:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:03:04 - End Time 2024-12-21 13:03:04 [2024-12-21 13:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070339', 'tblTempUsageDetail_20' ) start [2024-12-21 13:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070339', 'tblTempUsageDetail_20' ) end [2024-12-21 13:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070339', 'tblTempVendorCDR_20' ) start [2024-12-21 13:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070339', 'tblTempVendorCDR_20' ) end [2024-12-21 13:03:17] Production.INFO: ProcessCDR(1,14070339,1,1,2) [2024-12-21 13:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070339', 'tblTempUsageDetail_20' ) start [2024-12-21 13:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070339', 'tblTempUsageDetail_20' ) end [2024-12-21 13:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:03:22] Production.INFO: ==1015== Releasing lock... [2024-12-21 13:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:03:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:04:05 [end_date_ymd] => 2024-12-21 13:04:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:04:05' and `end` < '2024-12-21 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-21 13:04:17] Production.INFO: count ==1833 [2024-12-21 13:04:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:04:05 - End Time 2024-12-21 13:04:05 [2024-12-21 13:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070344', 'tblTempUsageDetail_20' ) start [2024-12-21 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070344', 'tblTempUsageDetail_20' ) end [2024-12-21 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070344', 'tblTempVendorCDR_20' ) start [2024-12-21 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070344', 'tblTempVendorCDR_20' ) end [2024-12-21 13:04:18] Production.INFO: ProcessCDR(1,14070344,1,1,2) [2024-12-21 13:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070344', 'tblTempUsageDetail_20' ) start [2024-12-21 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070344', 'tblTempUsageDetail_20' ) end [2024-12-21 13:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:04:22] Production.INFO: ==1130== Releasing lock... [2024-12-21 13:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:04:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:05:05 [end_date_ymd] => 2024-12-21 13:05:05 [RateCDR] => 1 ) [2024-12-21 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 10:05:05' and `end` < '2024-12-21 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 13:05:17] Production.INFO: count ==1845 [2024-12-21 13:05:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:05:05 - End Time 2024-12-21 13:05:05 [2024-12-21 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070349', 'tblTempUsageDetail_20' ) start [2024-12-21 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070349', 'tblTempUsageDetail_20' ) end [2024-12-21 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070349', 'tblTempVendorCDR_20' ) start [2024-12-21 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070349', 'tblTempVendorCDR_20' ) end [2024-12-21 13:05:18] Production.INFO: ProcessCDR(1,14070349,1,1,2) [2024-12-21 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070349', 'tblTempUsageDetail_20' ) start [2024-12-21 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070349', 'tblTempUsageDetail_20' ) end [2024-12-21 13:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:05:22] Production.INFO: ==1206== Releasing lock... [2024-12-21 13:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:05:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 13:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:06:04 [end_date_ymd] => 2024-12-21 13:06:04 [RateCDR] => 1 ) [2024-12-21 13: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-21 10:06:04' and `end` < '2024-12-21 13: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-21 13:06:17] Production.INFO: count ==1847 [2024-12-21 13:06:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:06:04 - End Time 2024-12-21 13:06:04 [2024-12-21 13:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070353', 'tblTempUsageDetail_20' ) start [2024-12-21 13:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070353', 'tblTempUsageDetail_20' ) end [2024-12-21 13:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070353', 'tblTempVendorCDR_20' ) start [2024-12-21 13:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070353', 'tblTempVendorCDR_20' ) end [2024-12-21 13:06:17] Production.INFO: ProcessCDR(1,14070353,1,1,2) [2024-12-21 13:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070353', 'tblTempUsageDetail_20' ) start [2024-12-21 13:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070353', 'tblTempUsageDetail_20' ) end [2024-12-21 13:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:06:22] Production.INFO: ==1287== Releasing lock... [2024-12-21 13:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:06:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 13:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:07:04 [end_date_ymd] => 2024-12-21 13:07:04 [RateCDR] => 1 ) [2024-12-21 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-21 10:07:04' and `end` < '2024-12-21 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-21 13:07:16] Production.INFO: count ==1848 [2024-12-21 13:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:07:04 - End Time 2024-12-21 13:07:04 [2024-12-21 13:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070359', 'tblTempUsageDetail_20' ) start [2024-12-21 13:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070359', 'tblTempUsageDetail_20' ) end [2024-12-21 13:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070359', 'tblTempVendorCDR_20' ) start [2024-12-21 13:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070359', 'tblTempVendorCDR_20' ) end [2024-12-21 13:07:17] Production.INFO: ProcessCDR(1,14070359,1,1,2) [2024-12-21 13:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070359', 'tblTempUsageDetail_20' ) start [2024-12-21 13:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070359', 'tblTempUsageDetail_20' ) end [2024-12-21 13:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:07:22] Production.INFO: ==1359== Releasing lock... [2024-12-21 13:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:07:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:08:05 [end_date_ymd] => 2024-12-21 13:08:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:08:05' and `end` < '2024-12-21 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-21 13:08:17] Production.INFO: count ==1852 [2024-12-21 13:08:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:08:05 - End Time 2024-12-21 13:08:05 [2024-12-21 13:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070364', 'tblTempUsageDetail_20' ) start [2024-12-21 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070364', 'tblTempUsageDetail_20' ) end [2024-12-21 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070364', 'tblTempVendorCDR_20' ) start [2024-12-21 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070364', 'tblTempVendorCDR_20' ) end [2024-12-21 13:08:18] Production.INFO: ProcessCDR(1,14070364,1,1,2) [2024-12-21 13:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070364', 'tblTempUsageDetail_20' ) start [2024-12-21 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070364', 'tblTempUsageDetail_20' ) end [2024-12-21 13:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:08:22] Production.INFO: ==1431== Releasing lock... [2024-12-21 13:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:08:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:09:05 [end_date_ymd] => 2024-12-21 13:09:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:09:05' and `end` < '2024-12-21 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-21 13:09:17] Production.INFO: count ==1860 [2024-12-21 13:09:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:09:05 - End Time 2024-12-21 13:09:05 [2024-12-21 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070369', 'tblTempUsageDetail_20' ) start [2024-12-21 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070369', 'tblTempUsageDetail_20' ) end [2024-12-21 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070369', 'tblTempVendorCDR_20' ) start [2024-12-21 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070369', 'tblTempVendorCDR_20' ) end [2024-12-21 13:09:18] Production.INFO: ProcessCDR(1,14070369,1,1,2) [2024-12-21 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070369', 'tblTempUsageDetail_20' ) start [2024-12-21 13:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070369', 'tblTempUsageDetail_20' ) end [2024-12-21 13:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:09:23] Production.INFO: ==1536== Releasing lock... [2024-12-21 13:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:09:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:10:05 [end_date_ymd] => 2024-12-21 13:10:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:10:05' and `end` < '2024-12-21 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-21 13:10:18] Production.INFO: count ==1875 [2024-12-21 13:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:10:05 - End Time 2024-12-21 13:10:05 [2024-12-21 13:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070375', 'tblTempUsageDetail_20' ) start [2024-12-21 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070375', 'tblTempUsageDetail_20' ) end [2024-12-21 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070375', 'tblTempVendorCDR_20' ) start [2024-12-21 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070375', 'tblTempVendorCDR_20' ) end [2024-12-21 13:10:18] Production.INFO: ProcessCDR(1,14070375,1,1,2) [2024-12-21 13:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070375', 'tblTempUsageDetail_20' ) start [2024-12-21 13:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070375', 'tblTempUsageDetail_20' ) end [2024-12-21 13:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:10:23] Production.INFO: ==1616== Releasing lock... [2024-12-21 13:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:10:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:11:05 [end_date_ymd] => 2024-12-21 13:11:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:11:05' and `end` < '2024-12-21 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-21 13:11:18] Production.INFO: count ==1900 [2024-12-21 13:11:19] Production.ERROR: pbx CDR StartTime 2024-12-21 10:11:05 - End Time 2024-12-21 13:11:05 [2024-12-21 13:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070380', 'tblTempUsageDetail_20' ) start [2024-12-21 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070380', 'tblTempUsageDetail_20' ) end [2024-12-21 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070380', 'tblTempVendorCDR_20' ) start [2024-12-21 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070380', 'tblTempVendorCDR_20' ) end [2024-12-21 13:11:19] Production.INFO: ProcessCDR(1,14070380,1,1,2) [2024-12-21 13:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070380', 'tblTempUsageDetail_20' ) start [2024-12-21 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070380', 'tblTempUsageDetail_20' ) end [2024-12-21 13:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:11:23] Production.INFO: ==1693== Releasing lock... [2024-12-21 13:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:11:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:12:04 [end_date_ymd] => 2024-12-21 13:12:04 [RateCDR] => 1 ) [2024-12-21 13: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-21 10:12:04' and `end` < '2024-12-21 13: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-21 13:12:16] Production.INFO: count ==1904 [2024-12-21 13:12:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:12:04 - End Time 2024-12-21 13:12:04 [2024-12-21 13:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070385', 'tblTempUsageDetail_20' ) start [2024-12-21 13:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070385', 'tblTempUsageDetail_20' ) end [2024-12-21 13:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070385', 'tblTempVendorCDR_20' ) start [2024-12-21 13:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070385', 'tblTempVendorCDR_20' ) end [2024-12-21 13:12:17] Production.INFO: ProcessCDR(1,14070385,1,1,2) [2024-12-21 13:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070385', 'tblTempUsageDetail_20' ) start [2024-12-21 13:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070385', 'tblTempUsageDetail_20' ) end [2024-12-21 13:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:12:21] Production.INFO: ==1763== Releasing lock... [2024-12-21 13:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:12:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:13:05 [end_date_ymd] => 2024-12-21 13:13:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:13:05' and `end` < '2024-12-21 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-21 13:13:17] Production.INFO: count ==1909 [2024-12-21 13:13:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:13:05 - End Time 2024-12-21 13:13:05 [2024-12-21 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070390', 'tblTempUsageDetail_20' ) start [2024-12-21 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070390', 'tblTempUsageDetail_20' ) end [2024-12-21 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070390', 'tblTempVendorCDR_20' ) start [2024-12-21 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070390', 'tblTempVendorCDR_20' ) end [2024-12-21 13:13:18] Production.INFO: ProcessCDR(1,14070390,1,1,2) [2024-12-21 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070390', 'tblTempUsageDetail_20' ) start [2024-12-21 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070390', 'tblTempUsageDetail_20' ) end [2024-12-21 13:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:13:22] Production.INFO: ==1838== Releasing lock... [2024-12-21 13:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:13:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:14:04 [end_date_ymd] => 2024-12-21 13:14:04 [RateCDR] => 1 ) [2024-12-21 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-21 10:14:04' and `end` < '2024-12-21 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-21 13:14:17] Production.INFO: count ==1904 [2024-12-21 13:14:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:14:04 - End Time 2024-12-21 13:14:04 [2024-12-21 13:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070395', 'tblTempUsageDetail_20' ) start [2024-12-21 13:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070395', 'tblTempUsageDetail_20' ) end [2024-12-21 13:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070395', 'tblTempVendorCDR_20' ) start [2024-12-21 13:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070395', 'tblTempVendorCDR_20' ) end [2024-12-21 13:14:17] Production.INFO: ProcessCDR(1,14070395,1,1,2) [2024-12-21 13:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070395', 'tblTempUsageDetail_20' ) start [2024-12-21 13:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070395', 'tblTempUsageDetail_20' ) end [2024-12-21 13:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:14:21] Production.INFO: ==1912== Releasing lock... [2024-12-21 13:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:14:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:15:04 [end_date_ymd] => 2024-12-21 13:15:04 [RateCDR] => 1 ) [2024-12-21 13: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-21 10:15:04' and `end` < '2024-12-21 13: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-21 13:15:19] Production.INFO: count ==1905 [2024-12-21 13:15:20] Production.ERROR: pbx CDR StartTime 2024-12-21 10:15:04 - End Time 2024-12-21 13:15:04 [2024-12-21 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070400', 'tblTempUsageDetail_20' ) start [2024-12-21 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070400', 'tblTempUsageDetail_20' ) end [2024-12-21 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070400', 'tblTempVendorCDR_20' ) start [2024-12-21 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070400', 'tblTempVendorCDR_20' ) end [2024-12-21 13:15:20] Production.INFO: ProcessCDR(1,14070400,1,1,2) [2024-12-21 13:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070400', 'tblTempUsageDetail_20' ) start [2024-12-21 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070400', 'tblTempUsageDetail_20' ) end [2024-12-21 13:15:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:15:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:15:24] Production.INFO: ==1987== Releasing lock... [2024-12-21 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:15:24] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:16:05 [end_date_ymd] => 2024-12-21 13:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:16:05' and `end` < '2024-12-21 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-21 13:16:18] Production.INFO: count ==1912 [2024-12-21 13:16:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:16:05 - End Time 2024-12-21 13:16:05 [2024-12-21 13:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070405', 'tblTempUsageDetail_20' ) start [2024-12-21 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070405', 'tblTempUsageDetail_20' ) end [2024-12-21 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070405', 'tblTempVendorCDR_20' ) start [2024-12-21 13:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070405', 'tblTempVendorCDR_20' ) end [2024-12-21 13:16:18] Production.INFO: ProcessCDR(1,14070405,1,1,2) [2024-12-21 13:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070405', 'tblTempUsageDetail_20' ) start [2024-12-21 13:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070405', 'tblTempUsageDetail_20' ) end [2024-12-21 13:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:16:22] Production.INFO: ==2058== Releasing lock... [2024-12-21 13:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:16:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:17:04 [end_date_ymd] => 2024-12-21 13:17:04 [RateCDR] => 1 ) [2024-12-21 13: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-21 10:17:04' and `end` < '2024-12-21 13: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-21 13:17:17] Production.INFO: count ==1913 [2024-12-21 13:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:17:04 - End Time 2024-12-21 13:17:04 [2024-12-21 13:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070410', 'tblTempUsageDetail_20' ) start [2024-12-21 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070410', 'tblTempUsageDetail_20' ) end [2024-12-21 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070410', 'tblTempVendorCDR_20' ) start [2024-12-21 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070410', 'tblTempVendorCDR_20' ) end [2024-12-21 13:17:17] Production.INFO: ProcessCDR(1,14070410,1,1,2) [2024-12-21 13:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070410', 'tblTempUsageDetail_20' ) start [2024-12-21 13:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070410', 'tblTempUsageDetail_20' ) end [2024-12-21 13:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:17:22] Production.INFO: ==2129== Releasing lock... [2024-12-21 13:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:17:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:18:05 [end_date_ymd] => 2024-12-21 13:18:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:18:05' and `end` < '2024-12-21 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-21 13:18:17] Production.INFO: count ==1914 [2024-12-21 13:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:18:05 - End Time 2024-12-21 13:18:05 [2024-12-21 13:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070415', 'tblTempUsageDetail_20' ) start [2024-12-21 13:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070415', 'tblTempUsageDetail_20' ) end [2024-12-21 13:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070415', 'tblTempVendorCDR_20' ) start [2024-12-21 13:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070415', 'tblTempVendorCDR_20' ) end [2024-12-21 13:18:17] Production.INFO: ProcessCDR(1,14070415,1,1,2) [2024-12-21 13:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070415', 'tblTempUsageDetail_20' ) start [2024-12-21 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070415', 'tblTempUsageDetail_20' ) end [2024-12-21 13:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:18:22] Production.INFO: ==2204== Releasing lock... [2024-12-21 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:18:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:19:04 [end_date_ymd] => 2024-12-21 13:19:04 [RateCDR] => 1 ) [2024-12-21 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-21 10:19:04' and `end` < '2024-12-21 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-21 13:19:17] Production.INFO: count ==1915 [2024-12-21 13:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:19:04 - End Time 2024-12-21 13:19:04 [2024-12-21 13:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070420', 'tblTempUsageDetail_20' ) start [2024-12-21 13:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070420', 'tblTempUsageDetail_20' ) end [2024-12-21 13:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070420', 'tblTempVendorCDR_20' ) start [2024-12-21 13:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070420', 'tblTempVendorCDR_20' ) end [2024-12-21 13:19:17] Production.INFO: ProcessCDR(1,14070420,1,1,2) [2024-12-21 13:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070420', 'tblTempUsageDetail_20' ) start [2024-12-21 13:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070420', 'tblTempUsageDetail_20' ) end [2024-12-21 13:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:19:22] Production.INFO: ==2276== Releasing lock... [2024-12-21 13:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:19:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:20:06 [end_date_ymd] => 2024-12-21 13:20:06 [RateCDR] => 1 ) [2024-12-21 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-21 10:20:06' and `end` < '2024-12-21 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-21 13:20:18] Production.INFO: count ==1918 [2024-12-21 13:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:20:06 - End Time 2024-12-21 13:20:06 [2024-12-21 13:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070426', 'tblTempUsageDetail_20' ) start [2024-12-21 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070426', 'tblTempUsageDetail_20' ) end [2024-12-21 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070426', 'tblTempVendorCDR_20' ) start [2024-12-21 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070426', 'tblTempVendorCDR_20' ) end [2024-12-21 13:20:18] Production.INFO: ProcessCDR(1,14070426,1,1,2) [2024-12-21 13:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070426', 'tblTempUsageDetail_20' ) start [2024-12-21 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070426', 'tblTempUsageDetail_20' ) end [2024-12-21 13:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:20:23] Production.INFO: ==2387== Releasing lock... [2024-12-21 13:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:20:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:21:04 [end_date_ymd] => 2024-12-21 13:21:04 [RateCDR] => 1 ) [2024-12-21 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-21 10:21:04' and `end` < '2024-12-21 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-21 13:21:16] Production.INFO: count ==1948 [2024-12-21 13:21:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:21:04 - End Time 2024-12-21 13:21:04 [2024-12-21 13:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070431', 'tblTempUsageDetail_20' ) start [2024-12-21 13:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070431', 'tblTempUsageDetail_20' ) end [2024-12-21 13:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070431', 'tblTempVendorCDR_20' ) start [2024-12-21 13:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070431', 'tblTempVendorCDR_20' ) end [2024-12-21 13:21:17] Production.INFO: ProcessCDR(1,14070431,1,1,2) [2024-12-21 13:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070431', 'tblTempUsageDetail_20' ) start [2024-12-21 13:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070431', 'tblTempUsageDetail_20' ) end [2024-12-21 13:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:21:22] Production.INFO: ==2460== Releasing lock... [2024-12-21 13:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:21:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:22:05 [end_date_ymd] => 2024-12-21 13:22:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:22:05' and `end` < '2024-12-21 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-21 13:22:18] Production.INFO: count ==1941 [2024-12-21 13:22:19] Production.ERROR: pbx CDR StartTime 2024-12-21 10:22:05 - End Time 2024-12-21 13:22:05 [2024-12-21 13:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070436', 'tblTempUsageDetail_20' ) start [2024-12-21 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070436', 'tblTempUsageDetail_20' ) end [2024-12-21 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070436', 'tblTempVendorCDR_20' ) start [2024-12-21 13:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070436', 'tblTempVendorCDR_20' ) end [2024-12-21 13:22:19] Production.INFO: ProcessCDR(1,14070436,1,1,2) [2024-12-21 13:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070436', 'tblTempUsageDetail_20' ) start [2024-12-21 13:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070436', 'tblTempUsageDetail_20' ) end [2024-12-21 13:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:22:23] Production.INFO: ==2532== Releasing lock... [2024-12-21 13:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:22:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:23:05 [end_date_ymd] => 2024-12-21 13:23:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:23:05' and `end` < '2024-12-21 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-21 13:23:18] Production.INFO: count ==1942 [2024-12-21 13:23:19] Production.ERROR: pbx CDR StartTime 2024-12-21 10:23:05 - End Time 2024-12-21 13:23:05 [2024-12-21 13:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070441', 'tblTempUsageDetail_20' ) start [2024-12-21 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070441', 'tblTempUsageDetail_20' ) end [2024-12-21 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070441', 'tblTempVendorCDR_20' ) start [2024-12-21 13:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070441', 'tblTempVendorCDR_20' ) end [2024-12-21 13:23:19] Production.INFO: ProcessCDR(1,14070441,1,1,2) [2024-12-21 13:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070441', 'tblTempUsageDetail_20' ) start [2024-12-21 13:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070441', 'tblTempUsageDetail_20' ) end [2024-12-21 13:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:23:23] Production.INFO: ==2602== Releasing lock... [2024-12-21 13:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:23:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:24:05 [end_date_ymd] => 2024-12-21 13:24:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:24:05' and `end` < '2024-12-21 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-21 13:24:17] Production.INFO: count ==1947 [2024-12-21 13:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:24:05 - End Time 2024-12-21 13:24:05 [2024-12-21 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070446', 'tblTempUsageDetail_20' ) start [2024-12-21 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070446', 'tblTempUsageDetail_20' ) end [2024-12-21 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070446', 'tblTempVendorCDR_20' ) start [2024-12-21 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070446', 'tblTempVendorCDR_20' ) end [2024-12-21 13:24:18] Production.INFO: ProcessCDR(1,14070446,1,1,2) [2024-12-21 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070446', 'tblTempUsageDetail_20' ) start [2024-12-21 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070446', 'tblTempUsageDetail_20' ) end [2024-12-21 13:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:24:22] Production.INFO: ==2675== Releasing lock... [2024-12-21 13:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:24:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:25:05 [end_date_ymd] => 2024-12-21 13:25:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:25:05' and `end` < '2024-12-21 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-21 13:25:17] Production.INFO: count ==1948 [2024-12-21 13:25:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:25:05 - End Time 2024-12-21 13:25:05 [2024-12-21 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070451', 'tblTempUsageDetail_20' ) start [2024-12-21 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070451', 'tblTempUsageDetail_20' ) end [2024-12-21 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070451', 'tblTempVendorCDR_20' ) start [2024-12-21 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070451', 'tblTempVendorCDR_20' ) end [2024-12-21 13:25:18] Production.INFO: ProcessCDR(1,14070451,1,1,2) [2024-12-21 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070451', 'tblTempUsageDetail_20' ) start [2024-12-21 13:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070451', 'tblTempUsageDetail_20' ) end [2024-12-21 13:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:25:22] Production.INFO: ==2745== Releasing lock... [2024-12-21 13:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:25:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:26:04 [end_date_ymd] => 2024-12-21 13:26:04 [RateCDR] => 1 ) [2024-12-21 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-21 10:26:04' and `end` < '2024-12-21 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-21 13:26:17] Production.INFO: count ==1939 [2024-12-21 13:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:26:04 - End Time 2024-12-21 13:26:04 [2024-12-21 13:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070456', 'tblTempUsageDetail_20' ) start [2024-12-21 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070456', 'tblTempUsageDetail_20' ) end [2024-12-21 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070456', 'tblTempVendorCDR_20' ) start [2024-12-21 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070456', 'tblTempVendorCDR_20' ) end [2024-12-21 13:26:17] Production.INFO: ProcessCDR(1,14070456,1,1,2) [2024-12-21 13:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070456', 'tblTempUsageDetail_20' ) start [2024-12-21 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070456', 'tblTempUsageDetail_20' ) end [2024-12-21 13:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:26:22] Production.INFO: ==2819== Releasing lock... [2024-12-21 13:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:26:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:27:05 [end_date_ymd] => 2024-12-21 13:27:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:27:05' and `end` < '2024-12-21 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-21 13:27:17] Production.INFO: count ==1928 [2024-12-21 13:27:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:27:05 - End Time 2024-12-21 13:27:05 [2024-12-21 13:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070461', 'tblTempUsageDetail_20' ) start [2024-12-21 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070461', 'tblTempUsageDetail_20' ) end [2024-12-21 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070461', 'tblTempVendorCDR_20' ) start [2024-12-21 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070461', 'tblTempVendorCDR_20' ) end [2024-12-21 13:27:17] Production.INFO: ProcessCDR(1,14070461,1,1,2) [2024-12-21 13:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070461', 'tblTempUsageDetail_20' ) start [2024-12-21 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070461', 'tblTempUsageDetail_20' ) end [2024-12-21 13:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:27:22] Production.INFO: ==2890== Releasing lock... [2024-12-21 13:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:27:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:28:04 [end_date_ymd] => 2024-12-21 13:28:04 [RateCDR] => 1 ) [2024-12-21 13: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-21 10:28:04' and `end` < '2024-12-21 13: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-21 13:28:17] Production.INFO: count ==1922 [2024-12-21 13:28:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:28:04 - End Time 2024-12-21 13:28:04 [2024-12-21 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070466', 'tblTempUsageDetail_20' ) start [2024-12-21 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070466', 'tblTempUsageDetail_20' ) end [2024-12-21 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070466', 'tblTempVendorCDR_20' ) start [2024-12-21 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070466', 'tblTempVendorCDR_20' ) end [2024-12-21 13:28:18] Production.INFO: ProcessCDR(1,14070466,1,1,2) [2024-12-21 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070466', 'tblTempUsageDetail_20' ) start [2024-12-21 13:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070466', 'tblTempUsageDetail_20' ) end [2024-12-21 13:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:28:21] Production.INFO: ==2962== Releasing lock... [2024-12-21 13:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:28:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:29:05 [end_date_ymd] => 2024-12-21 13:29:05 [RateCDR] => 1 ) [2024-12-21 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 10:29:05' and `end` < '2024-12-21 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 13:29:17] Production.INFO: count ==1920 [2024-12-21 13:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:29:05 - End Time 2024-12-21 13:29:05 [2024-12-21 13:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070471', 'tblTempUsageDetail_20' ) start [2024-12-21 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070471', 'tblTempUsageDetail_20' ) end [2024-12-21 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070471', 'tblTempVendorCDR_20' ) start [2024-12-21 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070471', 'tblTempVendorCDR_20' ) end [2024-12-21 13:29:17] Production.INFO: ProcessCDR(1,14070471,1,1,2) [2024-12-21 13:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070471', 'tblTempUsageDetail_20' ) start [2024-12-21 13:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070471', 'tblTempUsageDetail_20' ) end [2024-12-21 13:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:29:20] Production.INFO: ==3041== Releasing lock... [2024-12-21 13:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:29:20] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:30:06 [end_date_ymd] => 2024-12-21 13:30:06 [RateCDR] => 1 ) [2024-12-21 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-21 10:30:06' and `end` < '2024-12-21 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-21 13:30:18] Production.INFO: count ==1918 [2024-12-21 13:30:19] Production.ERROR: pbx CDR StartTime 2024-12-21 10:30:06 - End Time 2024-12-21 13:30:06 [2024-12-21 13:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070477', 'tblTempUsageDetail_20' ) start [2024-12-21 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070477', 'tblTempUsageDetail_20' ) end [2024-12-21 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070477', 'tblTempVendorCDR_20' ) start [2024-12-21 13:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070477', 'tblTempVendorCDR_20' ) end [2024-12-21 13:30:19] Production.INFO: ProcessCDR(1,14070477,1,1,2) [2024-12-21 13:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070477', 'tblTempUsageDetail_20' ) start [2024-12-21 13:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070477', 'tblTempUsageDetail_20' ) end [2024-12-21 13:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:30:22] Production.INFO: ==3116== Releasing lock... [2024-12-21 13:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:30:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:31:05 [end_date_ymd] => 2024-12-21 13:31:05 [RateCDR] => 1 ) [2024-12-21 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 10:31:05' and `end` < '2024-12-21 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 13:31:17] Production.INFO: count ==1945 [2024-12-21 13:31:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:31:05 - End Time 2024-12-21 13:31:05 [2024-12-21 13:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070482', 'tblTempUsageDetail_20' ) start [2024-12-21 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070482', 'tblTempUsageDetail_20' ) end [2024-12-21 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070482', 'tblTempVendorCDR_20' ) start [2024-12-21 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070482', 'tblTempVendorCDR_20' ) end [2024-12-21 13:31:17] Production.INFO: ProcessCDR(1,14070482,1,1,2) [2024-12-21 13:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070482', 'tblTempUsageDetail_20' ) start [2024-12-21 13:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070482', 'tblTempUsageDetail_20' ) end [2024-12-21 13:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:31:21] Production.INFO: ==3189== Releasing lock... [2024-12-21 13:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:31:21] Production.INFO: 43 MB #Memory Used# [2024-12-21 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:32:05 [end_date_ymd] => 2024-12-21 13:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:32:05' and `end` < '2024-12-21 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-21 13:32:19] Production.INFO: count ==1937 [2024-12-21 13:32:19] Production.ERROR: pbx CDR StartTime 2024-12-21 10:32:05 - End Time 2024-12-21 13:32:05 [2024-12-21 13:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070487', 'tblTempUsageDetail_20' ) start [2024-12-21 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070487', 'tblTempUsageDetail_20' ) end [2024-12-21 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070487', 'tblTempVendorCDR_20' ) start [2024-12-21 13:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070487', 'tblTempVendorCDR_20' ) end [2024-12-21 13:32:19] Production.INFO: ProcessCDR(1,14070487,1,1,2) [2024-12-21 13:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070487', 'tblTempUsageDetail_20' ) start [2024-12-21 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070487', 'tblTempUsageDetail_20' ) end [2024-12-21 13:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:32:22] Production.INFO: ==3260== Releasing lock... [2024-12-21 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:32:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:33:04 [end_date_ymd] => 2024-12-21 13:33:04 [RateCDR] => 1 ) [2024-12-21 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-21 10:33:04' and `end` < '2024-12-21 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-21 13:33:17] Production.INFO: count ==1939 [2024-12-21 13:33:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:33:04 - End Time 2024-12-21 13:33:04 [2024-12-21 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070492', 'tblTempUsageDetail_20' ) start [2024-12-21 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070492', 'tblTempUsageDetail_20' ) end [2024-12-21 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070492', 'tblTempVendorCDR_20' ) start [2024-12-21 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070492', 'tblTempVendorCDR_20' ) end [2024-12-21 13:33:18] Production.INFO: ProcessCDR(1,14070492,1,1,2) [2024-12-21 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070492', 'tblTempUsageDetail_20' ) start [2024-12-21 13:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070492', 'tblTempUsageDetail_20' ) end [2024-12-21 13:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:33:21] Production.INFO: ==3331== Releasing lock... [2024-12-21 13:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:33:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:34:05 [end_date_ymd] => 2024-12-21 13:34:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:34:05' and `end` < '2024-12-21 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-21 13:34:17] Production.INFO: count ==1939 [2024-12-21 13:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:34:05 - End Time 2024-12-21 13:34:05 [2024-12-21 13:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070497', 'tblTempUsageDetail_20' ) start [2024-12-21 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070497', 'tblTempUsageDetail_20' ) end [2024-12-21 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070497', 'tblTempVendorCDR_20' ) start [2024-12-21 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070497', 'tblTempVendorCDR_20' ) end [2024-12-21 13:34:18] Production.INFO: ProcessCDR(1,14070497,1,1,2) [2024-12-21 13:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070497', 'tblTempUsageDetail_20' ) start [2024-12-21 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070497', 'tblTempUsageDetail_20' ) end [2024-12-21 13:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:34:22] Production.INFO: ==3407== Releasing lock... [2024-12-21 13:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:34:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:35:05 [end_date_ymd] => 2024-12-21 13:35:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:35:05' and `end` < '2024-12-21 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-21 13:35:17] Production.INFO: count ==1947 [2024-12-21 13:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:35:05 - End Time 2024-12-21 13:35:05 [2024-12-21 13:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070502', 'tblTempUsageDetail_20' ) start [2024-12-21 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070502', 'tblTempUsageDetail_20' ) end [2024-12-21 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070502', 'tblTempVendorCDR_20' ) start [2024-12-21 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070502', 'tblTempVendorCDR_20' ) end [2024-12-21 13:35:18] Production.INFO: ProcessCDR(1,14070502,1,1,2) [2024-12-21 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070502', 'tblTempUsageDetail_20' ) start [2024-12-21 13:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070502', 'tblTempUsageDetail_20' ) end [2024-12-21 13:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:35:21] Production.INFO: ==3478== Releasing lock... [2024-12-21 13:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:35:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:36:05 [end_date_ymd] => 2024-12-21 13:36:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:36:05' and `end` < '2024-12-21 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-21 13:36:17] Production.INFO: count ==1960 [2024-12-21 13:36:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:36:05 - End Time 2024-12-21 13:36:05 [2024-12-21 13:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070507', 'tblTempUsageDetail_20' ) start [2024-12-21 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070507', 'tblTempUsageDetail_20' ) end [2024-12-21 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070507', 'tblTempVendorCDR_20' ) start [2024-12-21 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070507', 'tblTempVendorCDR_20' ) end [2024-12-21 13:36:18] Production.INFO: ProcessCDR(1,14070507,1,1,2) [2024-12-21 13:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070507', 'tblTempUsageDetail_20' ) start [2024-12-21 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070507', 'tblTempUsageDetail_20' ) end [2024-12-21 13:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:36:22] Production.INFO: ==3591== Releasing lock... [2024-12-21 13:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:36:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:37:05 [end_date_ymd] => 2024-12-21 13:37:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:37:05' and `end` < '2024-12-21 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-21 13:37:17] Production.INFO: count ==1963 [2024-12-21 13:37:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:37:05 - End Time 2024-12-21 13:37:05 [2024-12-21 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070512', 'tblTempUsageDetail_20' ) start [2024-12-21 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070512', 'tblTempUsageDetail_20' ) end [2024-12-21 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070512', 'tblTempVendorCDR_20' ) start [2024-12-21 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070512', 'tblTempVendorCDR_20' ) end [2024-12-21 13:37:18] Production.INFO: ProcessCDR(1,14070512,1,1,2) [2024-12-21 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070512', 'tblTempUsageDetail_20' ) start [2024-12-21 13:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070512', 'tblTempUsageDetail_20' ) end [2024-12-21 13:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:37:21] Production.INFO: ==3661== Releasing lock... [2024-12-21 13:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:37:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:38:04 [end_date_ymd] => 2024-12-21 13:38:04 [RateCDR] => 1 ) [2024-12-21 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-21 10:38:04' and `end` < '2024-12-21 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-21 13:38:17] Production.INFO: count ==1963 [2024-12-21 13:38:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:38:04 - End Time 2024-12-21 13:38:04 [2024-12-21 13:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070517', 'tblTempUsageDetail_20' ) start [2024-12-21 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070517', 'tblTempUsageDetail_20' ) end [2024-12-21 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070517', 'tblTempVendorCDR_20' ) start [2024-12-21 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070517', 'tblTempVendorCDR_20' ) end [2024-12-21 13:38:17] Production.INFO: ProcessCDR(1,14070517,1,1,2) [2024-12-21 13:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070517', 'tblTempUsageDetail_20' ) start [2024-12-21 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070517', 'tblTempUsageDetail_20' ) end [2024-12-21 13:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:38:22] Production.INFO: ==3734== Releasing lock... [2024-12-21 13:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:38:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:39:05 [end_date_ymd] => 2024-12-21 13:39:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:39:05' and `end` < '2024-12-21 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-21 13:39:17] Production.INFO: count ==1966 [2024-12-21 13:39:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:39:05 - End Time 2024-12-21 13:39:05 [2024-12-21 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070522', 'tblTempUsageDetail_20' ) start [2024-12-21 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070522', 'tblTempUsageDetail_20' ) end [2024-12-21 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070522', 'tblTempVendorCDR_20' ) start [2024-12-21 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070522', 'tblTempVendorCDR_20' ) end [2024-12-21 13:39:18] Production.INFO: ProcessCDR(1,14070522,1,1,2) [2024-12-21 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070522', 'tblTempUsageDetail_20' ) start [2024-12-21 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070522', 'tblTempUsageDetail_20' ) end [2024-12-21 13:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:39:22] Production.INFO: ==3805== Releasing lock... [2024-12-21 13:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:39:22] Production.INFO: 43 MB #Memory Used# [2024-12-21 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:40:06 [end_date_ymd] => 2024-12-21 13:40:06 [RateCDR] => 1 ) [2024-12-21 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-21 10:40:06' and `end` < '2024-12-21 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-21 13:40:18] Production.INFO: count ==1976 [2024-12-21 13:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:40:06 - End Time 2024-12-21 13:40:06 [2024-12-21 13:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070527', 'tblTempUsageDetail_20' ) start [2024-12-21 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070527', 'tblTempUsageDetail_20' ) end [2024-12-21 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070527', 'tblTempVendorCDR_20' ) start [2024-12-21 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070527', 'tblTempVendorCDR_20' ) end [2024-12-21 13:40:18] Production.INFO: ProcessCDR(1,14070527,1,1,2) [2024-12-21 13:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070527', 'tblTempUsageDetail_20' ) start [2024-12-21 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070527', 'tblTempUsageDetail_20' ) end [2024-12-21 13:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:40:23] Production.INFO: ==3877== Releasing lock... [2024-12-21 13:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:40:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:41:05 [end_date_ymd] => 2024-12-21 13:41:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:41:05' and `end` < '2024-12-21 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-21 13:41:19] Production.INFO: count ==1969 [2024-12-21 13:41:19] Production.ERROR: pbx CDR StartTime 2024-12-21 10:41:05 - End Time 2024-12-21 13:41:05 [2024-12-21 13:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070533', 'tblTempUsageDetail_20' ) start [2024-12-21 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070533', 'tblTempUsageDetail_20' ) end [2024-12-21 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070533', 'tblTempVendorCDR_20' ) start [2024-12-21 13:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070533', 'tblTempVendorCDR_20' ) end [2024-12-21 13:41:19] Production.INFO: ProcessCDR(1,14070533,1,1,2) [2024-12-21 13:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070533', 'tblTempUsageDetail_20' ) start [2024-12-21 13:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070533', 'tblTempUsageDetail_20' ) end [2024-12-21 13:41:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:41:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:41:24] Production.INFO: ==3950== Releasing lock... [2024-12-21 13:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:41:24] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:42:05 [end_date_ymd] => 2024-12-21 13:42:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:42:05' and `end` < '2024-12-21 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-21 13:42:17] Production.INFO: count ==1949 [2024-12-21 13:42:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:42:05 - End Time 2024-12-21 13:42:05 [2024-12-21 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070538', 'tblTempUsageDetail_20' ) start [2024-12-21 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070538', 'tblTempUsageDetail_20' ) end [2024-12-21 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070538', 'tblTempVendorCDR_20' ) start [2024-12-21 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070538', 'tblTempVendorCDR_20' ) end [2024-12-21 13:42:18] Production.INFO: ProcessCDR(1,14070538,1,1,2) [2024-12-21 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070538', 'tblTempUsageDetail_20' ) start [2024-12-21 13:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070538', 'tblTempUsageDetail_20' ) end [2024-12-21 13:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:42:21] Production.INFO: ==4025== Releasing lock... [2024-12-21 13:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:42:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:43:04 [end_date_ymd] => 2024-12-21 13:43:04 [RateCDR] => 1 ) [2024-12-21 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-21 10:43:04' and `end` < '2024-12-21 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-21 13:43:17] Production.INFO: count ==1941 [2024-12-21 13:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:43:04 - End Time 2024-12-21 13:43:04 [2024-12-21 13:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070543', 'tblTempUsageDetail_20' ) start [2024-12-21 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070543', 'tblTempUsageDetail_20' ) end [2024-12-21 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070543', 'tblTempVendorCDR_20' ) start [2024-12-21 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070543', 'tblTempVendorCDR_20' ) end [2024-12-21 13:43:17] Production.INFO: ProcessCDR(1,14070543,1,1,2) [2024-12-21 13:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070543', 'tblTempUsageDetail_20' ) start [2024-12-21 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070543', 'tblTempUsageDetail_20' ) end [2024-12-21 13:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:43:21] Production.INFO: ==4102== Releasing lock... [2024-12-21 13:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:43:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:44:05 [end_date_ymd] => 2024-12-21 13:44:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:44:05' and `end` < '2024-12-21 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-21 13:44:17] Production.INFO: count ==1939 [2024-12-21 13:44:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:44:05 - End Time 2024-12-21 13:44:05 [2024-12-21 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070548', 'tblTempUsageDetail_20' ) start [2024-12-21 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070548', 'tblTempUsageDetail_20' ) end [2024-12-21 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070548', 'tblTempVendorCDR_20' ) start [2024-12-21 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070548', 'tblTempVendorCDR_20' ) end [2024-12-21 13:44:18] Production.INFO: ProcessCDR(1,14070548,1,1,2) [2024-12-21 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070548', 'tblTempUsageDetail_20' ) start [2024-12-21 13:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070548', 'tblTempUsageDetail_20' ) end [2024-12-21 13:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:44:22] Production.INFO: ==4176== Releasing lock... [2024-12-21 13:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:44:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:45:04 [end_date_ymd] => 2024-12-21 13:45:04 [RateCDR] => 1 ) [2024-12-21 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-21 10:45:04' and `end` < '2024-12-21 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-21 13:45:16] Production.INFO: count ==1928 [2024-12-21 13:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:45:04 - End Time 2024-12-21 13:45:04 [2024-12-21 13:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070553', 'tblTempUsageDetail_20' ) start [2024-12-21 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070553', 'tblTempUsageDetail_20' ) end [2024-12-21 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070553', 'tblTempVendorCDR_20' ) start [2024-12-21 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070553', 'tblTempVendorCDR_20' ) end [2024-12-21 13:45:17] Production.INFO: ProcessCDR(1,14070553,1,1,2) [2024-12-21 13:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070553', 'tblTempUsageDetail_20' ) start [2024-12-21 13:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070553', 'tblTempUsageDetail_20' ) end [2024-12-21 13:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:45:20] Production.INFO: ==4248== Releasing lock... [2024-12-21 13:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:45:20] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:46:05 [end_date_ymd] => 2024-12-21 13:46:05 [RateCDR] => 1 ) [2024-12-21 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 10:46:05' and `end` < '2024-12-21 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 13:46:17] Production.INFO: count ==1928 [2024-12-21 13:46:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:46:05 - End Time 2024-12-21 13:46:05 [2024-12-21 13:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070558', 'tblTempUsageDetail_20' ) start [2024-12-21 13:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070558', 'tblTempUsageDetail_20' ) end [2024-12-21 13:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070558', 'tblTempVendorCDR_20' ) start [2024-12-21 13:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070558', 'tblTempVendorCDR_20' ) end [2024-12-21 13:46:17] Production.INFO: ProcessCDR(1,14070558,1,1,2) [2024-12-21 13:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070558', 'tblTempUsageDetail_20' ) start [2024-12-21 13:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070558', 'tblTempUsageDetail_20' ) end [2024-12-21 13:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:46:20] Production.INFO: ==4319== Releasing lock... [2024-12-21 13:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:46:20] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:47:05 [end_date_ymd] => 2024-12-21 13:47:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:47:05' and `end` < '2024-12-21 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-21 13:47:17] Production.INFO: count ==1935 [2024-12-21 13:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:47:05 - End Time 2024-12-21 13:47:05 [2024-12-21 13:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070563', 'tblTempUsageDetail_20' ) start [2024-12-21 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070563', 'tblTempUsageDetail_20' ) end [2024-12-21 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070563', 'tblTempVendorCDR_20' ) start [2024-12-21 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070563', 'tblTempVendorCDR_20' ) end [2024-12-21 13:47:17] Production.INFO: ProcessCDR(1,14070563,1,1,2) [2024-12-21 13:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070563', 'tblTempUsageDetail_20' ) start [2024-12-21 13:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070563', 'tblTempUsageDetail_20' ) end [2024-12-21 13:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:47:20] Production.INFO: ==4389== Releasing lock... [2024-12-21 13:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:47:20] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:48:04 [end_date_ymd] => 2024-12-21 13:48:04 [RateCDR] => 1 ) [2024-12-21 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-21 10:48:04' and `end` < '2024-12-21 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-21 13:48:17] Production.INFO: count ==1948 [2024-12-21 13:48:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:48:04 - End Time 2024-12-21 13:48:04 [2024-12-21 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070568', 'tblTempUsageDetail_20' ) start [2024-12-21 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070568', 'tblTempUsageDetail_20' ) end [2024-12-21 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070568', 'tblTempVendorCDR_20' ) start [2024-12-21 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070568', 'tblTempVendorCDR_20' ) end [2024-12-21 13:48:18] Production.INFO: ProcessCDR(1,14070568,1,1,2) [2024-12-21 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070568', 'tblTempUsageDetail_20' ) start [2024-12-21 13:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070568', 'tblTempUsageDetail_20' ) end [2024-12-21 13:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:48:21] Production.INFO: ==4458== Releasing lock... [2024-12-21 13:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:48:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:49:04 [end_date_ymd] => 2024-12-21 13:49:04 [RateCDR] => 1 ) [2024-12-21 13: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-21 10:49:04' and `end` < '2024-12-21 13: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-21 13:49:17] Production.INFO: count ==1947 [2024-12-21 13:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:49:04 - End Time 2024-12-21 13:49:04 [2024-12-21 13:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070573', 'tblTempUsageDetail_20' ) start [2024-12-21 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070573', 'tblTempUsageDetail_20' ) end [2024-12-21 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070573', 'tblTempVendorCDR_20' ) start [2024-12-21 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070573', 'tblTempVendorCDR_20' ) end [2024-12-21 13:49:17] Production.INFO: ProcessCDR(1,14070573,1,1,2) [2024-12-21 13:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070573', 'tblTempUsageDetail_20' ) start [2024-12-21 13:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070573', 'tblTempUsageDetail_20' ) end [2024-12-21 13:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:49:20] Production.INFO: ==4532== Releasing lock... [2024-12-21 13:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:49:20] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:50:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:50:04 [end_date_ymd] => 2024-12-21 13:50:04 [RateCDR] => 1 ) [2024-12-21 13:50:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 10:50:04' and `end` < '2024-12-21 13:50:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 13:50:17] Production.INFO: count ==1938 [2024-12-21 13:50:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:50:04 - End Time 2024-12-21 13:50:04 [2024-12-21 13:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070578', 'tblTempUsageDetail_20' ) start [2024-12-21 13:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070578', 'tblTempUsageDetail_20' ) end [2024-12-21 13:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070578', 'tblTempVendorCDR_20' ) start [2024-12-21 13:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070578', 'tblTempVendorCDR_20' ) end [2024-12-21 13:50:17] Production.INFO: ProcessCDR(1,14070578,1,1,2) [2024-12-21 13:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070578', 'tblTempUsageDetail_20' ) start [2024-12-21 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070578', 'tblTempUsageDetail_20' ) end [2024-12-21 13:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:50:22] Production.INFO: ==4614== Releasing lock... [2024-12-21 13:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:50:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:51:04 [end_date_ymd] => 2024-12-21 13:51:04 [RateCDR] => 1 ) [2024-12-21 13: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-21 10:51:04' and `end` < '2024-12-21 13: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-21 13:51:17] Production.INFO: count ==1934 [2024-12-21 13:51:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:51:04 - End Time 2024-12-21 13:51:04 [2024-12-21 13:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070584', 'tblTempUsageDetail_20' ) start [2024-12-21 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070584', 'tblTempUsageDetail_20' ) end [2024-12-21 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070584', 'tblTempVendorCDR_20' ) start [2024-12-21 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070584', 'tblTempVendorCDR_20' ) end [2024-12-21 13:51:17] Production.INFO: ProcessCDR(1,14070584,1,1,2) [2024-12-21 13:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070584', 'tblTempUsageDetail_20' ) start [2024-12-21 13:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070584', 'tblTempUsageDetail_20' ) end [2024-12-21 13:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:51:22] Production.INFO: ==4710== Releasing lock... [2024-12-21 13:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:51:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:52:05 [end_date_ymd] => 2024-12-21 13:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:52:05' and `end` < '2024-12-21 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-21 13:52:17] Production.INFO: count ==1949 [2024-12-21 13:52:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:52:05 - End Time 2024-12-21 13:52:05 [2024-12-21 13:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070589', 'tblTempUsageDetail_20' ) start [2024-12-21 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070589', 'tblTempUsageDetail_20' ) end [2024-12-21 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070589', 'tblTempVendorCDR_20' ) start [2024-12-21 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070589', 'tblTempVendorCDR_20' ) end [2024-12-21 13:52:18] Production.INFO: ProcessCDR(1,14070589,1,1,2) [2024-12-21 13:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070589', 'tblTempUsageDetail_20' ) start [2024-12-21 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070589', 'tblTempUsageDetail_20' ) end [2024-12-21 13:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:52:22] Production.INFO: ==4822== Releasing lock... [2024-12-21 13:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:52:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:53:05 [end_date_ymd] => 2024-12-21 13:53:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:53:05' and `end` < '2024-12-21 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-21 13:53:17] Production.INFO: count ==1956 [2024-12-21 13:53:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:53:05 - End Time 2024-12-21 13:53:05 [2024-12-21 13:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070594', 'tblTempUsageDetail_20' ) start [2024-12-21 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070594', 'tblTempUsageDetail_20' ) end [2024-12-21 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070594', 'tblTempVendorCDR_20' ) start [2024-12-21 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070594', 'tblTempVendorCDR_20' ) end [2024-12-21 13:53:17] Production.INFO: ProcessCDR(1,14070594,1,1,2) [2024-12-21 13:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070594', 'tblTempUsageDetail_20' ) start [2024-12-21 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070594', 'tblTempUsageDetail_20' ) end [2024-12-21 13:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:53:22] Production.INFO: ==4892== Releasing lock... [2024-12-21 13:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:53:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:54:05 [end_date_ymd] => 2024-12-21 13:54:05 [RateCDR] => 1 ) [2024-12-21 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 10:54:05' and `end` < '2024-12-21 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 13:54:17] Production.INFO: count ==1958 [2024-12-21 13:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:54:05 - End Time 2024-12-21 13:54:05 [2024-12-21 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070599', 'tblTempUsageDetail_20' ) start [2024-12-21 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070599', 'tblTempUsageDetail_20' ) end [2024-12-21 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070599', 'tblTempVendorCDR_20' ) start [2024-12-21 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070599', 'tblTempVendorCDR_20' ) end [2024-12-21 13:54:18] Production.INFO: ProcessCDR(1,14070599,1,1,2) [2024-12-21 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070599', 'tblTempUsageDetail_20' ) start [2024-12-21 13:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070599', 'tblTempUsageDetail_20' ) end [2024-12-21 13:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:54:23] Production.INFO: ==4964== Releasing lock... [2024-12-21 13:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:54:23] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:55:05 [end_date_ymd] => 2024-12-21 13:55:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:55:05' and `end` < '2024-12-21 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-21 13:55:17] Production.INFO: count ==1962 [2024-12-21 13:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:55:05 - End Time 2024-12-21 13:55:05 [2024-12-21 13:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070604', 'tblTempUsageDetail_20' ) start [2024-12-21 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070604', 'tblTempUsageDetail_20' ) end [2024-12-21 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070604', 'tblTempVendorCDR_20' ) start [2024-12-21 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070604', 'tblTempVendorCDR_20' ) end [2024-12-21 13:55:18] Production.INFO: ProcessCDR(1,14070604,1,1,2) [2024-12-21 13:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070604', 'tblTempUsageDetail_20' ) start [2024-12-21 13:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070604', 'tblTempUsageDetail_20' ) end [2024-12-21 13:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:55:21] Production.INFO: ==5033== Releasing lock... [2024-12-21 13:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:55:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:56:05 [end_date_ymd] => 2024-12-21 13:56:05 [RateCDR] => 1 ) [2024-12-21 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 10:56:05' and `end` < '2024-12-21 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 13:56:18] Production.INFO: count ==1979 [2024-12-21 13:56:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:56:05 - End Time 2024-12-21 13:56:05 [2024-12-21 13:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070609', 'tblTempUsageDetail_20' ) start [2024-12-21 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070609', 'tblTempUsageDetail_20' ) end [2024-12-21 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070609', 'tblTempVendorCDR_20' ) start [2024-12-21 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070609', 'tblTempVendorCDR_20' ) end [2024-12-21 13:56:18] Production.INFO: ProcessCDR(1,14070609,1,1,2) [2024-12-21 13:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070609', 'tblTempUsageDetail_20' ) start [2024-12-21 13:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070609', 'tblTempUsageDetail_20' ) end [2024-12-21 13:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:56:21] Production.INFO: ==5106== Releasing lock... [2024-12-21 13:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:56:21] Production.INFO: 43 MB #Memory Used# [2024-12-21 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:57:04 [end_date_ymd] => 2024-12-21 13:57:04 [RateCDR] => 1 ) [2024-12-21 13:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 10:57:04' and `end` < '2024-12-21 13:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 13:57:17] Production.INFO: count ==1979 [2024-12-21 13:57:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:57:04 - End Time 2024-12-21 13:57:04 [2024-12-21 13:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070614', 'tblTempUsageDetail_20' ) start [2024-12-21 13:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070614', 'tblTempUsageDetail_20' ) end [2024-12-21 13:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070614', 'tblTempVendorCDR_20' ) start [2024-12-21 13:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070614', 'tblTempVendorCDR_20' ) end [2024-12-21 13:57:17] Production.INFO: ProcessCDR(1,14070614,1,1,2) [2024-12-21 13:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070614', 'tblTempUsageDetail_20' ) start [2024-12-21 13:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070614', 'tblTempUsageDetail_20' ) end [2024-12-21 13:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:57:20] Production.INFO: ==5181== Releasing lock... [2024-12-21 13:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:57:20] Production.INFO: 43 MB #Memory Used# [2024-12-21 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:58:05 [end_date_ymd] => 2024-12-21 13:58:05 [RateCDR] => 1 ) [2024-12-21 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-21 10:58:05' and `end` < '2024-12-21 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-21 13:58:17] Production.INFO: count ==1985 [2024-12-21 13:58:18] Production.ERROR: pbx CDR StartTime 2024-12-21 10:58:05 - End Time 2024-12-21 13:58:05 [2024-12-21 13:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070619', 'tblTempUsageDetail_20' ) start [2024-12-21 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070619', 'tblTempUsageDetail_20' ) end [2024-12-21 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070619', 'tblTempVendorCDR_20' ) start [2024-12-21 13:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070619', 'tblTempVendorCDR_20' ) end [2024-12-21 13:58:18] Production.INFO: ProcessCDR(1,14070619,1,1,2) [2024-12-21 13:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070619', 'tblTempUsageDetail_20' ) start [2024-12-21 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070619', 'tblTempUsageDetail_20' ) end [2024-12-21 13:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:58:22] Production.INFO: ==5257== Releasing lock... [2024-12-21 13:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:58:22] Production.INFO: 43 MB #Memory Used# [2024-12-21 13:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 10:59:04 [end_date_ymd] => 2024-12-21 13:59:04 [RateCDR] => 1 ) [2024-12-21 13:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 10:59:04' and `end` < '2024-12-21 13:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 13:59:17] Production.INFO: count ==1980 [2024-12-21 13:59:17] Production.ERROR: pbx CDR StartTime 2024-12-21 10:59:04 - End Time 2024-12-21 13:59:04 [2024-12-21 13:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070624', 'tblTempUsageDetail_20' ) start [2024-12-21 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070624', 'tblTempUsageDetail_20' ) end [2024-12-21 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070624', 'tblTempVendorCDR_20' ) start [2024-12-21 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070624', 'tblTempVendorCDR_20' ) end [2024-12-21 13:59:17] Production.INFO: ProcessCDR(1,14070624,1,1,2) [2024-12-21 13:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 13:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 13:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070624', 'tblTempUsageDetail_20' ) start [2024-12-21 13:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070624', 'tblTempUsageDetail_20' ) end [2024-12-21 13:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 13:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 13:59:21] Production.INFO: ==5330== Releasing lock... [2024-12-21 13:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 13:59:21] Production.INFO: 43 MB #Memory Used# [2024-12-21 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:00:06 [end_date_ymd] => 2024-12-21 14:00:06 [RateCDR] => 1 ) [2024-12-21 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:00:06' and `end` < '2024-12-21 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:00:19] Production.INFO: count ==1978 [2024-12-21 14:00:19] Production.ERROR: pbx CDR StartTime 2024-12-21 11:00:06 - End Time 2024-12-21 14:00:06 [2024-12-21 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070630', 'tblTempUsageDetail_20' ) start [2024-12-21 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070630', 'tblTempUsageDetail_20' ) end [2024-12-21 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070630', 'tblTempVendorCDR_20' ) start [2024-12-21 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070630', 'tblTempVendorCDR_20' ) end [2024-12-21 14:00:19] Production.INFO: ProcessCDR(1,14070630,1,1,2) [2024-12-21 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070630', 'tblTempUsageDetail_20' ) start [2024-12-21 14:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070630', 'tblTempUsageDetail_20' ) end [2024-12-21 14:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:00:22] Production.INFO: ==5406== Releasing lock... [2024-12-21 14:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:00:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:01:04 [end_date_ymd] => 2024-12-21 14:01:04 [RateCDR] => 1 ) [2024-12-21 14:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:01:04' and `end` < '2024-12-21 14:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:01:16] Production.INFO: count ==1975 [2024-12-21 14:01:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:01:04 - End Time 2024-12-21 14:01:04 [2024-12-21 14:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070635', 'tblTempUsageDetail_20' ) start [2024-12-21 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070635', 'tblTempUsageDetail_20' ) end [2024-12-21 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070635', 'tblTempVendorCDR_20' ) start [2024-12-21 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070635', 'tblTempVendorCDR_20' ) end [2024-12-21 14:01:17] Production.INFO: ProcessCDR(1,14070635,1,1,2) [2024-12-21 14:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070635', 'tblTempUsageDetail_20' ) start [2024-12-21 14:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070635', 'tblTempUsageDetail_20' ) end [2024-12-21 14:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:01:20] Production.INFO: ==5491== Releasing lock... [2024-12-21 14:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:01:20] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:02:05 [end_date_ymd] => 2024-12-21 14:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:02:05' and `end` < '2024-12-21 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-21 14:02:17] Production.INFO: count ==1996 [2024-12-21 14:02:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:02:05 - End Time 2024-12-21 14:02:05 [2024-12-21 14:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070640', 'tblTempUsageDetail_20' ) start [2024-12-21 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070640', 'tblTempUsageDetail_20' ) end [2024-12-21 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070640', 'tblTempVendorCDR_20' ) start [2024-12-21 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070640', 'tblTempVendorCDR_20' ) end [2024-12-21 14:02:18] Production.INFO: ProcessCDR(1,14070640,1,1,2) [2024-12-21 14:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070640', 'tblTempUsageDetail_20' ) start [2024-12-21 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070640', 'tblTempUsageDetail_20' ) end [2024-12-21 14:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:02:21] Production.INFO: ==5561== Releasing lock... [2024-12-21 14:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:02:21] Production.INFO: 43 MB #Memory Used# [2024-12-21 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:03:05 [end_date_ymd] => 2024-12-21 14:03:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:03:05' and `end` < '2024-12-21 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-21 14:03:18] Production.INFO: count ==2014 [2024-12-21 14:03:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:03:05 - End Time 2024-12-21 14:03:05 [2024-12-21 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070645', 'tblTempUsageDetail_20' ) start [2024-12-21 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070645', 'tblTempUsageDetail_20' ) end [2024-12-21 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070645', 'tblTempVendorCDR_20' ) start [2024-12-21 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070645', 'tblTempVendorCDR_20' ) end [2024-12-21 14:03:18] Production.INFO: ProcessCDR(1,14070645,1,1,2) [2024-12-21 14:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070645', 'tblTempUsageDetail_20' ) start [2024-12-21 14:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070645', 'tblTempUsageDetail_20' ) end [2024-12-21 14:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:03:21] Production.INFO: ==5631== Releasing lock... [2024-12-21 14:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:03:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:04:05 [end_date_ymd] => 2024-12-21 14:04:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:04:05' and `end` < '2024-12-21 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-21 14:04:17] Production.INFO: count ==2016 [2024-12-21 14:04:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:04:05 - End Time 2024-12-21 14:04:05 [2024-12-21 14:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070650', 'tblTempUsageDetail_20' ) start [2024-12-21 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070650', 'tblTempUsageDetail_20' ) end [2024-12-21 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070650', 'tblTempVendorCDR_20' ) start [2024-12-21 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070650', 'tblTempVendorCDR_20' ) end [2024-12-21 14:04:18] Production.INFO: ProcessCDR(1,14070650,1,1,2) [2024-12-21 14:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070650', 'tblTempUsageDetail_20' ) start [2024-12-21 14:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070650', 'tblTempUsageDetail_20' ) end [2024-12-21 14:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:04:21] Production.INFO: ==5706== Releasing lock... [2024-12-21 14:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:04:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:05:05 [end_date_ymd] => 2024-12-21 14:05:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:05:05' and `end` < '2024-12-21 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-21 14:05:17] Production.INFO: count ==2030 [2024-12-21 14:05:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:05:05 - End Time 2024-12-21 14:05:05 [2024-12-21 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070655', 'tblTempUsageDetail_20' ) start [2024-12-21 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070655', 'tblTempUsageDetail_20' ) end [2024-12-21 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070655', 'tblTempVendorCDR_20' ) start [2024-12-21 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070655', 'tblTempVendorCDR_20' ) end [2024-12-21 14:05:18] Production.INFO: ProcessCDR(1,14070655,1,1,2) [2024-12-21 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070655', 'tblTempUsageDetail_20' ) start [2024-12-21 14:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070655', 'tblTempUsageDetail_20' ) end [2024-12-21 14:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:05:21] Production.INFO: ==5776== Releasing lock... [2024-12-21 14:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:05:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:06:05 [end_date_ymd] => 2024-12-21 14:06:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:06:05' and `end` < '2024-12-21 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-21 14:06:17] Production.INFO: count ==2029 [2024-12-21 14:06:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:06:05 - End Time 2024-12-21 14:06:05 [2024-12-21 14:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070660', 'tblTempUsageDetail_20' ) start [2024-12-21 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070660', 'tblTempUsageDetail_20' ) end [2024-12-21 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070660', 'tblTempVendorCDR_20' ) start [2024-12-21 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070660', 'tblTempVendorCDR_20' ) end [2024-12-21 14:06:18] Production.INFO: ProcessCDR(1,14070660,1,1,2) [2024-12-21 14:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070660', 'tblTempUsageDetail_20' ) start [2024-12-21 14:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070660', 'tblTempUsageDetail_20' ) end [2024-12-21 14:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:06:21] Production.INFO: ==5848== Releasing lock... [2024-12-21 14:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:06:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:07:04 [end_date_ymd] => 2024-12-21 14:07:04 [RateCDR] => 1 ) [2024-12-21 14: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-21 11:07:04' and `end` < '2024-12-21 14: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-21 14:07:16] Production.INFO: count ==2029 [2024-12-21 14:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:07:04 - End Time 2024-12-21 14:07:04 [2024-12-21 14:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070665', 'tblTempUsageDetail_20' ) start [2024-12-21 14:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070665', 'tblTempUsageDetail_20' ) end [2024-12-21 14:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070665', 'tblTempVendorCDR_20' ) start [2024-12-21 14:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070665', 'tblTempVendorCDR_20' ) end [2024-12-21 14:07:17] Production.INFO: ProcessCDR(1,14070665,1,1,2) [2024-12-21 14:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070665', 'tblTempUsageDetail_20' ) start [2024-12-21 14:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070665', 'tblTempUsageDetail_20' ) end [2024-12-21 14:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:07:20] Production.INFO: ==5958== Releasing lock... [2024-12-21 14:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:07:20] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:08:04 [end_date_ymd] => 2024-12-21 14:08:04 [RateCDR] => 1 ) [2024-12-21 14: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-21 11:08:04' and `end` < '2024-12-21 14: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-21 14:08:17] Production.INFO: count ==2029 [2024-12-21 14:08:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:08:04 - End Time 2024-12-21 14:08:04 [2024-12-21 14:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070670', 'tblTempUsageDetail_20' ) start [2024-12-21 14:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070670', 'tblTempUsageDetail_20' ) end [2024-12-21 14:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070670', 'tblTempVendorCDR_20' ) start [2024-12-21 14:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070670', 'tblTempVendorCDR_20' ) end [2024-12-21 14:08:17] Production.INFO: ProcessCDR(1,14070670,1,1,2) [2024-12-21 14:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070670', 'tblTempUsageDetail_20' ) start [2024-12-21 14:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070670', 'tblTempUsageDetail_20' ) end [2024-12-21 14:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:08:20] Production.INFO: ==6032== Releasing lock... [2024-12-21 14:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:08:20] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:09:05 [end_date_ymd] => 2024-12-21 14:09:05 [RateCDR] => 1 ) [2024-12-21 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:09:05' and `end` < '2024-12-21 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:09:17] Production.INFO: count ==2018 [2024-12-21 14:09:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:09:05 - End Time 2024-12-21 14:09:05 [2024-12-21 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070675', 'tblTempUsageDetail_20' ) start [2024-12-21 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070675', 'tblTempUsageDetail_20' ) end [2024-12-21 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070675', 'tblTempVendorCDR_20' ) start [2024-12-21 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070675', 'tblTempVendorCDR_20' ) end [2024-12-21 14:09:18] Production.INFO: ProcessCDR(1,14070675,1,1,2) [2024-12-21 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070675', 'tblTempUsageDetail_20' ) start [2024-12-21 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070675', 'tblTempUsageDetail_20' ) end [2024-12-21 14:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:09:23] Production.INFO: ==6101== Releasing lock... [2024-12-21 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:09:23] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:10:05 [end_date_ymd] => 2024-12-21 14:10:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:10:05' and `end` < '2024-12-21 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-21 14:10:17] Production.INFO: count ==2027 [2024-12-21 14:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:10:05 - End Time 2024-12-21 14:10:05 [2024-12-21 14:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070681', 'tblTempUsageDetail_20' ) start [2024-12-21 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070681', 'tblTempUsageDetail_20' ) end [2024-12-21 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070681', 'tblTempVendorCDR_20' ) start [2024-12-21 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070681', 'tblTempVendorCDR_20' ) end [2024-12-21 14:10:18] Production.INFO: ProcessCDR(1,14070681,1,1,2) [2024-12-21 14:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070681', 'tblTempUsageDetail_20' ) start [2024-12-21 14:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070681', 'tblTempUsageDetail_20' ) end [2024-12-21 14:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:10:21] Production.INFO: ==6178== Releasing lock... [2024-12-21 14:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:10:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:11:05 [end_date_ymd] => 2024-12-21 14:11:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:11:05' and `end` < '2024-12-21 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-21 14:11:17] Production.INFO: count ==2007 [2024-12-21 14:11:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:11:05 - End Time 2024-12-21 14:11:05 [2024-12-21 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070686', 'tblTempUsageDetail_20' ) start [2024-12-21 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070686', 'tblTempUsageDetail_20' ) end [2024-12-21 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070686', 'tblTempVendorCDR_20' ) start [2024-12-21 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070686', 'tblTempVendorCDR_20' ) end [2024-12-21 14:11:18] Production.INFO: ProcessCDR(1,14070686,1,1,2) [2024-12-21 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070686', 'tblTempUsageDetail_20' ) start [2024-12-21 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070686', 'tblTempUsageDetail_20' ) end [2024-12-21 14:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:11:21] Production.INFO: ==6256== Releasing lock... [2024-12-21 14:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:11:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:12:05 [end_date_ymd] => 2024-12-21 14:12:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:12:05' and `end` < '2024-12-21 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-21 14:12:17] Production.INFO: count ==2008 [2024-12-21 14:12:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:12:05 - End Time 2024-12-21 14:12:05 [2024-12-21 14:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070691', 'tblTempUsageDetail_20' ) start [2024-12-21 14:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070691', 'tblTempUsageDetail_20' ) end [2024-12-21 14:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070691', 'tblTempVendorCDR_20' ) start [2024-12-21 14:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070691', 'tblTempVendorCDR_20' ) end [2024-12-21 14:12:17] Production.INFO: ProcessCDR(1,14070691,1,1,2) [2024-12-21 14:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070691', 'tblTempUsageDetail_20' ) start [2024-12-21 14:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070691', 'tblTempUsageDetail_20' ) end [2024-12-21 14:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:12:22] Production.INFO: ==6330== Releasing lock... [2024-12-21 14:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:12:22] Production.INFO: 43 MB #Memory Used# [2024-12-21 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:13:05 [end_date_ymd] => 2024-12-21 14:13:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:13:05' and `end` < '2024-12-21 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-21 14:13:17] Production.INFO: count ==2003 [2024-12-21 14:13:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:13:05 - End Time 2024-12-21 14:13:05 [2024-12-21 14:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070696', 'tblTempUsageDetail_20' ) start [2024-12-21 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070696', 'tblTempUsageDetail_20' ) end [2024-12-21 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070696', 'tblTempVendorCDR_20' ) start [2024-12-21 14:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070696', 'tblTempVendorCDR_20' ) end [2024-12-21 14:13:18] Production.INFO: ProcessCDR(1,14070696,1,1,2) [2024-12-21 14:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070696', 'tblTempUsageDetail_20' ) start [2024-12-21 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070696', 'tblTempUsageDetail_20' ) end [2024-12-21 14:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:13:22] Production.INFO: ==6403== Releasing lock... [2024-12-21 14:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:13:22] Production.INFO: 43 MB #Memory Used# [2024-12-21 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:14:05 [end_date_ymd] => 2024-12-21 14:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:14:05' and `end` < '2024-12-21 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-21 14:14:17] Production.INFO: count ==2008 [2024-12-21 14:14:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:14:05 - End Time 2024-12-21 14:14:05 [2024-12-21 14:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070701', 'tblTempUsageDetail_20' ) start [2024-12-21 14:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070701', 'tblTempUsageDetail_20' ) end [2024-12-21 14:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070701', 'tblTempVendorCDR_20' ) start [2024-12-21 14:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070701', 'tblTempVendorCDR_20' ) end [2024-12-21 14:14:17] Production.INFO: ProcessCDR(1,14070701,1,1,2) [2024-12-21 14:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070701', 'tblTempUsageDetail_20' ) start [2024-12-21 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070701', 'tblTempUsageDetail_20' ) end [2024-12-21 14:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:14:22] Production.INFO: ==6478== Releasing lock... [2024-12-21 14:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:14:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:15:05 [end_date_ymd] => 2024-12-21 14:15:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:15:05' and `end` < '2024-12-21 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-21 14:15:17] Production.INFO: count ==2019 [2024-12-21 14:15:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:15:05 - End Time 2024-12-21 14:15:05 [2024-12-21 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070706', 'tblTempUsageDetail_20' ) start [2024-12-21 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070706', 'tblTempUsageDetail_20' ) end [2024-12-21 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070706', 'tblTempVendorCDR_20' ) start [2024-12-21 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070706', 'tblTempVendorCDR_20' ) end [2024-12-21 14:15:18] Production.INFO: ProcessCDR(1,14070706,1,1,2) [2024-12-21 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070706', 'tblTempUsageDetail_20' ) start [2024-12-21 14:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070706', 'tblTempUsageDetail_20' ) end [2024-12-21 14:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:15:21] Production.INFO: ==6554== Releasing lock... [2024-12-21 14:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:15:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:16:05 [end_date_ymd] => 2024-12-21 14:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:16:05' and `end` < '2024-12-21 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-21 14:16:17] Production.INFO: count ==2020 [2024-12-21 14:16:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:16:05 - End Time 2024-12-21 14:16:05 [2024-12-21 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070711', 'tblTempUsageDetail_20' ) start [2024-12-21 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070711', 'tblTempUsageDetail_20' ) end [2024-12-21 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070711', 'tblTempVendorCDR_20' ) start [2024-12-21 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070711', 'tblTempVendorCDR_20' ) end [2024-12-21 14:16:18] Production.INFO: ProcessCDR(1,14070711,1,1,2) [2024-12-21 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070711', 'tblTempUsageDetail_20' ) start [2024-12-21 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070711', 'tblTempUsageDetail_20' ) end [2024-12-21 14:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:16:22] Production.INFO: ==6629== Releasing lock... [2024-12-21 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:16:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:17:04 [end_date_ymd] => 2024-12-21 14:17:04 [RateCDR] => 1 ) [2024-12-21 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-21 11:17:04' and `end` < '2024-12-21 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-21 14:17:17] Production.INFO: count ==2022 [2024-12-21 14:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:17:04 - End Time 2024-12-21 14:17:04 [2024-12-21 14:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070716', 'tblTempUsageDetail_20' ) start [2024-12-21 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070716', 'tblTempUsageDetail_20' ) end [2024-12-21 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070716', 'tblTempVendorCDR_20' ) start [2024-12-21 14:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070716', 'tblTempVendorCDR_20' ) end [2024-12-21 14:17:18] Production.INFO: ProcessCDR(1,14070716,1,1,2) [2024-12-21 14:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070716', 'tblTempUsageDetail_20' ) start [2024-12-21 14:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070716', 'tblTempUsageDetail_20' ) end [2024-12-21 14:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:17:22] Production.INFO: ==6702== Releasing lock... [2024-12-21 14:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:17:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:18:05 [end_date_ymd] => 2024-12-21 14:18:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:18:05' and `end` < '2024-12-21 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-21 14:18:18] Production.INFO: count ==2017 [2024-12-21 14:18:19] Production.ERROR: pbx CDR StartTime 2024-12-21 11:18:05 - End Time 2024-12-21 14:18:05 [2024-12-21 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070721', 'tblTempUsageDetail_20' ) start [2024-12-21 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070721', 'tblTempUsageDetail_20' ) end [2024-12-21 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070721', 'tblTempVendorCDR_20' ) start [2024-12-21 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070721', 'tblTempVendorCDR_20' ) end [2024-12-21 14:18:19] Production.INFO: ProcessCDR(1,14070721,1,1,2) [2024-12-21 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070721', 'tblTempUsageDetail_20' ) start [2024-12-21 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070721', 'tblTempUsageDetail_20' ) end [2024-12-21 14:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:18:22] Production.INFO: ==6780== Releasing lock... [2024-12-21 14:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:18:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:19:04 [end_date_ymd] => 2024-12-21 14:19:04 [RateCDR] => 1 ) [2024-12-21 14: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-21 11:19:04' and `end` < '2024-12-21 14: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-21 14:19:17] Production.INFO: count ==2010 [2024-12-21 14:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:19:04 - End Time 2024-12-21 14:19:04 [2024-12-21 14:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070726', 'tblTempUsageDetail_20' ) start [2024-12-21 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070726', 'tblTempUsageDetail_20' ) end [2024-12-21 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070726', 'tblTempVendorCDR_20' ) start [2024-12-21 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070726', 'tblTempVendorCDR_20' ) end [2024-12-21 14:19:17] Production.INFO: ProcessCDR(1,14070726,1,1,2) [2024-12-21 14:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070726', 'tblTempUsageDetail_20' ) start [2024-12-21 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070726', 'tblTempUsageDetail_20' ) end [2024-12-21 14:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:19:22] Production.INFO: ==6860== Releasing lock... [2024-12-21 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:19:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:20:05 [end_date_ymd] => 2024-12-21 14:20:05 [RateCDR] => 1 ) [2024-12-21 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:20:05' and `end` < '2024-12-21 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:20:18] Production.INFO: count ==2034 [2024-12-21 14:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:20:05 - End Time 2024-12-21 14:20:05 [2024-12-21 14:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070732', 'tblTempUsageDetail_20' ) start [2024-12-21 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070732', 'tblTempUsageDetail_20' ) end [2024-12-21 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070732', 'tblTempVendorCDR_20' ) start [2024-12-21 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070732', 'tblTempVendorCDR_20' ) end [2024-12-21 14:20:18] Production.INFO: ProcessCDR(1,14070732,1,1,2) [2024-12-21 14:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070732', 'tblTempUsageDetail_20' ) start [2024-12-21 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070732', 'tblTempUsageDetail_20' ) end [2024-12-21 14:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:20:22] Production.INFO: ==6937== Releasing lock... [2024-12-21 14:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:20:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:21:04 [end_date_ymd] => 2024-12-21 14:21:04 [RateCDR] => 1 ) [2024-12-21 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-21 11:21:04' and `end` < '2024-12-21 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-21 14:21:16] Production.INFO: count ==2059 [2024-12-21 14:21:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:21:04 - End Time 2024-12-21 14:21:04 [2024-12-21 14:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070737', 'tblTempUsageDetail_20' ) start [2024-12-21 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070737', 'tblTempUsageDetail_20' ) end [2024-12-21 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070737', 'tblTempVendorCDR_20' ) start [2024-12-21 14:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070737', 'tblTempVendorCDR_20' ) end [2024-12-21 14:21:17] Production.INFO: ProcessCDR(1,14070737,1,1,2) [2024-12-21 14:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070737', 'tblTempUsageDetail_20' ) start [2024-12-21 14:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070737', 'tblTempUsageDetail_20' ) end [2024-12-21 14:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:21:20] Production.INFO: ==7013== Releasing lock... [2024-12-21 14:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:21:20] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:22:04 [end_date_ymd] => 2024-12-21 14:22:04 [RateCDR] => 1 ) [2024-12-21 14: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-21 11:22:04' and `end` < '2024-12-21 14: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-21 14:22:17] Production.INFO: count ==2056 [2024-12-21 14:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:22:04 - End Time 2024-12-21 14:22:04 [2024-12-21 14:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070741', 'tblTempUsageDetail_20' ) start [2024-12-21 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070741', 'tblTempUsageDetail_20' ) end [2024-12-21 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070741', 'tblTempVendorCDR_20' ) start [2024-12-21 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070741', 'tblTempVendorCDR_20' ) end [2024-12-21 14:22:17] Production.INFO: ProcessCDR(1,14070741,1,1,2) [2024-12-21 14:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070741', 'tblTempUsageDetail_20' ) start [2024-12-21 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070741', 'tblTempUsageDetail_20' ) end [2024-12-21 14:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:22:22] Production.INFO: ==7107== Releasing lock... [2024-12-21 14:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:22:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:23:05 [end_date_ymd] => 2024-12-21 14:23:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:23:05' and `end` < '2024-12-21 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-21 14:23:17] Production.INFO: count ==2061 [2024-12-21 14:23:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:23:05 - End Time 2024-12-21 14:23:05 [2024-12-21 14:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070747', 'tblTempUsageDetail_20' ) start [2024-12-21 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070747', 'tblTempUsageDetail_20' ) end [2024-12-21 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070747', 'tblTempVendorCDR_20' ) start [2024-12-21 14:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070747', 'tblTempVendorCDR_20' ) end [2024-12-21 14:23:18] Production.INFO: ProcessCDR(1,14070747,1,1,2) [2024-12-21 14:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070747', 'tblTempUsageDetail_20' ) start [2024-12-21 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070747', 'tblTempUsageDetail_20' ) end [2024-12-21 14:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:23:21] Production.INFO: ==7227== Releasing lock... [2024-12-21 14:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:23:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:24:05 [end_date_ymd] => 2024-12-21 14:24:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:24:05' and `end` < '2024-12-21 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-21 14:24:19] Production.INFO: count ==2057 [2024-12-21 14:24:19] Production.ERROR: pbx CDR StartTime 2024-12-21 11:24:05 - End Time 2024-12-21 14:24:05 [2024-12-21 14:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070752', 'tblTempUsageDetail_20' ) start [2024-12-21 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070752', 'tblTempUsageDetail_20' ) end [2024-12-21 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070752', 'tblTempVendorCDR_20' ) start [2024-12-21 14:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070752', 'tblTempVendorCDR_20' ) end [2024-12-21 14:24:19] Production.INFO: ProcessCDR(1,14070752,1,1,2) [2024-12-21 14:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070752', 'tblTempUsageDetail_20' ) start [2024-12-21 14:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070752', 'tblTempUsageDetail_20' ) end [2024-12-21 14:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:24:22] Production.INFO: ==7300== Releasing lock... [2024-12-21 14:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:24:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:25:05 [end_date_ymd] => 2024-12-21 14:25:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:25:05' and `end` < '2024-12-21 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-21 14:25:17] Production.INFO: count ==2058 [2024-12-21 14:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:25:05 - End Time 2024-12-21 14:25:05 [2024-12-21 14:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070757', 'tblTempUsageDetail_20' ) start [2024-12-21 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070757', 'tblTempUsageDetail_20' ) end [2024-12-21 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070757', 'tblTempVendorCDR_20' ) start [2024-12-21 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070757', 'tblTempVendorCDR_20' ) end [2024-12-21 14:25:17] Production.INFO: ProcessCDR(1,14070757,1,1,2) [2024-12-21 14:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070757', 'tblTempUsageDetail_20' ) start [2024-12-21 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070757', 'tblTempUsageDetail_20' ) end [2024-12-21 14:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:25:22] Production.INFO: ==7378== Releasing lock... [2024-12-21 14:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:25:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:26:04 [end_date_ymd] => 2024-12-21 14:26:04 [RateCDR] => 1 ) [2024-12-21 14: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-21 11:26:04' and `end` < '2024-12-21 14: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-21 14:26:17] Production.INFO: count ==2068 [2024-12-21 14:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:26:04 - End Time 2024-12-21 14:26:04 [2024-12-21 14:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070762', 'tblTempUsageDetail_20' ) start [2024-12-21 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070762', 'tblTempUsageDetail_20' ) end [2024-12-21 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070762', 'tblTempVendorCDR_20' ) start [2024-12-21 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070762', 'tblTempVendorCDR_20' ) end [2024-12-21 14:26:17] Production.INFO: ProcessCDR(1,14070762,1,1,2) [2024-12-21 14:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070762', 'tblTempUsageDetail_20' ) start [2024-12-21 14:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070762', 'tblTempUsageDetail_20' ) end [2024-12-21 14:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:26:20] Production.INFO: ==7458== Releasing lock... [2024-12-21 14:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:26:20] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:27:05 [end_date_ymd] => 2024-12-21 14:27:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:27:05' and `end` < '2024-12-21 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-21 14:27:18] Production.INFO: count ==2068 [2024-12-21 14:27:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:27:05 - End Time 2024-12-21 14:27:05 [2024-12-21 14:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070767', 'tblTempUsageDetail_20' ) start [2024-12-21 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070767', 'tblTempUsageDetail_20' ) end [2024-12-21 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070767', 'tblTempVendorCDR_20' ) start [2024-12-21 14:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070767', 'tblTempVendorCDR_20' ) end [2024-12-21 14:27:18] Production.INFO: ProcessCDR(1,14070767,1,1,2) [2024-12-21 14:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070767', 'tblTempUsageDetail_20' ) start [2024-12-21 14:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070767', 'tblTempUsageDetail_20' ) end [2024-12-21 14:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:27:21] Production.INFO: ==7534== Releasing lock... [2024-12-21 14:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:27:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:28:05 [end_date_ymd] => 2024-12-21 14:28:05 [RateCDR] => 1 ) [2024-12-21 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:28:05' and `end` < '2024-12-21 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:28:17] Production.INFO: count ==2067 [2024-12-21 14:28:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:28:05 - End Time 2024-12-21 14:28:05 [2024-12-21 14:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070772', 'tblTempUsageDetail_20' ) start [2024-12-21 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070772', 'tblTempUsageDetail_20' ) end [2024-12-21 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070772', 'tblTempVendorCDR_20' ) start [2024-12-21 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070772', 'tblTempVendorCDR_20' ) end [2024-12-21 14:28:17] Production.INFO: ProcessCDR(1,14070772,1,1,2) [2024-12-21 14:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070772', 'tblTempUsageDetail_20' ) start [2024-12-21 14:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070772', 'tblTempUsageDetail_20' ) end [2024-12-21 14:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:28:21] Production.INFO: ==7609== Releasing lock... [2024-12-21 14:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:28:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:29:04 [end_date_ymd] => 2024-12-21 14:29:04 [RateCDR] => 1 ) [2024-12-21 14:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:29:04' and `end` < '2024-12-21 14:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:29:17] Production.INFO: count ==2054 [2024-12-21 14:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:29:04 - End Time 2024-12-21 14:29:04 [2024-12-21 14:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070777', 'tblTempUsageDetail_20' ) start [2024-12-21 14:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070777', 'tblTempUsageDetail_20' ) end [2024-12-21 14:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070777', 'tblTempVendorCDR_20' ) start [2024-12-21 14:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070777', 'tblTempVendorCDR_20' ) end [2024-12-21 14:29:17] Production.INFO: ProcessCDR(1,14070777,1,1,2) [2024-12-21 14:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070777', 'tblTempUsageDetail_20' ) start [2024-12-21 14:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070777', 'tblTempUsageDetail_20' ) end [2024-12-21 14:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:29:21] Production.INFO: ==7683== Releasing lock... [2024-12-21 14:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:29:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:30:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:30:04 [end_date_ymd] => 2024-12-21 14:30:04 [RateCDR] => 1 ) [2024-12-21 14:30:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:30:04' and `end` < '2024-12-21 14:30:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:30:17] Production.INFO: count ==2052 [2024-12-21 14:30:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:30:04 - End Time 2024-12-21 14:30:04 [2024-12-21 14:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070782', 'tblTempUsageDetail_20' ) start [2024-12-21 14:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070782', 'tblTempUsageDetail_20' ) end [2024-12-21 14:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070782', 'tblTempVendorCDR_20' ) start [2024-12-21 14:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070782', 'tblTempVendorCDR_20' ) end [2024-12-21 14:30:17] Production.INFO: ProcessCDR(1,14070782,1,1,2) [2024-12-21 14:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070782', 'tblTempUsageDetail_20' ) start [2024-12-21 14:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070782', 'tblTempUsageDetail_20' ) end [2024-12-21 14:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:30:20] Production.INFO: ==7761== Releasing lock... [2024-12-21 14:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:30:20] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:31:04 [end_date_ymd] => 2024-12-21 14:31:04 [RateCDR] => 1 ) [2024-12-21 14: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-21 11:31:04' and `end` < '2024-12-21 14: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-21 14:31:17] Production.INFO: count ==2065 [2024-12-21 14:31:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:31:04 - End Time 2024-12-21 14:31:04 [2024-12-21 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070788', 'tblTempUsageDetail_20' ) start [2024-12-21 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070788', 'tblTempUsageDetail_20' ) end [2024-12-21 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070788', 'tblTempVendorCDR_20' ) start [2024-12-21 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070788', 'tblTempVendorCDR_20' ) end [2024-12-21 14:31:18] Production.INFO: ProcessCDR(1,14070788,1,1,2) [2024-12-21 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070788', 'tblTempUsageDetail_20' ) start [2024-12-21 14:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070788', 'tblTempUsageDetail_20' ) end [2024-12-21 14:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:31:21] Production.INFO: ==7838== Releasing lock... [2024-12-21 14:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:31:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:32:05 [end_date_ymd] => 2024-12-21 14:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:32:05' and `end` < '2024-12-21 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-21 14:32:17] Production.INFO: count ==2065 [2024-12-21 14:32:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:32:05 - End Time 2024-12-21 14:32:05 [2024-12-21 14:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070793', 'tblTempUsageDetail_20' ) start [2024-12-21 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070793', 'tblTempUsageDetail_20' ) end [2024-12-21 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070793', 'tblTempVendorCDR_20' ) start [2024-12-21 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070793', 'tblTempVendorCDR_20' ) end [2024-12-21 14:32:18] Production.INFO: ProcessCDR(1,14070793,1,1,2) [2024-12-21 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070793', 'tblTempUsageDetail_20' ) start [2024-12-21 14:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070793', 'tblTempUsageDetail_20' ) end [2024-12-21 14:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:32:20] Production.INFO: ==7918== Releasing lock... [2024-12-21 14:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:32:20] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:33:04 [end_date_ymd] => 2024-12-21 14:33:04 [RateCDR] => 1 ) [2024-12-21 14:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:33:04' and `end` < '2024-12-21 14:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:33:16] Production.INFO: count ==2067 [2024-12-21 14:33:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:33:04 - End Time 2024-12-21 14:33:04 [2024-12-21 14:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070798', 'tblTempUsageDetail_20' ) start [2024-12-21 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070798', 'tblTempUsageDetail_20' ) end [2024-12-21 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070798', 'tblTempVendorCDR_20' ) start [2024-12-21 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070798', 'tblTempVendorCDR_20' ) end [2024-12-21 14:33:17] Production.INFO: ProcessCDR(1,14070798,1,1,2) [2024-12-21 14:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070798', 'tblTempUsageDetail_20' ) start [2024-12-21 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070798', 'tblTempUsageDetail_20' ) end [2024-12-21 14:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:33:21] Production.INFO: ==7989== Releasing lock... [2024-12-21 14:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:33:21] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:34:05 [end_date_ymd] => 2024-12-21 14:34:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:34:05' and `end` < '2024-12-21 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-21 14:34:17] Production.INFO: count ==2073 [2024-12-21 14:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:34:05 - End Time 2024-12-21 14:34:05 [2024-12-21 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070803', 'tblTempUsageDetail_20' ) start [2024-12-21 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070803', 'tblTempUsageDetail_20' ) end [2024-12-21 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070803', 'tblTempVendorCDR_20' ) start [2024-12-21 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070803', 'tblTempVendorCDR_20' ) end [2024-12-21 14:34:18] Production.INFO: ProcessCDR(1,14070803,1,1,2) [2024-12-21 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070803', 'tblTempUsageDetail_20' ) start [2024-12-21 14:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070803', 'tblTempUsageDetail_20' ) end [2024-12-21 14:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:34:21] Production.INFO: ==8070== Releasing lock... [2024-12-21 14:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:34:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:35:05 [end_date_ymd] => 2024-12-21 14:35:05 [RateCDR] => 1 ) [2024-12-21 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:35:05' and `end` < '2024-12-21 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:35:17] Production.INFO: count ==2077 [2024-12-21 14:35:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:35:05 - End Time 2024-12-21 14:35:05 [2024-12-21 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070808', 'tblTempUsageDetail_20' ) start [2024-12-21 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070808', 'tblTempUsageDetail_20' ) end [2024-12-21 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070808', 'tblTempVendorCDR_20' ) start [2024-12-21 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070808', 'tblTempVendorCDR_20' ) end [2024-12-21 14:35:18] Production.INFO: ProcessCDR(1,14070808,1,1,2) [2024-12-21 14:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070808', 'tblTempUsageDetail_20' ) start [2024-12-21 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070808', 'tblTempUsageDetail_20' ) end [2024-12-21 14:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:35:22] Production.INFO: ==8154== Releasing lock... [2024-12-21 14:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:35:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:36:05 [end_date_ymd] => 2024-12-21 14:36:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:36:05' and `end` < '2024-12-21 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-21 14:36:18] Production.INFO: count ==2080 [2024-12-21 14:36:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:36:05 - End Time 2024-12-21 14:36:05 [2024-12-21 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070813', 'tblTempUsageDetail_20' ) start [2024-12-21 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070813', 'tblTempUsageDetail_20' ) end [2024-12-21 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070813', 'tblTempVendorCDR_20' ) start [2024-12-21 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070813', 'tblTempVendorCDR_20' ) end [2024-12-21 14:36:18] Production.INFO: ProcessCDR(1,14070813,1,1,2) [2024-12-21 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070813', 'tblTempUsageDetail_20' ) start [2024-12-21 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070813', 'tblTempUsageDetail_20' ) end [2024-12-21 14:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:36:23] Production.INFO: ==8234== Releasing lock... [2024-12-21 14:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:36:23] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:37:05 [end_date_ymd] => 2024-12-21 14:37:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:37:05' and `end` < '2024-12-21 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-21 14:37:17] Production.INFO: count ==2087 [2024-12-21 14:37:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:37:05 - End Time 2024-12-21 14:37:05 [2024-12-21 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070818', 'tblTempUsageDetail_20' ) start [2024-12-21 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070818', 'tblTempUsageDetail_20' ) end [2024-12-21 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070818', 'tblTempVendorCDR_20' ) start [2024-12-21 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070818', 'tblTempVendorCDR_20' ) end [2024-12-21 14:37:18] Production.INFO: ProcessCDR(1,14070818,1,1,2) [2024-12-21 14:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070818', 'tblTempUsageDetail_20' ) start [2024-12-21 14:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070818', 'tblTempUsageDetail_20' ) end [2024-12-21 14:37:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:37:23] Production.INFO: ==8306== Releasing lock... [2024-12-21 14:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:37:23] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:38:04 [end_date_ymd] => 2024-12-21 14:38:04 [RateCDR] => 1 ) [2024-12-21 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-21 11:38:04' and `end` < '2024-12-21 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-21 14:38:17] Production.INFO: count ==2098 [2024-12-21 14:38:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:38:04 - End Time 2024-12-21 14:38:04 [2024-12-21 14:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070823', 'tblTempUsageDetail_20' ) start [2024-12-21 14:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070823', 'tblTempUsageDetail_20' ) end [2024-12-21 14:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070823', 'tblTempVendorCDR_20' ) start [2024-12-21 14:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070823', 'tblTempVendorCDR_20' ) end [2024-12-21 14:38:17] Production.INFO: ProcessCDR(1,14070823,1,1,2) [2024-12-21 14:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070823', 'tblTempUsageDetail_20' ) start [2024-12-21 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070823', 'tblTempUsageDetail_20' ) end [2024-12-21 14:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:38:21] Production.INFO: ==8382== Releasing lock... [2024-12-21 14:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:38:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:39:05 [end_date_ymd] => 2024-12-21 14:39:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:39:05' and `end` < '2024-12-21 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-21 14:39:17] Production.INFO: count ==2114 [2024-12-21 14:39:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:39:05 - End Time 2024-12-21 14:39:05 [2024-12-21 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070828', 'tblTempUsageDetail_20' ) start [2024-12-21 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070828', 'tblTempUsageDetail_20' ) end [2024-12-21 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070828', 'tblTempVendorCDR_20' ) start [2024-12-21 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070828', 'tblTempVendorCDR_20' ) end [2024-12-21 14:39:18] Production.INFO: ProcessCDR(1,14070828,1,1,2) [2024-12-21 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070828', 'tblTempUsageDetail_20' ) start [2024-12-21 14:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070828', 'tblTempUsageDetail_20' ) end [2024-12-21 14:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:39:23] Production.INFO: ==8497== Releasing lock... [2024-12-21 14:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:39:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-21 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:40:05 [end_date_ymd] => 2024-12-21 14:40:05 [RateCDR] => 1 ) [2024-12-21 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:40:05' and `end` < '2024-12-21 14:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:40:17] Production.INFO: count ==2103 [2024-12-21 14:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:40:05 - End Time 2024-12-21 14:40:05 [2024-12-21 14:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070834', 'tblTempUsageDetail_20' ) start [2024-12-21 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070834', 'tblTempUsageDetail_20' ) end [2024-12-21 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070834', 'tblTempVendorCDR_20' ) start [2024-12-21 14:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070834', 'tblTempVendorCDR_20' ) end [2024-12-21 14:40:18] Production.INFO: ProcessCDR(1,14070834,1,1,2) [2024-12-21 14:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070834', 'tblTempUsageDetail_20' ) start [2024-12-21 14:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070834', 'tblTempUsageDetail_20' ) end [2024-12-21 14:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:40:21] Production.INFO: ==8576== Releasing lock... [2024-12-21 14:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:40:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:41:05 [end_date_ymd] => 2024-12-21 14:41:05 [RateCDR] => 1 ) [2024-12-21 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:41:05' and `end` < '2024-12-21 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:41:17] Production.INFO: count ==2059 [2024-12-21 14:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:41:05 - End Time 2024-12-21 14:41:05 [2024-12-21 14:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070839', 'tblTempUsageDetail_20' ) start [2024-12-21 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070839', 'tblTempUsageDetail_20' ) end [2024-12-21 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070839', 'tblTempVendorCDR_20' ) start [2024-12-21 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070839', 'tblTempVendorCDR_20' ) end [2024-12-21 14:41:17] Production.INFO: ProcessCDR(1,14070839,1,1,2) [2024-12-21 14:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070839', 'tblTempUsageDetail_20' ) start [2024-12-21 14:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070839', 'tblTempUsageDetail_20' ) end [2024-12-21 14:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:41:22] Production.INFO: ==8659== Releasing lock... [2024-12-21 14:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:41:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:42:04 [end_date_ymd] => 2024-12-21 14:42:04 [RateCDR] => 1 ) [2024-12-21 14: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-21 11:42:04' and `end` < '2024-12-21 14: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-21 14:42:17] Production.INFO: count ==2063 [2024-12-21 14:42:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:42:04 - End Time 2024-12-21 14:42:04 [2024-12-21 14:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070844', 'tblTempUsageDetail_20' ) start [2024-12-21 14:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070844', 'tblTempUsageDetail_20' ) end [2024-12-21 14:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070844', 'tblTempVendorCDR_20' ) start [2024-12-21 14:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070844', 'tblTempVendorCDR_20' ) end [2024-12-21 14:42:17] Production.INFO: ProcessCDR(1,14070844,1,1,2) [2024-12-21 14:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070844', 'tblTempUsageDetail_20' ) start [2024-12-21 14:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070844', 'tblTempUsageDetail_20' ) end [2024-12-21 14:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:42:20] Production.INFO: ==8735== Releasing lock... [2024-12-21 14:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:42:20] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:43:04 [end_date_ymd] => 2024-12-21 14:43:04 [RateCDR] => 1 ) [2024-12-21 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-21 11:43:04' and `end` < '2024-12-21 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-21 14:43:17] Production.INFO: count ==2065 [2024-12-21 14:43:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:43:04 - End Time 2024-12-21 14:43:04 [2024-12-21 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070849', 'tblTempUsageDetail_20' ) start [2024-12-21 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070849', 'tblTempUsageDetail_20' ) end [2024-12-21 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070849', 'tblTempVendorCDR_20' ) start [2024-12-21 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070849', 'tblTempVendorCDR_20' ) end [2024-12-21 14:43:18] Production.INFO: ProcessCDR(1,14070849,1,1,2) [2024-12-21 14:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070849', 'tblTempUsageDetail_20' ) start [2024-12-21 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070849', 'tblTempUsageDetail_20' ) end [2024-12-21 14:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:43:22] Production.INFO: ==8815== Releasing lock... [2024-12-21 14:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:43:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:44:05 [end_date_ymd] => 2024-12-21 14:44:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:44:05' and `end` < '2024-12-21 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-21 14:44:17] Production.INFO: count ==2069 [2024-12-21 14:44:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:44:05 - End Time 2024-12-21 14:44:05 [2024-12-21 14:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070854', 'tblTempUsageDetail_20' ) start [2024-12-21 14:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070854', 'tblTempUsageDetail_20' ) end [2024-12-21 14:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070854', 'tblTempVendorCDR_20' ) start [2024-12-21 14:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070854', 'tblTempVendorCDR_20' ) end [2024-12-21 14:44:17] Production.INFO: ProcessCDR(1,14070854,1,1,2) [2024-12-21 14:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070854', 'tblTempUsageDetail_20' ) start [2024-12-21 14:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070854', 'tblTempUsageDetail_20' ) end [2024-12-21 14:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:44:21] Production.INFO: ==8885== Releasing lock... [2024-12-21 14:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:44:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:45:04 [end_date_ymd] => 2024-12-21 14:45:04 [RateCDR] => 1 ) [2024-12-21 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-21 11:45:04' and `end` < '2024-12-21 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-21 14:45:16] Production.INFO: count ==2068 [2024-12-21 14:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:45:04 - End Time 2024-12-21 14:45:04 [2024-12-21 14:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070859', 'tblTempUsageDetail_20' ) start [2024-12-21 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070859', 'tblTempUsageDetail_20' ) end [2024-12-21 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070859', 'tblTempVendorCDR_20' ) start [2024-12-21 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070859', 'tblTempVendorCDR_20' ) end [2024-12-21 14:45:17] Production.INFO: ProcessCDR(1,14070859,1,1,2) [2024-12-21 14:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070859', 'tblTempUsageDetail_20' ) start [2024-12-21 14:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070859', 'tblTempUsageDetail_20' ) end [2024-12-21 14:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:45:20] Production.INFO: ==8962== Releasing lock... [2024-12-21 14:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:45:20] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:46:05 [end_date_ymd] => 2024-12-21 14:46:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:46:05' and `end` < '2024-12-21 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-21 14:46:17] Production.INFO: count ==2075 [2024-12-21 14:46:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:46:05 - End Time 2024-12-21 14:46:05 [2024-12-21 14:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070864', 'tblTempUsageDetail_20' ) start [2024-12-21 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070864', 'tblTempUsageDetail_20' ) end [2024-12-21 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070864', 'tblTempVendorCDR_20' ) start [2024-12-21 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070864', 'tblTempVendorCDR_20' ) end [2024-12-21 14:46:18] Production.INFO: ProcessCDR(1,14070864,1,1,2) [2024-12-21 14:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070864', 'tblTempUsageDetail_20' ) start [2024-12-21 14:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070864', 'tblTempUsageDetail_20' ) end [2024-12-21 14:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:46:21] Production.INFO: ==9037== Releasing lock... [2024-12-21 14:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:46:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:47:05 [end_date_ymd] => 2024-12-21 14:47:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:47:05' and `end` < '2024-12-21 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-21 14:47:17] Production.INFO: count ==2092 [2024-12-21 14:47:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:47:05 - End Time 2024-12-21 14:47:05 [2024-12-21 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070869', 'tblTempUsageDetail_20' ) start [2024-12-21 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070869', 'tblTempUsageDetail_20' ) end [2024-12-21 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070869', 'tblTempVendorCDR_20' ) start [2024-12-21 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070869', 'tblTempVendorCDR_20' ) end [2024-12-21 14:47:18] Production.INFO: ProcessCDR(1,14070869,1,1,2) [2024-12-21 14:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070869', 'tblTempUsageDetail_20' ) start [2024-12-21 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070869', 'tblTempUsageDetail_20' ) end [2024-12-21 14:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:47:22] Production.INFO: ==9115== Releasing lock... [2024-12-21 14:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:47:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:48:04 [end_date_ymd] => 2024-12-21 14:48:04 [RateCDR] => 1 ) [2024-12-21 14: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-21 11:48:04' and `end` < '2024-12-21 14: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-21 14:48:17] Production.INFO: count ==2100 [2024-12-21 14:48:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:48:04 - End Time 2024-12-21 14:48:04 [2024-12-21 14:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070874', 'tblTempUsageDetail_20' ) start [2024-12-21 14:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070874', 'tblTempUsageDetail_20' ) end [2024-12-21 14:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070874', 'tblTempVendorCDR_20' ) start [2024-12-21 14:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070874', 'tblTempVendorCDR_20' ) end [2024-12-21 14:48:17] Production.INFO: ProcessCDR(1,14070874,1,1,2) [2024-12-21 14:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070874', 'tblTempUsageDetail_20' ) start [2024-12-21 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070874', 'tblTempUsageDetail_20' ) end [2024-12-21 14:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:48:22] Production.INFO: ==9189== Releasing lock... [2024-12-21 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:48:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:49:05 [end_date_ymd] => 2024-12-21 14:49:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:49:05' and `end` < '2024-12-21 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-21 14:49:17] Production.INFO: count ==2100 [2024-12-21 14:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:49:05 - End Time 2024-12-21 14:49:05 [2024-12-21 14:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070879', 'tblTempUsageDetail_20' ) start [2024-12-21 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070879', 'tblTempUsageDetail_20' ) end [2024-12-21 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070879', 'tblTempVendorCDR_20' ) start [2024-12-21 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070879', 'tblTempVendorCDR_20' ) end [2024-12-21 14:49:18] Production.INFO: ProcessCDR(1,14070879,1,1,2) [2024-12-21 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070879', 'tblTempUsageDetail_20' ) start [2024-12-21 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070879', 'tblTempUsageDetail_20' ) end [2024-12-21 14:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:49:22] Production.INFO: ==9265== Releasing lock... [2024-12-21 14:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:49:22] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:50:05 [end_date_ymd] => 2024-12-21 14:50:05 [RateCDR] => 1 ) [2024-12-21 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:50:05' and `end` < '2024-12-21 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:50:17] Production.INFO: count ==2100 [2024-12-21 14:50:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:50:05 - End Time 2024-12-21 14:50:05 [2024-12-21 14:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070885', 'tblTempUsageDetail_20' ) start [2024-12-21 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070885', 'tblTempUsageDetail_20' ) end [2024-12-21 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070885', 'tblTempVendorCDR_20' ) start [2024-12-21 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070885', 'tblTempVendorCDR_20' ) end [2024-12-21 14:50:18] Production.INFO: ProcessCDR(1,14070885,1,1,2) [2024-12-21 14:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070885', 'tblTempUsageDetail_20' ) start [2024-12-21 14:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070885', 'tblTempUsageDetail_20' ) end [2024-12-21 14:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:50:21] Production.INFO: ==9347== Releasing lock... [2024-12-21 14:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:50:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:51:05 [end_date_ymd] => 2024-12-21 14:51:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:51:05' and `end` < '2024-12-21 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-21 14:51:17] Production.INFO: count ==2120 [2024-12-21 14:51:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:51:05 - End Time 2024-12-21 14:51:05 [2024-12-21 14:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070890', 'tblTempUsageDetail_20' ) start [2024-12-21 14:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070890', 'tblTempUsageDetail_20' ) end [2024-12-21 14:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070890', 'tblTempVendorCDR_20' ) start [2024-12-21 14:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070890', 'tblTempVendorCDR_20' ) end [2024-12-21 14:51:17] Production.INFO: ProcessCDR(1,14070890,1,1,2) [2024-12-21 14:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070890', 'tblTempUsageDetail_20' ) start [2024-12-21 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070890', 'tblTempUsageDetail_20' ) end [2024-12-21 14:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:51:21] Production.INFO: ==9425== Releasing lock... [2024-12-21 14:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:51:21] Production.INFO: 44 MB #Memory Used# [2024-12-21 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:52:05 [end_date_ymd] => 2024-12-21 14:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:52:05' and `end` < '2024-12-21 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-21 14:52:18] Production.INFO: count ==2122 [2024-12-21 14:52:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:52:05 - End Time 2024-12-21 14:52:05 [2024-12-21 14:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070895', 'tblTempUsageDetail_20' ) start [2024-12-21 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070895', 'tblTempUsageDetail_20' ) end [2024-12-21 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070895', 'tblTempVendorCDR_20' ) start [2024-12-21 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070895', 'tblTempVendorCDR_20' ) end [2024-12-21 14:52:18] Production.INFO: ProcessCDR(1,14070895,1,1,2) [2024-12-21 14:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070895', 'tblTempUsageDetail_20' ) start [2024-12-21 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070895', 'tblTempUsageDetail_20' ) end [2024-12-21 14:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:52:22] Production.INFO: ==9499== Releasing lock... [2024-12-21 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:52:22] Production.INFO: 44 MB #Memory Used# [2024-12-21 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:53:04 [end_date_ymd] => 2024-12-21 14:53:04 [RateCDR] => 1 ) [2024-12-21 14:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:53:04' and `end` < '2024-12-21 14:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:53:17] Production.INFO: count ==2129 [2024-12-21 14:53:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:53:04 - End Time 2024-12-21 14:53:04 [2024-12-21 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070900', 'tblTempUsageDetail_20' ) start [2024-12-21 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070900', 'tblTempUsageDetail_20' ) end [2024-12-21 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070900', 'tblTempVendorCDR_20' ) start [2024-12-21 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070900', 'tblTempVendorCDR_20' ) end [2024-12-21 14:53:18] Production.INFO: ProcessCDR(1,14070900,1,1,2) [2024-12-21 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070900', 'tblTempUsageDetail_20' ) start [2024-12-21 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070900', 'tblTempUsageDetail_20' ) end [2024-12-21 14:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:53:22] Production.INFO: ==9576== Releasing lock... [2024-12-21 14:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:53:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-21 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:54:05 [end_date_ymd] => 2024-12-21 14:54:05 [RateCDR] => 1 ) [2024-12-21 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:54:05' and `end` < '2024-12-21 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:54:18] Production.INFO: count ==2127 [2024-12-21 14:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 11:54:05 - End Time 2024-12-21 14:54:05 [2024-12-21 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070905', 'tblTempUsageDetail_20' ) start [2024-12-21 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070905', 'tblTempUsageDetail_20' ) end [2024-12-21 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070905', 'tblTempVendorCDR_20' ) start [2024-12-21 14:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070905', 'tblTempVendorCDR_20' ) end [2024-12-21 14:54:19] Production.INFO: ProcessCDR(1,14070905,1,1,2) [2024-12-21 14:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070905', 'tblTempUsageDetail_20' ) start [2024-12-21 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070905', 'tblTempUsageDetail_20' ) end [2024-12-21 14:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:54:23] Production.INFO: ==9690== Releasing lock... [2024-12-21 14:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:54:23] Production.INFO: 44.25 MB #Memory Used# [2024-12-21 14:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:55:04 [end_date_ymd] => 2024-12-21 14:55:04 [RateCDR] => 1 ) [2024-12-21 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-21 11:55:04' and `end` < '2024-12-21 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-21 14:55:16] Production.INFO: count ==2148 [2024-12-21 14:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:55:04 - End Time 2024-12-21 14:55:04 [2024-12-21 14:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070910', 'tblTempUsageDetail_20' ) start [2024-12-21 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070910', 'tblTempUsageDetail_20' ) end [2024-12-21 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070910', 'tblTempVendorCDR_20' ) start [2024-12-21 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070910', 'tblTempVendorCDR_20' ) end [2024-12-21 14:55:17] Production.INFO: ProcessCDR(1,14070910,1,1,2) [2024-12-21 14:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070910', 'tblTempUsageDetail_20' ) start [2024-12-21 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070910', 'tblTempUsageDetail_20' ) end [2024-12-21 14:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:55:22] Production.INFO: ==9771== Releasing lock... [2024-12-21 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:55:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-21 14:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:56:04 [end_date_ymd] => 2024-12-21 14:56:04 [RateCDR] => 1 ) [2024-12-21 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-21 11:56:04' and `end` < '2024-12-21 14: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-21 14:56:17] Production.INFO: count ==2174 [2024-12-21 14:56:17] Production.ERROR: pbx CDR StartTime 2024-12-21 11:56:04 - End Time 2024-12-21 14:56:04 [2024-12-21 14:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070915', 'tblTempUsageDetail_20' ) start [2024-12-21 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070915', 'tblTempUsageDetail_20' ) end [2024-12-21 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070915', 'tblTempVendorCDR_20' ) start [2024-12-21 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070915', 'tblTempVendorCDR_20' ) end [2024-12-21 14:56:17] Production.INFO: ProcessCDR(1,14070915,1,1,2) [2024-12-21 14:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070915', 'tblTempUsageDetail_20' ) start [2024-12-21 14:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070915', 'tblTempUsageDetail_20' ) end [2024-12-21 14:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:56:22] Production.INFO: ==9842== Releasing lock... [2024-12-21 14:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:56:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-21 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:57:05 [end_date_ymd] => 2024-12-21 14:57:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:57:05' and `end` < '2024-12-21 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-21 14:57:18] Production.INFO: count ==2197 [2024-12-21 14:57:19] Production.ERROR: pbx CDR StartTime 2024-12-21 11:57:05 - End Time 2024-12-21 14:57:05 [2024-12-21 14:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070920', 'tblTempUsageDetail_20' ) start [2024-12-21 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070920', 'tblTempUsageDetail_20' ) end [2024-12-21 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070920', 'tblTempVendorCDR_20' ) start [2024-12-21 14:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070920', 'tblTempVendorCDR_20' ) end [2024-12-21 14:57:19] Production.INFO: ProcessCDR(1,14070920,1,1,2) [2024-12-21 14:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070920', 'tblTempUsageDetail_20' ) start [2024-12-21 14:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070920', 'tblTempUsageDetail_20' ) end [2024-12-21 14:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:57:22] Production.INFO: ==9921== Releasing lock... [2024-12-21 14:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:57:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-21 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:58:05 [end_date_ymd] => 2024-12-21 14:58:05 [RateCDR] => 1 ) [2024-12-21 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-21 11:58:05' and `end` < '2024-12-21 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-21 14:58:18] Production.INFO: count ==2186 [2024-12-21 14:58:19] Production.ERROR: pbx CDR StartTime 2024-12-21 11:58:05 - End Time 2024-12-21 14:58:05 [2024-12-21 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070925', 'tblTempUsageDetail_20' ) start [2024-12-21 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070925', 'tblTempUsageDetail_20' ) end [2024-12-21 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070925', 'tblTempVendorCDR_20' ) start [2024-12-21 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070925', 'tblTempVendorCDR_20' ) end [2024-12-21 14:58:19] Production.INFO: ProcessCDR(1,14070925,1,1,2) [2024-12-21 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070925', 'tblTempUsageDetail_20' ) start [2024-12-21 14:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070925', 'tblTempUsageDetail_20' ) end [2024-12-21 14:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:58:22] Production.INFO: ==9993== Releasing lock... [2024-12-21 14:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:58:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-21 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 11:59:05 [end_date_ymd] => 2024-12-21 14:59:05 [RateCDR] => 1 ) [2024-12-21 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 11:59:05' and `end` < '2024-12-21 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 14:59:18] Production.INFO: count ==2182 [2024-12-21 14:59:19] Production.ERROR: pbx CDR StartTime 2024-12-21 11:59:05 - End Time 2024-12-21 14:59:05 [2024-12-21 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070930', 'tblTempUsageDetail_20' ) start [2024-12-21 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070930', 'tblTempUsageDetail_20' ) end [2024-12-21 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070930', 'tblTempVendorCDR_20' ) start [2024-12-21 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070930', 'tblTempVendorCDR_20' ) end [2024-12-21 14:59:19] Production.INFO: ProcessCDR(1,14070930,1,1,2) [2024-12-21 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 14:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070930', 'tblTempUsageDetail_20' ) start [2024-12-21 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070930', 'tblTempUsageDetail_20' ) end [2024-12-21 14:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 14:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 14:59:23] Production.INFO: ==10066== Releasing lock... [2024-12-21 14:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 14:59:23] Production.INFO: 44.5 MB #Memory Used# [2024-12-21 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:00:05 [end_date_ymd] => 2024-12-21 15:00:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:00:05' and `end` < '2024-12-21 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-21 15:00:17] Production.INFO: count ==2179 [2024-12-21 15:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:00:05 - End Time 2024-12-21 15:00:05 [2024-12-21 15:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070935', 'tblTempUsageDetail_20' ) start [2024-12-21 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070935', 'tblTempUsageDetail_20' ) end [2024-12-21 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070935', 'tblTempVendorCDR_20' ) start [2024-12-21 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070935', 'tblTempVendorCDR_20' ) end [2024-12-21 15:00:18] Production.INFO: ProcessCDR(1,14070935,1,1,2) [2024-12-21 15:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070935', 'tblTempUsageDetail_20' ) start [2024-12-21 15:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070935', 'tblTempUsageDetail_20' ) end [2024-12-21 15:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:00:22] Production.INFO: ==10139== Releasing lock... [2024-12-21 15:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:00:22] Production.INFO: 44.5 MB #Memory Used# [2024-12-21 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:01:04 [end_date_ymd] => 2024-12-21 15:01:04 [RateCDR] => 1 ) [2024-12-21 15:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:01:04' and `end` < '2024-12-21 15:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:01:17] Production.INFO: count ==2130 [2024-12-21 15:01:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:01:04 - End Time 2024-12-21 15:01:04 [2024-12-21 15:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070941', 'tblTempUsageDetail_20' ) start [2024-12-21 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070941', 'tblTempUsageDetail_20' ) end [2024-12-21 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070941', 'tblTempVendorCDR_20' ) start [2024-12-21 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070941', 'tblTempVendorCDR_20' ) end [2024-12-21 15:01:17] Production.INFO: ProcessCDR(1,14070941,1,1,2) [2024-12-21 15:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070941', 'tblTempUsageDetail_20' ) start [2024-12-21 15:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070941', 'tblTempUsageDetail_20' ) end [2024-12-21 15:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:01:21] Production.INFO: ==10231== Releasing lock... [2024-12-21 15:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:01:21] Production.INFO: 44 MB #Memory Used# [2024-12-21 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:02:05 [end_date_ymd] => 2024-12-21 15:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:02:05' and `end` < '2024-12-21 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-21 15:02:18] Production.INFO: count ==2134 [2024-12-21 15:02:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:02:05 - End Time 2024-12-21 15:02:05 [2024-12-21 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070946', 'tblTempUsageDetail_20' ) start [2024-12-21 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070946', 'tblTempUsageDetail_20' ) end [2024-12-21 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070946', 'tblTempVendorCDR_20' ) start [2024-12-21 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070946', 'tblTempVendorCDR_20' ) end [2024-12-21 15:02:19] Production.INFO: ProcessCDR(1,14070946,1,1,2) [2024-12-21 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070946', 'tblTempUsageDetail_20' ) start [2024-12-21 15:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070946', 'tblTempUsageDetail_20' ) end [2024-12-21 15:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:02:22] Production.INFO: ==10383== Releasing lock... [2024-12-21 15:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:02:22] Production.INFO: 44.25 MB #Memory Used# [2024-12-21 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:03:04 [end_date_ymd] => 2024-12-21 15:03:04 [RateCDR] => 1 ) [2024-12-21 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-21 12:03:04' and `end` < '2024-12-21 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-21 15:03:16] Production.INFO: count ==2115 [2024-12-21 15:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:03:04 - End Time 2024-12-21 15:03:04 [2024-12-21 15:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070951', 'tblTempUsageDetail_20' ) start [2024-12-21 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070951', 'tblTempUsageDetail_20' ) end [2024-12-21 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070951', 'tblTempVendorCDR_20' ) start [2024-12-21 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070951', 'tblTempVendorCDR_20' ) end [2024-12-21 15:03:17] Production.INFO: ProcessCDR(1,14070951,1,1,2) [2024-12-21 15:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070951', 'tblTempUsageDetail_20' ) start [2024-12-21 15:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070951', 'tblTempUsageDetail_20' ) end [2024-12-21 15:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:03:22] Production.INFO: ==10458== Releasing lock... [2024-12-21 15:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:03:22] Production.INFO: 44 MB #Memory Used# [2024-12-21 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:04:05 [end_date_ymd] => 2024-12-21 15:04:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:04:05' and `end` < '2024-12-21 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-21 15:04:17] Production.INFO: count ==2108 [2024-12-21 15:04:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:04:05 - End Time 2024-12-21 15:04:05 [2024-12-21 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070956', 'tblTempUsageDetail_20' ) start [2024-12-21 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070956', 'tblTempUsageDetail_20' ) end [2024-12-21 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070956', 'tblTempVendorCDR_20' ) start [2024-12-21 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070956', 'tblTempVendorCDR_20' ) end [2024-12-21 15:04:18] Production.INFO: ProcessCDR(1,14070956,1,1,2) [2024-12-21 15:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070956', 'tblTempUsageDetail_20' ) start [2024-12-21 15:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070956', 'tblTempUsageDetail_20' ) end [2024-12-21 15:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:04:21] Production.INFO: ==10533== Releasing lock... [2024-12-21 15:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:04:21] Production.INFO: 44 MB #Memory Used# [2024-12-21 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:05:05 [end_date_ymd] => 2024-12-21 15:05:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:05:05' and `end` < '2024-12-21 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-21 15:05:17] Production.INFO: count ==2117 [2024-12-21 15:05:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:05:05 - End Time 2024-12-21 15:05:05 [2024-12-21 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070961', 'tblTempUsageDetail_20' ) start [2024-12-21 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070961', 'tblTempUsageDetail_20' ) end [2024-12-21 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070961', 'tblTempVendorCDR_20' ) start [2024-12-21 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070961', 'tblTempVendorCDR_20' ) end [2024-12-21 15:05:18] Production.INFO: ProcessCDR(1,14070961,1,1,2) [2024-12-21 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070961', 'tblTempUsageDetail_20' ) start [2024-12-21 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070961', 'tblTempUsageDetail_20' ) end [2024-12-21 15:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:05:21] Production.INFO: ==10685== Releasing lock... [2024-12-21 15:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:05:21] Production.INFO: 44 MB #Memory Used# [2024-12-21 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:06:05 [end_date_ymd] => 2024-12-21 15:06:05 [RateCDR] => 1 ) [2024-12-21 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:06:05' and `end` < '2024-12-21 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:06:17] Production.INFO: count ==2128 [2024-12-21 15:06:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:06:05 - End Time 2024-12-21 15:06:05 [2024-12-21 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070966', 'tblTempUsageDetail_20' ) start [2024-12-21 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070966', 'tblTempUsageDetail_20' ) end [2024-12-21 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070966', 'tblTempVendorCDR_20' ) start [2024-12-21 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070966', 'tblTempVendorCDR_20' ) end [2024-12-21 15:06:18] Production.INFO: ProcessCDR(1,14070966,1,1,2) [2024-12-21 15:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070966', 'tblTempUsageDetail_20' ) start [2024-12-21 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070966', 'tblTempUsageDetail_20' ) end [2024-12-21 15:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:06:21] Production.INFO: ==10757== Releasing lock... [2024-12-21 15:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:06:21] Production.INFO: 44 MB #Memory Used# [2024-12-21 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:07:05 [end_date_ymd] => 2024-12-21 15:07:05 [RateCDR] => 1 ) [2024-12-21 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:07:05' and `end` < '2024-12-21 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:07:18] Production.INFO: count ==2112 [2024-12-21 15:07:19] Production.ERROR: pbx CDR StartTime 2024-12-21 12:07:05 - End Time 2024-12-21 15:07:05 [2024-12-21 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070971', 'tblTempUsageDetail_20' ) start [2024-12-21 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070971', 'tblTempUsageDetail_20' ) end [2024-12-21 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070971', 'tblTempVendorCDR_20' ) start [2024-12-21 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070971', 'tblTempVendorCDR_20' ) end [2024-12-21 15:07:19] Production.INFO: ProcessCDR(1,14070971,1,1,2) [2024-12-21 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070971', 'tblTempUsageDetail_20' ) start [2024-12-21 15:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070971', 'tblTempUsageDetail_20' ) end [2024-12-21 15:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:07:23] Production.INFO: ==10831== Releasing lock... [2024-12-21 15:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:07:23] Production.INFO: 44 MB #Memory Used# [2024-12-21 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:08:05 [end_date_ymd] => 2024-12-21 15:08:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:08:05' and `end` < '2024-12-21 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-21 15:08:18] Production.INFO: count ==2115 [2024-12-21 15:08:19] Production.ERROR: pbx CDR StartTime 2024-12-21 12:08:05 - End Time 2024-12-21 15:08:05 [2024-12-21 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070976', 'tblTempUsageDetail_20' ) start [2024-12-21 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070976', 'tblTempUsageDetail_20' ) end [2024-12-21 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070976', 'tblTempVendorCDR_20' ) start [2024-12-21 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070976', 'tblTempVendorCDR_20' ) end [2024-12-21 15:08:19] Production.INFO: ProcessCDR(1,14070976,1,1,2) [2024-12-21 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070976', 'tblTempUsageDetail_20' ) start [2024-12-21 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070976', 'tblTempUsageDetail_20' ) end [2024-12-21 15:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:08:22] Production.INFO: ==10946== Releasing lock... [2024-12-21 15:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:08:22] Production.INFO: 44 MB #Memory Used# [2024-12-21 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:09:05 [end_date_ymd] => 2024-12-21 15:09:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:09:05' and `end` < '2024-12-21 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-21 15:09:17] Production.INFO: count ==2110 [2024-12-21 15:09:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:09:05 - End Time 2024-12-21 15:09:05 [2024-12-21 15:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070981', 'tblTempUsageDetail_20' ) start [2024-12-21 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070981', 'tblTempUsageDetail_20' ) end [2024-12-21 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070981', 'tblTempVendorCDR_20' ) start [2024-12-21 15:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070981', 'tblTempVendorCDR_20' ) end [2024-12-21 15:09:18] Production.INFO: ProcessCDR(1,14070981,1,1,2) [2024-12-21 15:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070981', 'tblTempUsageDetail_20' ) start [2024-12-21 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070981', 'tblTempUsageDetail_20' ) end [2024-12-21 15:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:09:22] Production.INFO: ==11065== Releasing lock... [2024-12-21 15:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:09:22] Production.INFO: 44 MB #Memory Used# [2024-12-21 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:10:05 [end_date_ymd] => 2024-12-21 15:10:05 [RateCDR] => 1 ) [2024-12-21 15:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:10:05' and `end` < '2024-12-21 15:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:10:17] Production.INFO: count ==2104 [2024-12-21 15:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:10:05 - End Time 2024-12-21 15:10:05 [2024-12-21 15:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070987', 'tblTempUsageDetail_20' ) start [2024-12-21 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070987', 'tblTempUsageDetail_20' ) end [2024-12-21 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070987', 'tblTempVendorCDR_20' ) start [2024-12-21 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070987', 'tblTempVendorCDR_20' ) end [2024-12-21 15:10:18] Production.INFO: ProcessCDR(1,14070987,1,1,2) [2024-12-21 15:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070987', 'tblTempUsageDetail_20' ) start [2024-12-21 15:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070987', 'tblTempUsageDetail_20' ) end [2024-12-21 15:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:10:21] Production.INFO: ==11177== Releasing lock... [2024-12-21 15:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:10:21] Production.INFO: 44 MB #Memory Used# [2024-12-21 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:11:05 [end_date_ymd] => 2024-12-21 15:11:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:11:05' and `end` < '2024-12-21 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-21 15:11:18] Production.INFO: count ==2056 [2024-12-21 15:11:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:11:05 - End Time 2024-12-21 15:11:05 [2024-12-21 15:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070992', 'tblTempUsageDetail_20' ) start [2024-12-21 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070992', 'tblTempUsageDetail_20' ) end [2024-12-21 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070992', 'tblTempVendorCDR_20' ) start [2024-12-21 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070992', 'tblTempVendorCDR_20' ) end [2024-12-21 15:11:19] Production.INFO: ProcessCDR(1,14070992,1,1,2) [2024-12-21 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070992', 'tblTempUsageDetail_20' ) start [2024-12-21 15:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070992', 'tblTempUsageDetail_20' ) end [2024-12-21 15:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:11:22] Production.INFO: ==11251== Releasing lock... [2024-12-21 15:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:11:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:12:05 [end_date_ymd] => 2024-12-21 15:12:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:12:05' and `end` < '2024-12-21 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-21 15:12:17] Production.INFO: count ==2062 [2024-12-21 15:12:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:12:05 - End Time 2024-12-21 15:12:05 [2024-12-21 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070997', 'tblTempUsageDetail_20' ) start [2024-12-21 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14070997', 'tblTempUsageDetail_20' ) end [2024-12-21 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070997', 'tblTempVendorCDR_20' ) start [2024-12-21 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14070997', 'tblTempVendorCDR_20' ) end [2024-12-21 15:12:18] Production.INFO: ProcessCDR(1,14070997,1,1,2) [2024-12-21 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14070997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14070997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14070997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14070997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070997', 'tblTempUsageDetail_20' ) start [2024-12-21 15:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14070997', 'tblTempUsageDetail_20' ) end [2024-12-21 15:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:12:21] Production.INFO: ==11403== Releasing lock... [2024-12-21 15:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:12:21] Production.INFO: 43.75 MB #Memory Used# [2024-12-21 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:13:04 [end_date_ymd] => 2024-12-21 15:13:04 [RateCDR] => 1 ) [2024-12-21 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-21 12:13:04' and `end` < '2024-12-21 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-21 15:13:17] Production.INFO: count ==2062 [2024-12-21 15:13:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:13:04 - End Time 2024-12-21 15:13:04 [2024-12-21 15:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071002', 'tblTempUsageDetail_20' ) start [2024-12-21 15:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071002', 'tblTempUsageDetail_20' ) end [2024-12-21 15:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071002', 'tblTempVendorCDR_20' ) start [2024-12-21 15:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071002', 'tblTempVendorCDR_20' ) end [2024-12-21 15:13:17] Production.INFO: ProcessCDR(1,14071002,1,1,2) [2024-12-21 15:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071002', 'tblTempUsageDetail_20' ) start [2024-12-21 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071002', 'tblTempUsageDetail_20' ) end [2024-12-21 15:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:13:22] Production.INFO: ==11485== Releasing lock... [2024-12-21 15:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:13:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:14:05 [end_date_ymd] => 2024-12-21 15:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:14:05' and `end` < '2024-12-21 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-21 15:14:19] Production.INFO: count ==2062 [2024-12-21 15:14:19] Production.ERROR: pbx CDR StartTime 2024-12-21 12:14:05 - End Time 2024-12-21 15:14:05 [2024-12-21 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071007', 'tblTempUsageDetail_20' ) start [2024-12-21 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071007', 'tblTempUsageDetail_20' ) end [2024-12-21 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071007', 'tblTempVendorCDR_20' ) start [2024-12-21 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071007', 'tblTempVendorCDR_20' ) end [2024-12-21 15:14:19] Production.INFO: ProcessCDR(1,14071007,1,1,2) [2024-12-21 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071007', 'tblTempUsageDetail_20' ) start [2024-12-21 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071007', 'tblTempUsageDetail_20' ) end [2024-12-21 15:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:14:24] Production.INFO: ==11567== Releasing lock... [2024-12-21 15:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:14:24] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:15:04 [end_date_ymd] => 2024-12-21 15:15:04 [RateCDR] => 1 ) [2024-12-21 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-21 12:15:04' and `end` < '2024-12-21 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-21 15:15:16] Production.INFO: count ==2055 [2024-12-21 15:15:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:15:04 - End Time 2024-12-21 15:15:04 [2024-12-21 15:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071012', 'tblTempUsageDetail_20' ) start [2024-12-21 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071012', 'tblTempUsageDetail_20' ) end [2024-12-21 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071012', 'tblTempVendorCDR_20' ) start [2024-12-21 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071012', 'tblTempVendorCDR_20' ) end [2024-12-21 15:15:17] Production.INFO: ProcessCDR(1,14071012,1,1,2) [2024-12-21 15:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071012', 'tblTempUsageDetail_20' ) start [2024-12-21 15:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071012', 'tblTempUsageDetail_20' ) end [2024-12-21 15:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:15:20] Production.INFO: ==11725== Releasing lock... [2024-12-21 15:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:15:20] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:16:05 [end_date_ymd] => 2024-12-21 15:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:16:05' and `end` < '2024-12-21 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-21 15:16:17] Production.INFO: count ==2049 [2024-12-21 15:16:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:16:05 - End Time 2024-12-21 15:16:05 [2024-12-21 15:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071017', 'tblTempUsageDetail_20' ) start [2024-12-21 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071017', 'tblTempUsageDetail_20' ) end [2024-12-21 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071017', 'tblTempVendorCDR_20' ) start [2024-12-21 15:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071017', 'tblTempVendorCDR_20' ) end [2024-12-21 15:16:18] Production.INFO: ProcessCDR(1,14071017,1,1,2) [2024-12-21 15:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071017', 'tblTempUsageDetail_20' ) start [2024-12-21 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071017', 'tblTempUsageDetail_20' ) end [2024-12-21 15:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:16:22] Production.INFO: ==11805== Releasing lock... [2024-12-21 15:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:16:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 15:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:17:04 [end_date_ymd] => 2024-12-21 15:17:04 [RateCDR] => 1 ) [2024-12-21 15: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-21 12:17:04' and `end` < '2024-12-21 15: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-21 15:17:16] Production.INFO: count ==2050 [2024-12-21 15:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:17:04 - End Time 2024-12-21 15:17:04 [2024-12-21 15:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071022', 'tblTempUsageDetail_20' ) start [2024-12-21 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071022', 'tblTempUsageDetail_20' ) end [2024-12-21 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071022', 'tblTempVendorCDR_20' ) start [2024-12-21 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071022', 'tblTempVendorCDR_20' ) end [2024-12-21 15:17:17] Production.INFO: ProcessCDR(1,14071022,1,1,2) [2024-12-21 15:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071022', 'tblTempUsageDetail_20' ) start [2024-12-21 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071022', 'tblTempUsageDetail_20' ) end [2024-12-21 15:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:17:22] Production.INFO: ==11880== Releasing lock... [2024-12-21 15:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:17:22] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 15:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:18:04 [end_date_ymd] => 2024-12-21 15:18:04 [RateCDR] => 1 ) [2024-12-21 15:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:18:04' and `end` < '2024-12-21 15:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:18:17] Production.INFO: count ==2050 [2024-12-21 15:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:18:04 - End Time 2024-12-21 15:18:04 [2024-12-21 15:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071027', 'tblTempUsageDetail_20' ) start [2024-12-21 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071027', 'tblTempUsageDetail_20' ) end [2024-12-21 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071027', 'tblTempVendorCDR_20' ) start [2024-12-21 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071027', 'tblTempVendorCDR_20' ) end [2024-12-21 15:18:17] Production.INFO: ProcessCDR(1,14071027,1,1,2) [2024-12-21 15:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071027', 'tblTempUsageDetail_20' ) start [2024-12-21 15:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071027', 'tblTempUsageDetail_20' ) end [2024-12-21 15:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:18:20] Production.INFO: ==11961== Releasing lock... [2024-12-21 15:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:18:20] Production.INFO: 43.5 MB #Memory Used# [2024-12-21 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:19:05 [end_date_ymd] => 2024-12-21 15:19:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:19:05' and `end` < '2024-12-21 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-21 15:19:17] Production.INFO: count ==2038 [2024-12-21 15:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:19:05 - End Time 2024-12-21 15:19:05 [2024-12-21 15:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071032', 'tblTempUsageDetail_20' ) start [2024-12-21 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071032', 'tblTempUsageDetail_20' ) end [2024-12-21 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071032', 'tblTempVendorCDR_20' ) start [2024-12-21 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071032', 'tblTempVendorCDR_20' ) end [2024-12-21 15:19:17] Production.INFO: ProcessCDR(1,14071032,1,1,2) [2024-12-21 15:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071032', 'tblTempUsageDetail_20' ) start [2024-12-21 15:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071032', 'tblTempUsageDetail_20' ) end [2024-12-21 15:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:19:22] Production.INFO: ==12041== Releasing lock... [2024-12-21 15:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:19:22] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:20:05 [end_date_ymd] => 2024-12-21 15:20:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:20:05' and `end` < '2024-12-21 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-21 15:20:17] Production.INFO: count ==2029 [2024-12-21 15:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:20:05 - End Time 2024-12-21 15:20:05 [2024-12-21 15:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071038', 'tblTempUsageDetail_20' ) start [2024-12-21 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071038', 'tblTempUsageDetail_20' ) end [2024-12-21 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071038', 'tblTempVendorCDR_20' ) start [2024-12-21 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071038', 'tblTempVendorCDR_20' ) end [2024-12-21 15:20:18] Production.INFO: ProcessCDR(1,14071038,1,1,2) [2024-12-21 15:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071038', 'tblTempUsageDetail_20' ) start [2024-12-21 15:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071038', 'tblTempUsageDetail_20' ) end [2024-12-21 15:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:20:21] Production.INFO: ==12124== Releasing lock... [2024-12-21 15:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:20:21] Production.INFO: 43.25 MB #Memory Used# [2024-12-21 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:21:05 [end_date_ymd] => 2024-12-21 15:21:05 [RateCDR] => 1 ) [2024-12-21 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:21:05' and `end` < '2024-12-21 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:21:17] Production.INFO: count ==1987 [2024-12-21 15:21:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:21:05 - End Time 2024-12-21 15:21:05 [2024-12-21 15:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071043', 'tblTempUsageDetail_20' ) start [2024-12-21 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071043', 'tblTempUsageDetail_20' ) end [2024-12-21 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071043', 'tblTempVendorCDR_20' ) start [2024-12-21 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071043', 'tblTempVendorCDR_20' ) end [2024-12-21 15:21:18] Production.INFO: ProcessCDR(1,14071043,1,1,2) [2024-12-21 15:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071043', 'tblTempUsageDetail_20' ) start [2024-12-21 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071043', 'tblTempUsageDetail_20' ) end [2024-12-21 15:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:21:21] Production.INFO: ==12198== Releasing lock... [2024-12-21 15:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:21:21] Production.INFO: 43 MB #Memory Used# [2024-12-21 15:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:22:04 [end_date_ymd] => 2024-12-21 15:22:04 [RateCDR] => 1 ) [2024-12-21 15:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:22:04' and `end` < '2024-12-21 15:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:22:16] Production.INFO: count ==1982 [2024-12-21 15:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:22:04 - End Time 2024-12-21 15:22:04 [2024-12-21 15:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071047', 'tblTempUsageDetail_20' ) start [2024-12-21 15:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071047', 'tblTempUsageDetail_20' ) end [2024-12-21 15:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071047', 'tblTempVendorCDR_20' ) start [2024-12-21 15:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071047', 'tblTempVendorCDR_20' ) end [2024-12-21 15:22:17] Production.INFO: ProcessCDR(1,14071047,1,1,2) [2024-12-21 15:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071047', 'tblTempUsageDetail_20' ) start [2024-12-21 15:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071047', 'tblTempUsageDetail_20' ) end [2024-12-21 15:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:22:21] Production.INFO: ==12271== Releasing lock... [2024-12-21 15:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:22:21] Production.INFO: 43 MB #Memory Used# [2024-12-21 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:23:05 [end_date_ymd] => 2024-12-21 15:23:05 [RateCDR] => 1 ) [2024-12-21 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:23:05' and `end` < '2024-12-21 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:23:19] Production.INFO: count ==1980 [2024-12-21 15:23:19] Production.ERROR: pbx CDR StartTime 2024-12-21 12:23:05 - End Time 2024-12-21 15:23:05 [2024-12-21 15:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071053', 'tblTempUsageDetail_20' ) start [2024-12-21 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071053', 'tblTempUsageDetail_20' ) end [2024-12-21 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071053', 'tblTempVendorCDR_20' ) start [2024-12-21 15:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071053', 'tblTempVendorCDR_20' ) end [2024-12-21 15:23:19] Production.INFO: ProcessCDR(1,14071053,1,1,2) [2024-12-21 15:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071053', 'tblTempUsageDetail_20' ) start [2024-12-21 15:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071053', 'tblTempUsageDetail_20' ) end [2024-12-21 15:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:23:24] Production.INFO: ==12347== Releasing lock... [2024-12-21 15:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:23:24] Production.INFO: 43 MB #Memory Used# [2024-12-21 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:24:05 [end_date_ymd] => 2024-12-21 15:24:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:24:05' and `end` < '2024-12-21 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-21 15:24:17] Production.INFO: count ==1969 [2024-12-21 15:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:24:05 - End Time 2024-12-21 15:24:05 [2024-12-21 15:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071058', 'tblTempUsageDetail_20' ) start [2024-12-21 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071058', 'tblTempUsageDetail_20' ) end [2024-12-21 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071058', 'tblTempVendorCDR_20' ) start [2024-12-21 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071058', 'tblTempVendorCDR_20' ) end [2024-12-21 15:24:18] Production.INFO: ProcessCDR(1,14071058,1,1,2) [2024-12-21 15:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071058', 'tblTempUsageDetail_20' ) start [2024-12-21 15:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071058', 'tblTempUsageDetail_20' ) end [2024-12-21 15:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:24:21] Production.INFO: ==12421== Releasing lock... [2024-12-21 15:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:24:21] Production.INFO: 43 MB #Memory Used# [2024-12-21 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:25:04 [end_date_ymd] => 2024-12-21 15:25:04 [RateCDR] => 1 ) [2024-12-21 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-21 12:25:04' and `end` < '2024-12-21 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-21 15:25:17] Production.INFO: count ==1965 [2024-12-21 15:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:25:04 - End Time 2024-12-21 15:25:04 [2024-12-21 15:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071063', 'tblTempUsageDetail_20' ) start [2024-12-21 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071063', 'tblTempUsageDetail_20' ) end [2024-12-21 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071063', 'tblTempVendorCDR_20' ) start [2024-12-21 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071063', 'tblTempVendorCDR_20' ) end [2024-12-21 15:25:17] Production.INFO: ProcessCDR(1,14071063,1,1,2) [2024-12-21 15:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071063', 'tblTempUsageDetail_20' ) start [2024-12-21 15:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071063', 'tblTempUsageDetail_20' ) end [2024-12-21 15:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:25:20] Production.INFO: ==12494== Releasing lock... [2024-12-21 15:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:25:20] Production.INFO: 43 MB #Memory Used# [2024-12-21 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:26:05 [end_date_ymd] => 2024-12-21 15:26:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:26:05' and `end` < '2024-12-21 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-21 15:26:18] Production.INFO: count ==1956 [2024-12-21 15:26:19] Production.ERROR: pbx CDR StartTime 2024-12-21 12:26:05 - End Time 2024-12-21 15:26:05 [2024-12-21 15:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071068', 'tblTempUsageDetail_20' ) start [2024-12-21 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071068', 'tblTempUsageDetail_20' ) end [2024-12-21 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071068', 'tblTempVendorCDR_20' ) start [2024-12-21 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071068', 'tblTempVendorCDR_20' ) end [2024-12-21 15:26:19] Production.INFO: ProcessCDR(1,14071068,1,1,2) [2024-12-21 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071068', 'tblTempUsageDetail_20' ) start [2024-12-21 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071068', 'tblTempUsageDetail_20' ) end [2024-12-21 15:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:26:22] Production.INFO: ==12610== Releasing lock... [2024-12-21 15:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:26:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:27:05 [end_date_ymd] => 2024-12-21 15:27:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:27:05' and `end` < '2024-12-21 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-21 15:27:17] Production.INFO: count ==1953 [2024-12-21 15:27:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:27:05 - End Time 2024-12-21 15:27:05 [2024-12-21 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071073', 'tblTempUsageDetail_20' ) start [2024-12-21 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071073', 'tblTempUsageDetail_20' ) end [2024-12-21 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071073', 'tblTempVendorCDR_20' ) start [2024-12-21 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071073', 'tblTempVendorCDR_20' ) end [2024-12-21 15:27:18] Production.INFO: ProcessCDR(1,14071073,1,1,2) [2024-12-21 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071073', 'tblTempUsageDetail_20' ) start [2024-12-21 15:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071073', 'tblTempUsageDetail_20' ) end [2024-12-21 15:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:27:21] Production.INFO: ==12702== Releasing lock... [2024-12-21 15:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:27:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 15:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:28:04 [end_date_ymd] => 2024-12-21 15:28:04 [RateCDR] => 1 ) [2024-12-21 15:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:28:04' and `end` < '2024-12-21 15:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:28:18] Production.INFO: count ==1949 [2024-12-21 15:28:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:28:04 - End Time 2024-12-21 15:28:04 [2024-12-21 15:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071078', 'tblTempUsageDetail_20' ) start [2024-12-21 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071078', 'tblTempUsageDetail_20' ) end [2024-12-21 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071078', 'tblTempVendorCDR_20' ) start [2024-12-21 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071078', 'tblTempVendorCDR_20' ) end [2024-12-21 15:28:18] Production.INFO: ProcessCDR(1,14071078,1,1,2) [2024-12-21 15:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071078', 'tblTempUsageDetail_20' ) start [2024-12-21 15:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071078', 'tblTempUsageDetail_20' ) end [2024-12-21 15:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:28:21] Production.INFO: ==12786== Releasing lock... [2024-12-21 15:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:28:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:29:05 [end_date_ymd] => 2024-12-21 15:29:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:29:05' and `end` < '2024-12-21 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-21 15:29:17] Production.INFO: count ==1948 [2024-12-21 15:29:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:29:05 - End Time 2024-12-21 15:29:05 [2024-12-21 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071083', 'tblTempUsageDetail_20' ) start [2024-12-21 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071083', 'tblTempUsageDetail_20' ) end [2024-12-21 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071083', 'tblTempVendorCDR_20' ) start [2024-12-21 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071083', 'tblTempVendorCDR_20' ) end [2024-12-21 15:29:18] Production.INFO: ProcessCDR(1,14071083,1,1,2) [2024-12-21 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071083', 'tblTempUsageDetail_20' ) start [2024-12-21 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071083', 'tblTempUsageDetail_20' ) end [2024-12-21 15:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:29:22] Production.INFO: ==12862== Releasing lock... [2024-12-21 15:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:29:22] Production.INFO: 43 MB #Memory Used# [2024-12-21 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:30:05 [end_date_ymd] => 2024-12-21 15:30:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:30:05' and `end` < '2024-12-21 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-21 15:30:18] Production.INFO: count ==1961 [2024-12-21 15:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:30:05 - End Time 2024-12-21 15:30:05 [2024-12-21 15:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071089', 'tblTempUsageDetail_20' ) start [2024-12-21 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071089', 'tblTempUsageDetail_20' ) end [2024-12-21 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071089', 'tblTempVendorCDR_20' ) start [2024-12-21 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071089', 'tblTempVendorCDR_20' ) end [2024-12-21 15:30:19] Production.INFO: ProcessCDR(1,14071089,1,1,2) [2024-12-21 15:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071089', 'tblTempUsageDetail_20' ) start [2024-12-21 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071089', 'tblTempUsageDetail_20' ) end [2024-12-21 15:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:30:23] Production.INFO: ==12950== Releasing lock... [2024-12-21 15:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:30:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:31:05 [end_date_ymd] => 2024-12-21 15:31:05 [RateCDR] => 1 ) [2024-12-21 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:31:05' and `end` < '2024-12-21 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:31:18] Production.INFO: count ==1947 [2024-12-21 15:31:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:31:05 - End Time 2024-12-21 15:31:05 [2024-12-21 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071094', 'tblTempUsageDetail_20' ) start [2024-12-21 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071094', 'tblTempUsageDetail_20' ) end [2024-12-21 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071094', 'tblTempVendorCDR_20' ) start [2024-12-21 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071094', 'tblTempVendorCDR_20' ) end [2024-12-21 15:31:18] Production.INFO: ProcessCDR(1,14071094,1,1,2) [2024-12-21 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071094', 'tblTempUsageDetail_20' ) start [2024-12-21 15:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071094', 'tblTempUsageDetail_20' ) end [2024-12-21 15:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:31:21] Production.INFO: ==13051== Releasing lock... [2024-12-21 15:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:31:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:32:04 [end_date_ymd] => 2024-12-21 15:32:04 [RateCDR] => 1 ) [2024-12-21 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-21 12:32:04' and `end` < '2024-12-21 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-21 15:32:17] Production.INFO: count ==1942 [2024-12-21 15:32:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:32:04 - End Time 2024-12-21 15:32:04 [2024-12-21 15:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071099', 'tblTempUsageDetail_20' ) start [2024-12-21 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071099', 'tblTempUsageDetail_20' ) end [2024-12-21 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071099', 'tblTempVendorCDR_20' ) start [2024-12-21 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071099', 'tblTempVendorCDR_20' ) end [2024-12-21 15:32:17] Production.INFO: ProcessCDR(1,14071099,1,1,2) [2024-12-21 15:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071099', 'tblTempUsageDetail_20' ) start [2024-12-21 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071099', 'tblTempUsageDetail_20' ) end [2024-12-21 15:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:32:22] Production.INFO: ==13131== Releasing lock... [2024-12-21 15:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:32:22] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 15:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:33:04 [end_date_ymd] => 2024-12-21 15:33:04 [RateCDR] => 1 ) [2024-12-21 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-21 12:33:04' and `end` < '2024-12-21 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-21 15:33:18] Production.INFO: count ==1943 [2024-12-21 15:33:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:33:04 - End Time 2024-12-21 15:33:04 [2024-12-21 15:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071104', 'tblTempUsageDetail_20' ) start [2024-12-21 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071104', 'tblTempUsageDetail_20' ) end [2024-12-21 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071104', 'tblTempVendorCDR_20' ) start [2024-12-21 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071104', 'tblTempVendorCDR_20' ) end [2024-12-21 15:33:18] Production.INFO: ProcessCDR(1,14071104,1,1,2) [2024-12-21 15:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071104', 'tblTempUsageDetail_20' ) start [2024-12-21 15:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071104', 'tblTempUsageDetail_20' ) end [2024-12-21 15:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:33:23] Production.INFO: ==13202== Releasing lock... [2024-12-21 15:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:33:23] Production.INFO: 43 MB #Memory Used# [2024-12-21 15:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:34:04 [end_date_ymd] => 2024-12-21 15:34:04 [RateCDR] => 1 ) [2024-12-21 15:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:34:04' and `end` < '2024-12-21 15:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:34:17] Production.INFO: count ==1939 [2024-12-21 15:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:34:04 - End Time 2024-12-21 15:34:04 [2024-12-21 15:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071109', 'tblTempUsageDetail_20' ) start [2024-12-21 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071109', 'tblTempUsageDetail_20' ) end [2024-12-21 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071109', 'tblTempVendorCDR_20' ) start [2024-12-21 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071109', 'tblTempVendorCDR_20' ) end [2024-12-21 15:34:18] Production.INFO: ProcessCDR(1,14071109,1,1,2) [2024-12-21 15:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071109', 'tblTempUsageDetail_20' ) start [2024-12-21 15:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071109', 'tblTempUsageDetail_20' ) end [2024-12-21 15:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:34:21] Production.INFO: ==13273== Releasing lock... [2024-12-21 15:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:34:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:35:05 [end_date_ymd] => 2024-12-21 15:35:05 [RateCDR] => 1 ) [2024-12-21 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:35:05' and `end` < '2024-12-21 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:35:17] Production.INFO: count ==1932 [2024-12-21 15:35:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:35:05 - End Time 2024-12-21 15:35:05 [2024-12-21 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071114', 'tblTempUsageDetail_20' ) start [2024-12-21 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071114', 'tblTempUsageDetail_20' ) end [2024-12-21 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071114', 'tblTempVendorCDR_20' ) start [2024-12-21 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071114', 'tblTempVendorCDR_20' ) end [2024-12-21 15:35:18] Production.INFO: ProcessCDR(1,14071114,1,1,2) [2024-12-21 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071114', 'tblTempUsageDetail_20' ) start [2024-12-21 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071114', 'tblTempUsageDetail_20' ) end [2024-12-21 15:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:35:21] Production.INFO: ==13343== Releasing lock... [2024-12-21 15:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:35:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:36:05 [end_date_ymd] => 2024-12-21 15:36:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:36:05' and `end` < '2024-12-21 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-21 15:36:17] Production.INFO: count ==1917 [2024-12-21 15:36:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:36:05 - End Time 2024-12-21 15:36:05 [2024-12-21 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071119', 'tblTempUsageDetail_20' ) start [2024-12-21 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071119', 'tblTempUsageDetail_20' ) end [2024-12-21 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071119', 'tblTempVendorCDR_20' ) start [2024-12-21 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071119', 'tblTempVendorCDR_20' ) end [2024-12-21 15:36:18] Production.INFO: ProcessCDR(1,14071119,1,1,2) [2024-12-21 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071119', 'tblTempUsageDetail_20' ) start [2024-12-21 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071119', 'tblTempUsageDetail_20' ) end [2024-12-21 15:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:36:21] Production.INFO: ==13422== Releasing lock... [2024-12-21 15:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:36:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 15:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:37:04 [end_date_ymd] => 2024-12-21 15:37:04 [RateCDR] => 1 ) [2024-12-21 15: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-21 12:37:04' and `end` < '2024-12-21 15: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-21 15:37:17] Production.INFO: count ==1913 [2024-12-21 15:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:37:04 - End Time 2024-12-21 15:37:04 [2024-12-21 15:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071124', 'tblTempUsageDetail_20' ) start [2024-12-21 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071124', 'tblTempUsageDetail_20' ) end [2024-12-21 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071124', 'tblTempVendorCDR_20' ) start [2024-12-21 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071124', 'tblTempVendorCDR_20' ) end [2024-12-21 15:37:17] Production.INFO: ProcessCDR(1,14071124,1,1,2) [2024-12-21 15:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071124', 'tblTempUsageDetail_20' ) start [2024-12-21 15:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071124', 'tblTempUsageDetail_20' ) end [2024-12-21 15:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:37:20] Production.INFO: ==13494== Releasing lock... [2024-12-21 15:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:37:20] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:38:05 [end_date_ymd] => 2024-12-21 15:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:38:05' and `end` < '2024-12-21 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-21 15:38:17] Production.INFO: count ==1899 [2024-12-21 15:38:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:38:05 - End Time 2024-12-21 15:38:05 [2024-12-21 15:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071129', 'tblTempUsageDetail_20' ) start [2024-12-21 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071129', 'tblTempUsageDetail_20' ) end [2024-12-21 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071129', 'tblTempVendorCDR_20' ) start [2024-12-21 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071129', 'tblTempVendorCDR_20' ) end [2024-12-21 15:38:18] Production.INFO: ProcessCDR(1,14071129,1,1,2) [2024-12-21 15:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071129', 'tblTempUsageDetail_20' ) start [2024-12-21 15:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071129', 'tblTempUsageDetail_20' ) end [2024-12-21 15:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:38:21] Production.INFO: ==13573== Releasing lock... [2024-12-21 15:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:38:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 15:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:39:04 [end_date_ymd] => 2024-12-21 15:39:04 [RateCDR] => 1 ) [2024-12-21 15:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:39:04' and `end` < '2024-12-21 15:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:39:16] Production.INFO: count ==1889 [2024-12-21 15:39:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:39:04 - End Time 2024-12-21 15:39:04 [2024-12-21 15:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071134', 'tblTempUsageDetail_20' ) start [2024-12-21 15:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071134', 'tblTempUsageDetail_20' ) end [2024-12-21 15:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071134', 'tblTempVendorCDR_20' ) start [2024-12-21 15:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071134', 'tblTempVendorCDR_20' ) end [2024-12-21 15:39:17] Production.INFO: ProcessCDR(1,14071134,1,1,2) [2024-12-21 15:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071134', 'tblTempUsageDetail_20' ) start [2024-12-21 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071134', 'tblTempUsageDetail_20' ) end [2024-12-21 15:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:39:22] Production.INFO: ==13643== Releasing lock... [2024-12-21 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:39:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:40:06 [end_date_ymd] => 2024-12-21 15:40:06 [RateCDR] => 1 ) [2024-12-21 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:40:06' and `end` < '2024-12-21 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:40:18] Production.INFO: count ==1884 [2024-12-21 15:40:19] Production.ERROR: pbx CDR StartTime 2024-12-21 12:40:06 - End Time 2024-12-21 15:40:06 [2024-12-21 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071140', 'tblTempUsageDetail_20' ) start [2024-12-21 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071140', 'tblTempUsageDetail_20' ) end [2024-12-21 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071140', 'tblTempVendorCDR_20' ) start [2024-12-21 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071140', 'tblTempVendorCDR_20' ) end [2024-12-21 15:40:19] Production.INFO: ProcessCDR(1,14071140,1,1,2) [2024-12-21 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071140', 'tblTempUsageDetail_20' ) start [2024-12-21 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071140', 'tblTempUsageDetail_20' ) end [2024-12-21 15:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:40:22] Production.INFO: ==13717== Releasing lock... [2024-12-21 15:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:40:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:41:05 [end_date_ymd] => 2024-12-21 15:41:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:41:05' and `end` < '2024-12-21 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-21 15:41:17] Production.INFO: count ==1859 [2024-12-21 15:41:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:41:05 - End Time 2024-12-21 15:41:05 [2024-12-21 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071145', 'tblTempUsageDetail_20' ) start [2024-12-21 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071145', 'tblTempUsageDetail_20' ) end [2024-12-21 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071145', 'tblTempVendorCDR_20' ) start [2024-12-21 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071145', 'tblTempVendorCDR_20' ) end [2024-12-21 15:41:18] Production.INFO: ProcessCDR(1,14071145,1,1,2) [2024-12-21 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071145', 'tblTempUsageDetail_20' ) start [2024-12-21 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071145', 'tblTempUsageDetail_20' ) end [2024-12-21 15:41:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:41:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:41:23] Production.INFO: ==13830== Releasing lock... [2024-12-21 15:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:41:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:42:05 [end_date_ymd] => 2024-12-21 15:42:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:42:05' and `end` < '2024-12-21 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-21 15:42:18] Production.INFO: count ==1860 [2024-12-21 15:42:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:42:05 - End Time 2024-12-21 15:42:05 [2024-12-21 15:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071150', 'tblTempUsageDetail_20' ) start [2024-12-21 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071150', 'tblTempUsageDetail_20' ) end [2024-12-21 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071150', 'tblTempVendorCDR_20' ) start [2024-12-21 15:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071150', 'tblTempVendorCDR_20' ) end [2024-12-21 15:42:18] Production.INFO: ProcessCDR(1,14071150,1,1,2) [2024-12-21 15:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071150', 'tblTempUsageDetail_20' ) start [2024-12-21 15:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071150', 'tblTempUsageDetail_20' ) end [2024-12-21 15:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:42:22] Production.INFO: ==13901== Releasing lock... [2024-12-21 15:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:42:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:43:05 [end_date_ymd] => 2024-12-21 15:43:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:43:05' and `end` < '2024-12-21 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-21 15:43:17] Production.INFO: count ==1857 [2024-12-21 15:43:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:43:05 - End Time 2024-12-21 15:43:05 [2024-12-21 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071155', 'tblTempUsageDetail_20' ) start [2024-12-21 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071155', 'tblTempUsageDetail_20' ) end [2024-12-21 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071155', 'tblTempVendorCDR_20' ) start [2024-12-21 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071155', 'tblTempVendorCDR_20' ) end [2024-12-21 15:43:18] Production.INFO: ProcessCDR(1,14071155,1,1,2) [2024-12-21 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071155', 'tblTempUsageDetail_20' ) start [2024-12-21 15:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071155', 'tblTempUsageDetail_20' ) end [2024-12-21 15:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:43:22] Production.INFO: ==13976== Releasing lock... [2024-12-21 15:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:43:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 15:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:44:04 [end_date_ymd] => 2024-12-21 15:44:04 [RateCDR] => 1 ) [2024-12-21 15: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-21 12:44:04' and `end` < '2024-12-21 15: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-21 15:44:17] Production.INFO: count ==1873 [2024-12-21 15:44:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:44:04 - End Time 2024-12-21 15:44:04 [2024-12-21 15:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071160', 'tblTempUsageDetail_20' ) start [2024-12-21 15:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071160', 'tblTempUsageDetail_20' ) end [2024-12-21 15:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071160', 'tblTempVendorCDR_20' ) start [2024-12-21 15:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071160', 'tblTempVendorCDR_20' ) end [2024-12-21 15:44:17] Production.INFO: ProcessCDR(1,14071160,1,1,2) [2024-12-21 15:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071160', 'tblTempUsageDetail_20' ) start [2024-12-21 15:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071160', 'tblTempUsageDetail_20' ) end [2024-12-21 15:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:44:22] Production.INFO: ==14047== Releasing lock... [2024-12-21 15:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:44:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:45:05 [end_date_ymd] => 2024-12-21 15:45:05 [RateCDR] => 1 ) [2024-12-21 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:45:05' and `end` < '2024-12-21 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:45:17] Production.INFO: count ==1869 [2024-12-21 15:45:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:45:05 - End Time 2024-12-21 15:45:05 [2024-12-21 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071165', 'tblTempUsageDetail_20' ) start [2024-12-21 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071165', 'tblTempUsageDetail_20' ) end [2024-12-21 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071165', 'tblTempVendorCDR_20' ) start [2024-12-21 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071165', 'tblTempVendorCDR_20' ) end [2024-12-21 15:45:18] Production.INFO: ProcessCDR(1,14071165,1,1,2) [2024-12-21 15:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071165', 'tblTempUsageDetail_20' ) start [2024-12-21 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071165', 'tblTempUsageDetail_20' ) end [2024-12-21 15:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:45:22] Production.INFO: ==14119== Releasing lock... [2024-12-21 15:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:45:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 15:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:46:04 [end_date_ymd] => 2024-12-21 15:46:04 [RateCDR] => 1 ) [2024-12-21 15:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 12:46:04' and `end` < '2024-12-21 15:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 15:46:17] Production.INFO: count ==1869 [2024-12-21 15:46:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:46:04 - End Time 2024-12-21 15:46:04 [2024-12-21 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071170', 'tblTempUsageDetail_20' ) start [2024-12-21 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071170', 'tblTempUsageDetail_20' ) end [2024-12-21 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071170', 'tblTempVendorCDR_20' ) start [2024-12-21 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071170', 'tblTempVendorCDR_20' ) end [2024-12-21 15:46:18] Production.INFO: ProcessCDR(1,14071170,1,1,2) [2024-12-21 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071170', 'tblTempUsageDetail_20' ) start [2024-12-21 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071170', 'tblTempUsageDetail_20' ) end [2024-12-21 15:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:46:22] Production.INFO: ==14189== Releasing lock... [2024-12-21 15:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:46:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 15:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:47:04 [end_date_ymd] => 2024-12-21 15:47:04 [RateCDR] => 1 ) [2024-12-21 15: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-21 12:47:04' and `end` < '2024-12-21 15: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-21 15:47:17] Production.INFO: count ==1836 [2024-12-21 15:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:47:04 - End Time 2024-12-21 15:47:04 [2024-12-21 15:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071175', 'tblTempUsageDetail_20' ) start [2024-12-21 15:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071175', 'tblTempUsageDetail_20' ) end [2024-12-21 15:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071175', 'tblTempVendorCDR_20' ) start [2024-12-21 15:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071175', 'tblTempVendorCDR_20' ) end [2024-12-21 15:47:17] Production.INFO: ProcessCDR(1,14071175,1,1,2) [2024-12-21 15:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071175', 'tblTempUsageDetail_20' ) start [2024-12-21 15:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071175', 'tblTempUsageDetail_20' ) end [2024-12-21 15:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:47:20] Production.INFO: ==14261== Releasing lock... [2024-12-21 15:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:47:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:48:05 [end_date_ymd] => 2024-12-21 15:48:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:48:05' and `end` < '2024-12-21 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-21 15:48:18] Production.INFO: count ==1835 [2024-12-21 15:48:19] Production.ERROR: pbx CDR StartTime 2024-12-21 12:48:05 - End Time 2024-12-21 15:48:05 [2024-12-21 15:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071180', 'tblTempUsageDetail_20' ) start [2024-12-21 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071180', 'tblTempUsageDetail_20' ) end [2024-12-21 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071180', 'tblTempVendorCDR_20' ) start [2024-12-21 15:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071180', 'tblTempVendorCDR_20' ) end [2024-12-21 15:48:19] Production.INFO: ProcessCDR(1,14071180,1,1,2) [2024-12-21 15:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071180', 'tblTempUsageDetail_20' ) start [2024-12-21 15:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071180', 'tblTempUsageDetail_20' ) end [2024-12-21 15:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:48:23] Production.INFO: ==14331== Releasing lock... [2024-12-21 15:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:48:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:49:04 [end_date_ymd] => 2024-12-21 15:49:04 [RateCDR] => 1 ) [2024-12-21 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-21 12:49:04' and `end` < '2024-12-21 15: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-21 15:49:18] Production.INFO: count ==1835 [2024-12-21 15:49:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:49:04 - End Time 2024-12-21 15:49:04 [2024-12-21 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071185', 'tblTempUsageDetail_20' ) start [2024-12-21 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071185', 'tblTempUsageDetail_20' ) end [2024-12-21 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071185', 'tblTempVendorCDR_20' ) start [2024-12-21 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071185', 'tblTempVendorCDR_20' ) end [2024-12-21 15:49:18] Production.INFO: ProcessCDR(1,14071185,1,1,2) [2024-12-21 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071185', 'tblTempUsageDetail_20' ) start [2024-12-21 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071185', 'tblTempUsageDetail_20' ) end [2024-12-21 15:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:49:23] Production.INFO: ==14401== Releasing lock... [2024-12-21 15:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:49:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:50:05 [end_date_ymd] => 2024-12-21 15:50:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:50:05' and `end` < '2024-12-21 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-21 15:50:18] Production.INFO: count ==1824 [2024-12-21 15:50:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:50:05 - End Time 2024-12-21 15:50:05 [2024-12-21 15:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071191', 'tblTempUsageDetail_20' ) start [2024-12-21 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071191', 'tblTempUsageDetail_20' ) end [2024-12-21 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071191', 'tblTempVendorCDR_20' ) start [2024-12-21 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071191', 'tblTempVendorCDR_20' ) end [2024-12-21 15:50:18] Production.INFO: ProcessCDR(1,14071191,1,1,2) [2024-12-21 15:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071191', 'tblTempUsageDetail_20' ) start [2024-12-21 15:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071191', 'tblTempUsageDetail_20' ) end [2024-12-21 15:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:50:21] Production.INFO: ==14477== Releasing lock... [2024-12-21 15:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:50:21] Production.INFO: 42 MB #Memory Used# [2024-12-21 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:51:04 [end_date_ymd] => 2024-12-21 15:51:04 [RateCDR] => 1 ) [2024-12-21 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-21 12:51:04' and `end` < '2024-12-21 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-21 15:51:17] Production.INFO: count ==1779 [2024-12-21 15:51:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:51:04 - End Time 2024-12-21 15:51:04 [2024-12-21 15:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071196', 'tblTempUsageDetail_20' ) start [2024-12-21 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071196', 'tblTempUsageDetail_20' ) end [2024-12-21 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071196', 'tblTempVendorCDR_20' ) start [2024-12-21 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071196', 'tblTempVendorCDR_20' ) end [2024-12-21 15:51:18] Production.INFO: ProcessCDR(1,14071196,1,1,2) [2024-12-21 15:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071196', 'tblTempUsageDetail_20' ) start [2024-12-21 15:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071196', 'tblTempUsageDetail_20' ) end [2024-12-21 15:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:51:21] Production.INFO: ==14552== Releasing lock... [2024-12-21 15:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:51:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 15:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:52:04 [end_date_ymd] => 2024-12-21 15:52:04 [RateCDR] => 1 ) [2024-12-21 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-21 12:52:04' and `end` < '2024-12-21 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-21 15:52:18] Production.INFO: count ==1783 [2024-12-21 15:52:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:52:04 - End Time 2024-12-21 15:52:04 [2024-12-21 15:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071201', 'tblTempUsageDetail_20' ) start [2024-12-21 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071201', 'tblTempUsageDetail_20' ) end [2024-12-21 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071201', 'tblTempVendorCDR_20' ) start [2024-12-21 15:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071201', 'tblTempVendorCDR_20' ) end [2024-12-21 15:52:18] Production.INFO: ProcessCDR(1,14071201,1,1,2) [2024-12-21 15:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071201', 'tblTempUsageDetail_20' ) start [2024-12-21 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071201', 'tblTempUsageDetail_20' ) end [2024-12-21 15:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:52:21] Production.INFO: ==14627== Releasing lock... [2024-12-21 15:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:52:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:53:05 [end_date_ymd] => 2024-12-21 15:53:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:53:05' and `end` < '2024-12-21 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-21 15:53:18] Production.INFO: count ==1790 [2024-12-21 15:53:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:53:05 - End Time 2024-12-21 15:53:05 [2024-12-21 15:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071206', 'tblTempUsageDetail_20' ) start [2024-12-21 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071206', 'tblTempUsageDetail_20' ) end [2024-12-21 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071206', 'tblTempVendorCDR_20' ) start [2024-12-21 15:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071206', 'tblTempVendorCDR_20' ) end [2024-12-21 15:53:18] Production.INFO: ProcessCDR(1,14071206,1,1,2) [2024-12-21 15:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071206', 'tblTempUsageDetail_20' ) start [2024-12-21 15:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071206', 'tblTempUsageDetail_20' ) end [2024-12-21 15:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:53:23] Production.INFO: ==14698== Releasing lock... [2024-12-21 15:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:53:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 15:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:54:04 [end_date_ymd] => 2024-12-21 15:54:04 [RateCDR] => 1 ) [2024-12-21 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-21 12:54:04' and `end` < '2024-12-21 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-21 15:54:17] Production.INFO: count ==1786 [2024-12-21 15:54:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:54:04 - End Time 2024-12-21 15:54:04 [2024-12-21 15:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071211', 'tblTempUsageDetail_20' ) start [2024-12-21 15:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071211', 'tblTempUsageDetail_20' ) end [2024-12-21 15:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071211', 'tblTempVendorCDR_20' ) start [2024-12-21 15:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071211', 'tblTempVendorCDR_20' ) end [2024-12-21 15:54:17] Production.INFO: ProcessCDR(1,14071211,1,1,2) [2024-12-21 15:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071211', 'tblTempUsageDetail_20' ) start [2024-12-21 15:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071211', 'tblTempUsageDetail_20' ) end [2024-12-21 15:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:54:20] Production.INFO: ==14768== Releasing lock... [2024-12-21 15:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:54:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:55:05 [end_date_ymd] => 2024-12-21 15:55:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:55:05' and `end` < '2024-12-21 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-21 15:55:17] Production.INFO: count ==1789 [2024-12-21 15:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:55:05 - End Time 2024-12-21 15:55:05 [2024-12-21 15:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071216', 'tblTempUsageDetail_20' ) start [2024-12-21 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071216', 'tblTempUsageDetail_20' ) end [2024-12-21 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071216', 'tblTempVendorCDR_20' ) start [2024-12-21 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071216', 'tblTempVendorCDR_20' ) end [2024-12-21 15:55:17] Production.INFO: ProcessCDR(1,14071216,1,1,2) [2024-12-21 15:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071216', 'tblTempUsageDetail_20' ) start [2024-12-21 15:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071216', 'tblTempUsageDetail_20' ) end [2024-12-21 15:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:55:22] Production.INFO: ==14838== Releasing lock... [2024-12-21 15:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:55:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 15:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:56:04 [end_date_ymd] => 2024-12-21 15:56:04 [RateCDR] => 1 ) [2024-12-21 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-21 12:56:04' and `end` < '2024-12-21 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-21 15:56:16] Production.INFO: count ==1780 [2024-12-21 15:56:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:56:04 - End Time 2024-12-21 15:56:04 [2024-12-21 15:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071221', 'tblTempUsageDetail_20' ) start [2024-12-21 15:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071221', 'tblTempUsageDetail_20' ) end [2024-12-21 15:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071221', 'tblTempVendorCDR_20' ) start [2024-12-21 15:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071221', 'tblTempVendorCDR_20' ) end [2024-12-21 15:56:17] Production.INFO: ProcessCDR(1,14071221,1,1,2) [2024-12-21 15:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071221', 'tblTempUsageDetail_20' ) start [2024-12-21 15:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071221', 'tblTempUsageDetail_20' ) end [2024-12-21 15:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:56:20] Production.INFO: ==14908== Releasing lock... [2024-12-21 15:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:56:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:57:05 [end_date_ymd] => 2024-12-21 15:57:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:57:05' and `end` < '2024-12-21 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-21 15:57:17] Production.INFO: count ==1780 [2024-12-21 15:57:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:57:05 - End Time 2024-12-21 15:57:05 [2024-12-21 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071226', 'tblTempUsageDetail_20' ) start [2024-12-21 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071226', 'tblTempUsageDetail_20' ) end [2024-12-21 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071226', 'tblTempVendorCDR_20' ) start [2024-12-21 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071226', 'tblTempVendorCDR_20' ) end [2024-12-21 15:57:18] Production.INFO: ProcessCDR(1,14071226,1,1,2) [2024-12-21 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071226', 'tblTempUsageDetail_20' ) start [2024-12-21 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071226', 'tblTempUsageDetail_20' ) end [2024-12-21 15:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:57:21] Production.INFO: ==15021== Releasing lock... [2024-12-21 15:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:57:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:58:05 [end_date_ymd] => 2024-12-21 15:58:05 [RateCDR] => 1 ) [2024-12-21 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-21 12:58:05' and `end` < '2024-12-21 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-21 15:58:18] Production.INFO: count ==1777 [2024-12-21 15:58:18] Production.ERROR: pbx CDR StartTime 2024-12-21 12:58:05 - End Time 2024-12-21 15:58:05 [2024-12-21 15:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071231', 'tblTempUsageDetail_20' ) start [2024-12-21 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071231', 'tblTempUsageDetail_20' ) end [2024-12-21 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071231', 'tblTempVendorCDR_20' ) start [2024-12-21 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071231', 'tblTempVendorCDR_20' ) end [2024-12-21 15:58:18] Production.INFO: ProcessCDR(1,14071231,1,1,2) [2024-12-21 15:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071231', 'tblTempUsageDetail_20' ) start [2024-12-21 15:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071231', 'tblTempUsageDetail_20' ) end [2024-12-21 15:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:58:22] Production.INFO: ==15095== Releasing lock... [2024-12-21 15:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:58:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 15:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 12:59:04 [end_date_ymd] => 2024-12-21 15:59:04 [RateCDR] => 1 ) [2024-12-21 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-21 12:59:04' and `end` < '2024-12-21 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-21 15:59:17] Production.INFO: count ==1781 [2024-12-21 15:59:17] Production.ERROR: pbx CDR StartTime 2024-12-21 12:59:04 - End Time 2024-12-21 15:59:04 [2024-12-21 15:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071236', 'tblTempUsageDetail_20' ) start [2024-12-21 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071236', 'tblTempUsageDetail_20' ) end [2024-12-21 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071236', 'tblTempVendorCDR_20' ) start [2024-12-21 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071236', 'tblTempVendorCDR_20' ) end [2024-12-21 15:59:17] Production.INFO: ProcessCDR(1,14071236,1,1,2) [2024-12-21 15:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 15:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 15:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071236', 'tblTempUsageDetail_20' ) start [2024-12-21 15:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071236', 'tblTempUsageDetail_20' ) end [2024-12-21 15:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 15:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 15:59:20] Production.INFO: ==15165== Releasing lock... [2024-12-21 15:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 15:59:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:00:05 [end_date_ymd] => 2024-12-21 16:00:05 [RateCDR] => 1 ) [2024-12-21 16:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:00:05' and `end` < '2024-12-21 16:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:00:18] Production.INFO: count ==1777 [2024-12-21 16:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:00:05 - End Time 2024-12-21 16:00:05 [2024-12-21 16:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071241', 'tblTempUsageDetail_20' ) start [2024-12-21 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071241', 'tblTempUsageDetail_20' ) end [2024-12-21 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071241', 'tblTempVendorCDR_20' ) start [2024-12-21 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071241', 'tblTempVendorCDR_20' ) end [2024-12-21 16:00:18] Production.INFO: ProcessCDR(1,14071241,1,1,2) [2024-12-21 16:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071241', 'tblTempUsageDetail_20' ) start [2024-12-21 16:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071241', 'tblTempUsageDetail_20' ) end [2024-12-21 16:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:00:23] Production.INFO: ==15237== Releasing lock... [2024-12-21 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:00:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 16:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:01:04 [end_date_ymd] => 2024-12-21 16:01:04 [RateCDR] => 1 ) [2024-12-21 16: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-21 13:01:04' and `end` < '2024-12-21 16: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-21 16:01:17] Production.INFO: count ==1772 [2024-12-21 16:01:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:01:04 - End Time 2024-12-21 16:01:04 [2024-12-21 16:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071247', 'tblTempUsageDetail_20' ) start [2024-12-21 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071247', 'tblTempUsageDetail_20' ) end [2024-12-21 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071247', 'tblTempVendorCDR_20' ) start [2024-12-21 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071247', 'tblTempVendorCDR_20' ) end [2024-12-21 16:01:17] Production.INFO: ProcessCDR(1,14071247,1,1,2) [2024-12-21 16:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071247', 'tblTempUsageDetail_20' ) start [2024-12-21 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071247', 'tblTempUsageDetail_20' ) end [2024-12-21 16:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:01:22] Production.INFO: ==15322== Releasing lock... [2024-12-21 16:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:01:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 16:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:02:04 [end_date_ymd] => 2024-12-21 16:02:04 [RateCDR] => 1 ) [2024-12-21 16: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-21 13:02:04' and `end` < '2024-12-21 16: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-21 16:02:17] Production.INFO: count ==1755 [2024-12-21 16:02:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:02:04 - End Time 2024-12-21 16:02:04 [2024-12-21 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071252', 'tblTempUsageDetail_20' ) start [2024-12-21 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071252', 'tblTempUsageDetail_20' ) end [2024-12-21 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071252', 'tblTempVendorCDR_20' ) start [2024-12-21 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071252', 'tblTempVendorCDR_20' ) end [2024-12-21 16:02:18] Production.INFO: ProcessCDR(1,14071252,1,1,2) [2024-12-21 16:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071252', 'tblTempUsageDetail_20' ) start [2024-12-21 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071252', 'tblTempUsageDetail_20' ) end [2024-12-21 16:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:02:22] Production.INFO: ==15393== Releasing lock... [2024-12-21 16:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:02:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:03:05 [end_date_ymd] => 2024-12-21 16:03:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:03:05' and `end` < '2024-12-21 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-21 16:03:18] Production.INFO: count ==1757 [2024-12-21 16:03:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:03:05 - End Time 2024-12-21 16:03:05 [2024-12-21 16:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071257', 'tblTempUsageDetail_20' ) start [2024-12-21 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071257', 'tblTempUsageDetail_20' ) end [2024-12-21 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071257', 'tblTempVendorCDR_20' ) start [2024-12-21 16:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071257', 'tblTempVendorCDR_20' ) end [2024-12-21 16:03:18] Production.INFO: ProcessCDR(1,14071257,1,1,2) [2024-12-21 16:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071257', 'tblTempUsageDetail_20' ) start [2024-12-21 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071257', 'tblTempUsageDetail_20' ) end [2024-12-21 16:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:03:23] Production.INFO: ==15465== Releasing lock... [2024-12-21 16:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:03:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 16:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:04:04 [end_date_ymd] => 2024-12-21 16:04:04 [RateCDR] => 1 ) [2024-12-21 16: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-21 13:04:04' and `end` < '2024-12-21 16: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-21 16:04:17] Production.INFO: count ==1762 [2024-12-21 16:04:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:04:04 - End Time 2024-12-21 16:04:04 [2024-12-21 16:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071262', 'tblTempUsageDetail_20' ) start [2024-12-21 16:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071262', 'tblTempUsageDetail_20' ) end [2024-12-21 16:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071262', 'tblTempVendorCDR_20' ) start [2024-12-21 16:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071262', 'tblTempVendorCDR_20' ) end [2024-12-21 16:04:17] Production.INFO: ProcessCDR(1,14071262,1,1,2) [2024-12-21 16:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071262', 'tblTempUsageDetail_20' ) start [2024-12-21 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071262', 'tblTempUsageDetail_20' ) end [2024-12-21 16:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:04:22] Production.INFO: ==15540== Releasing lock... [2024-12-21 16:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:04:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:05:05 [end_date_ymd] => 2024-12-21 16:05:05 [RateCDR] => 1 ) [2024-12-21 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:05:05' and `end` < '2024-12-21 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:05:17] Production.INFO: count ==1761 [2024-12-21 16:05:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:05:05 - End Time 2024-12-21 16:05:05 [2024-12-21 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071267', 'tblTempUsageDetail_20' ) start [2024-12-21 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071267', 'tblTempUsageDetail_20' ) end [2024-12-21 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071267', 'tblTempVendorCDR_20' ) start [2024-12-21 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071267', 'tblTempVendorCDR_20' ) end [2024-12-21 16:05:18] Production.INFO: ProcessCDR(1,14071267,1,1,2) [2024-12-21 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071267', 'tblTempUsageDetail_20' ) start [2024-12-21 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071267', 'tblTempUsageDetail_20' ) end [2024-12-21 16:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:05:22] Production.INFO: ==15615== Releasing lock... [2024-12-21 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:05:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 16:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:06:04 [end_date_ymd] => 2024-12-21 16:06:04 [RateCDR] => 1 ) [2024-12-21 16:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:06:04' and `end` < '2024-12-21 16:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:06:17] Production.INFO: count ==1763 [2024-12-21 16:06:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:06:04 - End Time 2024-12-21 16:06:04 [2024-12-21 16:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071272', 'tblTempUsageDetail_20' ) start [2024-12-21 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071272', 'tblTempUsageDetail_20' ) end [2024-12-21 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071272', 'tblTempVendorCDR_20' ) start [2024-12-21 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071272', 'tblTempVendorCDR_20' ) end [2024-12-21 16:06:17] Production.INFO: ProcessCDR(1,14071272,1,1,2) [2024-12-21 16:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071272', 'tblTempUsageDetail_20' ) start [2024-12-21 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071272', 'tblTempUsageDetail_20' ) end [2024-12-21 16:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:06:21] Production.INFO: ==15690== Releasing lock... [2024-12-21 16:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:06:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:07:05 [end_date_ymd] => 2024-12-21 16:07:05 [RateCDR] => 1 ) [2024-12-21 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:07:05' and `end` < '2024-12-21 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:07:18] Production.INFO: count ==1774 [2024-12-21 16:07:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:07:05 - End Time 2024-12-21 16:07:05 [2024-12-21 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071277', 'tblTempUsageDetail_20' ) start [2024-12-21 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071277', 'tblTempUsageDetail_20' ) end [2024-12-21 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071277', 'tblTempVendorCDR_20' ) start [2024-12-21 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071277', 'tblTempVendorCDR_20' ) end [2024-12-21 16:07:18] Production.INFO: ProcessCDR(1,14071277,1,1,2) [2024-12-21 16:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071277', 'tblTempUsageDetail_20' ) start [2024-12-21 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071277', 'tblTempUsageDetail_20' ) end [2024-12-21 16:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:07:23] Production.INFO: ==15760== Releasing lock... [2024-12-21 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:07:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:08:05 [end_date_ymd] => 2024-12-21 16:08:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:08:05' and `end` < '2024-12-21 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-21 16:08:17] Production.INFO: count ==1764 [2024-12-21 16:08:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:08:05 - End Time 2024-12-21 16:08:05 [2024-12-21 16:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071282', 'tblTempUsageDetail_20' ) start [2024-12-21 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071282', 'tblTempUsageDetail_20' ) end [2024-12-21 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071282', 'tblTempVendorCDR_20' ) start [2024-12-21 16:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071282', 'tblTempVendorCDR_20' ) end [2024-12-21 16:08:18] Production.INFO: ProcessCDR(1,14071282,1,1,2) [2024-12-21 16:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071282', 'tblTempUsageDetail_20' ) start [2024-12-21 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071282', 'tblTempUsageDetail_20' ) end [2024-12-21 16:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:08:22] Production.INFO: ==15835== Releasing lock... [2024-12-21 16:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:08:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:09:05 [end_date_ymd] => 2024-12-21 16:09:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:09:05' and `end` < '2024-12-21 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-21 16:09:17] Production.INFO: count ==1766 [2024-12-21 16:09:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:09:05 - End Time 2024-12-21 16:09:05 [2024-12-21 16:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071287', 'tblTempUsageDetail_20' ) start [2024-12-21 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071287', 'tblTempUsageDetail_20' ) end [2024-12-21 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071287', 'tblTempVendorCDR_20' ) start [2024-12-21 16:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071287', 'tblTempVendorCDR_20' ) end [2024-12-21 16:09:17] Production.INFO: ProcessCDR(1,14071287,1,1,2) [2024-12-21 16:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071287', 'tblTempUsageDetail_20' ) start [2024-12-21 16:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071287', 'tblTempUsageDetail_20' ) end [2024-12-21 16:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:09:22] Production.INFO: ==15905== Releasing lock... [2024-12-21 16:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:09:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:10:05 [end_date_ymd] => 2024-12-21 16:10:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:10:05' and `end` < '2024-12-21 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-21 16:10:18] Production.INFO: count ==1754 [2024-12-21 16:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:10:05 - End Time 2024-12-21 16:10:05 [2024-12-21 16:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071292', 'tblTempUsageDetail_20' ) start [2024-12-21 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071292', 'tblTempUsageDetail_20' ) end [2024-12-21 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071292', 'tblTempVendorCDR_20' ) start [2024-12-21 16:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071292', 'tblTempVendorCDR_20' ) end [2024-12-21 16:10:18] Production.INFO: ProcessCDR(1,14071292,1,1,2) [2024-12-21 16:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071292', 'tblTempUsageDetail_20' ) start [2024-12-21 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071292', 'tblTempUsageDetail_20' ) end [2024-12-21 16:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:10:23] Production.INFO: ==15982== Releasing lock... [2024-12-21 16:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:10:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:11:05 [end_date_ymd] => 2024-12-21 16:11:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:11:05' and `end` < '2024-12-21 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-21 16:11:17] Production.INFO: count ==1792 [2024-12-21 16:11:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:11:05 - End Time 2024-12-21 16:11:05 [2024-12-21 16:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071298', 'tblTempUsageDetail_20' ) start [2024-12-21 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071298', 'tblTempUsageDetail_20' ) end [2024-12-21 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071298', 'tblTempVendorCDR_20' ) start [2024-12-21 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071298', 'tblTempVendorCDR_20' ) end [2024-12-21 16:11:18] Production.INFO: ProcessCDR(1,14071298,1,1,2) [2024-12-21 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071298', 'tblTempUsageDetail_20' ) start [2024-12-21 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071298', 'tblTempUsageDetail_20' ) end [2024-12-21 16:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:11:22] Production.INFO: ==16059== Releasing lock... [2024-12-21 16:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:11:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:12:05 [end_date_ymd] => 2024-12-21 16:12:05 [RateCDR] => 1 ) [2024-12-21 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:12:05' and `end` < '2024-12-21 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:12:17] Production.INFO: count ==1792 [2024-12-21 16:12:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:12:05 - End Time 2024-12-21 16:12:05 [2024-12-21 16:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071303', 'tblTempUsageDetail_20' ) start [2024-12-21 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071303', 'tblTempUsageDetail_20' ) end [2024-12-21 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071303', 'tblTempVendorCDR_20' ) start [2024-12-21 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071303', 'tblTempVendorCDR_20' ) end [2024-12-21 16:12:18] Production.INFO: ProcessCDR(1,14071303,1,1,2) [2024-12-21 16:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071303', 'tblTempUsageDetail_20' ) start [2024-12-21 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071303', 'tblTempUsageDetail_20' ) end [2024-12-21 16:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:12:22] Production.INFO: ==16129== Releasing lock... [2024-12-21 16:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:12:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 16:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:13:04 [end_date_ymd] => 2024-12-21 16:13:04 [RateCDR] => 1 ) [2024-12-21 16:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:13:04' and `end` < '2024-12-21 16:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:13:17] Production.INFO: count ==1792 [2024-12-21 16:13:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:13:04 - End Time 2024-12-21 16:13:04 [2024-12-21 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071308', 'tblTempUsageDetail_20' ) start [2024-12-21 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071308', 'tblTempUsageDetail_20' ) end [2024-12-21 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071308', 'tblTempVendorCDR_20' ) start [2024-12-21 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071308', 'tblTempVendorCDR_20' ) end [2024-12-21 16:13:18] Production.INFO: ProcessCDR(1,14071308,1,1,2) [2024-12-21 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071308', 'tblTempUsageDetail_20' ) start [2024-12-21 16:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071308', 'tblTempUsageDetail_20' ) end [2024-12-21 16:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:13:22] Production.INFO: ==16239== Releasing lock... [2024-12-21 16:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:13:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:14:05 [end_date_ymd] => 2024-12-21 16:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:14:05' and `end` < '2024-12-21 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-21 16:14:18] Production.INFO: count ==1789 [2024-12-21 16:14:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:14:05 - End Time 2024-12-21 16:14:05 [2024-12-21 16:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071313', 'tblTempUsageDetail_20' ) start [2024-12-21 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071313', 'tblTempUsageDetail_20' ) end [2024-12-21 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071313', 'tblTempVendorCDR_20' ) start [2024-12-21 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071313', 'tblTempVendorCDR_20' ) end [2024-12-21 16:14:18] Production.INFO: ProcessCDR(1,14071313,1,1,2) [2024-12-21 16:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071313', 'tblTempUsageDetail_20' ) start [2024-12-21 16:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071313', 'tblTempUsageDetail_20' ) end [2024-12-21 16:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:14:23] Production.INFO: ==16310== Releasing lock... [2024-12-21 16:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:14:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 16:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:15:04 [end_date_ymd] => 2024-12-21 16:15:04 [RateCDR] => 1 ) [2024-12-21 16:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:15:04' and `end` < '2024-12-21 16:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:15:16] Production.INFO: count ==1790 [2024-12-21 16:15:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:15:04 - End Time 2024-12-21 16:15:04 [2024-12-21 16:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071318', 'tblTempUsageDetail_20' ) start [2024-12-21 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071318', 'tblTempUsageDetail_20' ) end [2024-12-21 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071318', 'tblTempVendorCDR_20' ) start [2024-12-21 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071318', 'tblTempVendorCDR_20' ) end [2024-12-21 16:15:17] Production.INFO: ProcessCDR(1,14071318,1,1,2) [2024-12-21 16:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071318', 'tblTempUsageDetail_20' ) start [2024-12-21 16:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071318', 'tblTempUsageDetail_20' ) end [2024-12-21 16:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:15:22] Production.INFO: ==16382== Releasing lock... [2024-12-21 16:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:15:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:16:05 [end_date_ymd] => 2024-12-21 16:16:05 [RateCDR] => 1 ) [2024-12-21 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:16:05' and `end` < '2024-12-21 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:16:18] Production.INFO: count ==1789 [2024-12-21 16:16:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:16:05 - End Time 2024-12-21 16:16:05 [2024-12-21 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071323', 'tblTempUsageDetail_20' ) start [2024-12-21 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071323', 'tblTempUsageDetail_20' ) end [2024-12-21 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071323', 'tblTempVendorCDR_20' ) start [2024-12-21 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071323', 'tblTempVendorCDR_20' ) end [2024-12-21 16:16:18] Production.INFO: ProcessCDR(1,14071323,1,1,2) [2024-12-21 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071323', 'tblTempUsageDetail_20' ) start [2024-12-21 16:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071323', 'tblTempUsageDetail_20' ) end [2024-12-21 16:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:16:23] Production.INFO: ==16454== Releasing lock... [2024-12-21 16:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:16:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 16:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:17:04 [end_date_ymd] => 2024-12-21 16:17:04 [RateCDR] => 1 ) [2024-12-21 16:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:17:04' and `end` < '2024-12-21 16:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:17:17] Production.INFO: count ==1790 [2024-12-21 16:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:17:04 - End Time 2024-12-21 16:17:04 [2024-12-21 16:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071328', 'tblTempUsageDetail_20' ) start [2024-12-21 16:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071328', 'tblTempUsageDetail_20' ) end [2024-12-21 16:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071328', 'tblTempVendorCDR_20' ) start [2024-12-21 16:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071328', 'tblTempVendorCDR_20' ) end [2024-12-21 16:17:17] Production.INFO: ProcessCDR(1,14071328,1,1,2) [2024-12-21 16:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071328', 'tblTempUsageDetail_20' ) start [2024-12-21 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071328', 'tblTempUsageDetail_20' ) end [2024-12-21 16:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:17:22] Production.INFO: ==16536== Releasing lock... [2024-12-21 16:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:17:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 16:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:18:04 [end_date_ymd] => 2024-12-21 16:18:04 [RateCDR] => 1 ) [2024-12-21 16:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:18:04' and `end` < '2024-12-21 16:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:18:17] Production.INFO: count ==1799 [2024-12-21 16:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:18:04 - End Time 2024-12-21 16:18:04 [2024-12-21 16:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071333', 'tblTempUsageDetail_20' ) start [2024-12-21 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071333', 'tblTempUsageDetail_20' ) end [2024-12-21 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071333', 'tblTempVendorCDR_20' ) start [2024-12-21 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071333', 'tblTempVendorCDR_20' ) end [2024-12-21 16:18:17] Production.INFO: ProcessCDR(1,14071333,1,1,2) [2024-12-21 16:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071333', 'tblTempUsageDetail_20' ) start [2024-12-21 16:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071333', 'tblTempUsageDetail_20' ) end [2024-12-21 16:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:18:22] Production.INFO: ==16607== Releasing lock... [2024-12-21 16:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:18:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:19:05 [end_date_ymd] => 2024-12-21 16:19:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:19:05' and `end` < '2024-12-21 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-21 16:19:17] Production.INFO: count ==1801 [2024-12-21 16:19:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:19:05 - End Time 2024-12-21 16:19:05 [2024-12-21 16:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071338', 'tblTempUsageDetail_20' ) start [2024-12-21 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071338', 'tblTempUsageDetail_20' ) end [2024-12-21 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071338', 'tblTempVendorCDR_20' ) start [2024-12-21 16:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071338', 'tblTempVendorCDR_20' ) end [2024-12-21 16:19:18] Production.INFO: ProcessCDR(1,14071338,1,1,2) [2024-12-21 16:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071338', 'tblTempUsageDetail_20' ) start [2024-12-21 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071338', 'tblTempUsageDetail_20' ) end [2024-12-21 16:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:19:22] Production.INFO: ==16677== Releasing lock... [2024-12-21 16:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:19:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:20:05 [end_date_ymd] => 2024-12-21 16:20:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:20:05' and `end` < '2024-12-21 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-21 16:20:20] Production.INFO: count ==1804 [2024-12-21 16:20:21] Production.ERROR: pbx CDR StartTime 2024-12-21 13:20:05 - End Time 2024-12-21 16:20:05 [2024-12-21 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071344', 'tblTempUsageDetail_20' ) start [2024-12-21 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071344', 'tblTempUsageDetail_20' ) end [2024-12-21 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071344', 'tblTempVendorCDR_20' ) start [2024-12-21 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071344', 'tblTempVendorCDR_20' ) end [2024-12-21 16:20:21] Production.INFO: ProcessCDR(1,14071344,1,1,2) [2024-12-21 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071344', 'tblTempUsageDetail_20' ) start [2024-12-21 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071344', 'tblTempUsageDetail_20' ) end [2024-12-21 16:20:25] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:20:25] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:20:25] Production.INFO: ==16749== Releasing lock... [2024-12-21 16:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:20:25] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:21:05 [end_date_ymd] => 2024-12-21 16:21:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:21:05' and `end` < '2024-12-21 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-21 16:21:18] Production.INFO: count ==1836 [2024-12-21 16:21:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:21:05 - End Time 2024-12-21 16:21:05 [2024-12-21 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071349', 'tblTempUsageDetail_20' ) start [2024-12-21 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071349', 'tblTempUsageDetail_20' ) end [2024-12-21 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071349', 'tblTempVendorCDR_20' ) start [2024-12-21 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071349', 'tblTempVendorCDR_20' ) end [2024-12-21 16:21:18] Production.INFO: ProcessCDR(1,14071349,1,1,2) [2024-12-21 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071349', 'tblTempUsageDetail_20' ) start [2024-12-21 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071349', 'tblTempUsageDetail_20' ) end [2024-12-21 16:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:21:23] Production.INFO: ==16826== Releasing lock... [2024-12-21 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:21:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:22:05 [end_date_ymd] => 2024-12-21 16:22:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:22:05' and `end` < '2024-12-21 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-21 16:22:18] Production.INFO: count ==1839 [2024-12-21 16:22:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:22:05 - End Time 2024-12-21 16:22:05 [2024-12-21 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071354', 'tblTempUsageDetail_20' ) start [2024-12-21 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071354', 'tblTempUsageDetail_20' ) end [2024-12-21 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071354', 'tblTempVendorCDR_20' ) start [2024-12-21 16:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071354', 'tblTempVendorCDR_20' ) end [2024-12-21 16:22:19] Production.INFO: ProcessCDR(1,14071354,1,1,2) [2024-12-21 16:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071354', 'tblTempUsageDetail_20' ) start [2024-12-21 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071354', 'tblTempUsageDetail_20' ) end [2024-12-21 16:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:22:23] Production.INFO: ==16896== Releasing lock... [2024-12-21 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:22:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:23:05 [end_date_ymd] => 2024-12-21 16:23:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:23:05' and `end` < '2024-12-21 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-21 16:23:19] Production.INFO: count ==1837 [2024-12-21 16:23:19] Production.ERROR: pbx CDR StartTime 2024-12-21 13:23:05 - End Time 2024-12-21 16:23:05 [2024-12-21 16:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071359', 'tblTempUsageDetail_20' ) start [2024-12-21 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071359', 'tblTempUsageDetail_20' ) end [2024-12-21 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071359', 'tblTempVendorCDR_20' ) start [2024-12-21 16:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071359', 'tblTempVendorCDR_20' ) end [2024-12-21 16:23:19] Production.INFO: ProcessCDR(1,14071359,1,1,2) [2024-12-21 16:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071359', 'tblTempUsageDetail_20' ) start [2024-12-21 16:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071359', 'tblTempUsageDetail_20' ) end [2024-12-21 16:23:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:23:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:23:24] Production.INFO: ==16967== Releasing lock... [2024-12-21 16:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:23:24] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:24:04 [end_date_ymd] => 2024-12-21 16:24:04 [RateCDR] => 1 ) [2024-12-21 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-21 13:24:04' and `end` < '2024-12-21 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-21 16:24:16] Production.INFO: count ==1838 [2024-12-21 16:24:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:24:04 - End Time 2024-12-21 16:24:04 [2024-12-21 16:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071364', 'tblTempUsageDetail_20' ) start [2024-12-21 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071364', 'tblTempUsageDetail_20' ) end [2024-12-21 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071364', 'tblTempVendorCDR_20' ) start [2024-12-21 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071364', 'tblTempVendorCDR_20' ) end [2024-12-21 16:24:17] Production.INFO: ProcessCDR(1,14071364,1,1,2) [2024-12-21 16:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071364', 'tblTempUsageDetail_20' ) start [2024-12-21 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071364', 'tblTempUsageDetail_20' ) end [2024-12-21 16:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:24:22] Production.INFO: ==17037== Releasing lock... [2024-12-21 16:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:24:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:25:05 [end_date_ymd] => 2024-12-21 16:25:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:25:05' and `end` < '2024-12-21 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-21 16:25:17] Production.INFO: count ==1838 [2024-12-21 16:25:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:25:05 - End Time 2024-12-21 16:25:05 [2024-12-21 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071369', 'tblTempUsageDetail_20' ) start [2024-12-21 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071369', 'tblTempUsageDetail_20' ) end [2024-12-21 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071369', 'tblTempVendorCDR_20' ) start [2024-12-21 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071369', 'tblTempVendorCDR_20' ) end [2024-12-21 16:25:18] Production.INFO: ProcessCDR(1,14071369,1,1,2) [2024-12-21 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071369', 'tblTempUsageDetail_20' ) start [2024-12-21 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071369', 'tblTempUsageDetail_20' ) end [2024-12-21 16:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:25:22] Production.INFO: ==17110== Releasing lock... [2024-12-21 16:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:25:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:26:04 [end_date_ymd] => 2024-12-21 16:26:04 [RateCDR] => 1 ) [2024-12-21 16: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-21 13:26:04' and `end` < '2024-12-21 16: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-21 16:26:17] Production.INFO: count ==1844 [2024-12-21 16:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:26:04 - End Time 2024-12-21 16:26:04 [2024-12-21 16:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071374', 'tblTempUsageDetail_20' ) start [2024-12-21 16:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071374', 'tblTempUsageDetail_20' ) end [2024-12-21 16:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071374', 'tblTempVendorCDR_20' ) start [2024-12-21 16:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071374', 'tblTempVendorCDR_20' ) end [2024-12-21 16:26:17] Production.INFO: ProcessCDR(1,14071374,1,1,2) [2024-12-21 16:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071374', 'tblTempUsageDetail_20' ) start [2024-12-21 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071374', 'tblTempUsageDetail_20' ) end [2024-12-21 16:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:26:22] Production.INFO: ==17182== Releasing lock... [2024-12-21 16:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:26:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:27:05 [end_date_ymd] => 2024-12-21 16:27:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:27:05' and `end` < '2024-12-21 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-21 16:27:17] Production.INFO: count ==1843 [2024-12-21 16:27:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:27:05 - End Time 2024-12-21 16:27:05 [2024-12-21 16:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071379', 'tblTempUsageDetail_20' ) start [2024-12-21 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071379', 'tblTempUsageDetail_20' ) end [2024-12-21 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071379', 'tblTempVendorCDR_20' ) start [2024-12-21 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071379', 'tblTempVendorCDR_20' ) end [2024-12-21 16:27:18] Production.INFO: ProcessCDR(1,14071379,1,1,2) [2024-12-21 16:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071379', 'tblTempUsageDetail_20' ) start [2024-12-21 16:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071379', 'tblTempUsageDetail_20' ) end [2024-12-21 16:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:27:22] Production.INFO: ==17255== Releasing lock... [2024-12-21 16:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:27:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:28:05 [end_date_ymd] => 2024-12-21 16:28:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:28:05' and `end` < '2024-12-21 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-21 16:28:17] Production.INFO: count ==1847 [2024-12-21 16:28:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:28:05 - End Time 2024-12-21 16:28:05 [2024-12-21 16:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071384', 'tblTempUsageDetail_20' ) start [2024-12-21 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071384', 'tblTempUsageDetail_20' ) end [2024-12-21 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071384', 'tblTempVendorCDR_20' ) start [2024-12-21 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071384', 'tblTempVendorCDR_20' ) end [2024-12-21 16:28:18] Production.INFO: ProcessCDR(1,14071384,1,1,2) [2024-12-21 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071384', 'tblTempUsageDetail_20' ) start [2024-12-21 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071384', 'tblTempUsageDetail_20' ) end [2024-12-21 16:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:28:22] Production.INFO: ==17325== Releasing lock... [2024-12-21 16:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:28:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:29:05 [end_date_ymd] => 2024-12-21 16:29:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:29:05' and `end` < '2024-12-21 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-21 16:29:19] Production.INFO: count ==1846 [2024-12-21 16:29:19] Production.ERROR: pbx CDR StartTime 2024-12-21 13:29:05 - End Time 2024-12-21 16:29:05 [2024-12-21 16:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071389', 'tblTempUsageDetail_20' ) start [2024-12-21 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071389', 'tblTempUsageDetail_20' ) end [2024-12-21 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071389', 'tblTempVendorCDR_20' ) start [2024-12-21 16:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071389', 'tblTempVendorCDR_20' ) end [2024-12-21 16:29:19] Production.INFO: ProcessCDR(1,14071389,1,1,2) [2024-12-21 16:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071389', 'tblTempUsageDetail_20' ) start [2024-12-21 16:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071389', 'tblTempUsageDetail_20' ) end [2024-12-21 16:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:29:24] Production.INFO: ==17435== Releasing lock... [2024-12-21 16:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:29:24] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:30:05 [end_date_ymd] => 2024-12-21 16:30:05 [RateCDR] => 1 ) [2024-12-21 16:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:30:05' and `end` < '2024-12-21 16:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:30:17] Production.INFO: count ==1850 [2024-12-21 16:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:30:05 - End Time 2024-12-21 16:30:05 [2024-12-21 16:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071395', 'tblTempUsageDetail_20' ) start [2024-12-21 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071395', 'tblTempUsageDetail_20' ) end [2024-12-21 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071395', 'tblTempVendorCDR_20' ) start [2024-12-21 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071395', 'tblTempVendorCDR_20' ) end [2024-12-21 16:30:18] Production.INFO: ProcessCDR(1,14071395,1,1,2) [2024-12-21 16:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071395', 'tblTempUsageDetail_20' ) start [2024-12-21 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071395', 'tblTempUsageDetail_20' ) end [2024-12-21 16:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:30:22] Production.INFO: ==17509== Releasing lock... [2024-12-21 16:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:30:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:31:05 [end_date_ymd] => 2024-12-21 16:31:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:31:05' and `end` < '2024-12-21 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-21 16:31:17] Production.INFO: count ==1882 [2024-12-21 16:31:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:31:05 - End Time 2024-12-21 16:31:05 [2024-12-21 16:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071400', 'tblTempUsageDetail_20' ) start [2024-12-21 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071400', 'tblTempUsageDetail_20' ) end [2024-12-21 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071400', 'tblTempVendorCDR_20' ) start [2024-12-21 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071400', 'tblTempVendorCDR_20' ) end [2024-12-21 16:31:18] Production.INFO: ProcessCDR(1,14071400,1,1,2) [2024-12-21 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071400', 'tblTempUsageDetail_20' ) start [2024-12-21 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071400', 'tblTempUsageDetail_20' ) end [2024-12-21 16:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:31:22] Production.INFO: ==17582== Releasing lock... [2024-12-21 16:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:31:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:32:05 [end_date_ymd] => 2024-12-21 16:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:32:05' and `end` < '2024-12-21 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-21 16:32:17] Production.INFO: count ==1879 [2024-12-21 16:32:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:32:05 - End Time 2024-12-21 16:32:05 [2024-12-21 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071405', 'tblTempUsageDetail_20' ) start [2024-12-21 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071405', 'tblTempUsageDetail_20' ) end [2024-12-21 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071405', 'tblTempVendorCDR_20' ) start [2024-12-21 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071405', 'tblTempVendorCDR_20' ) end [2024-12-21 16:32:18] Production.INFO: ProcessCDR(1,14071405,1,1,2) [2024-12-21 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071405', 'tblTempUsageDetail_20' ) start [2024-12-21 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071405', 'tblTempUsageDetail_20' ) end [2024-12-21 16:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:32:23] Production.INFO: ==17657== Releasing lock... [2024-12-21 16:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:32:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:33:04 [end_date_ymd] => 2024-12-21 16:33:04 [RateCDR] => 1 ) [2024-12-21 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-21 13:33:04' and `end` < '2024-12-21 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-21 16:33:17] Production.INFO: count ==1874 [2024-12-21 16:33:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:33:04 - End Time 2024-12-21 16:33:04 [2024-12-21 16:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071409', 'tblTempUsageDetail_20' ) start [2024-12-21 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071409', 'tblTempUsageDetail_20' ) end [2024-12-21 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071409', 'tblTempVendorCDR_20' ) start [2024-12-21 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071409', 'tblTempVendorCDR_20' ) end [2024-12-21 16:33:17] Production.INFO: ProcessCDR(1,14071409,1,1,2) [2024-12-21 16:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071409', 'tblTempUsageDetail_20' ) start [2024-12-21 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071409', 'tblTempUsageDetail_20' ) end [2024-12-21 16:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:33:22] Production.INFO: ==17727== Releasing lock... [2024-12-21 16:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:33:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:34:05 [end_date_ymd] => 2024-12-21 16:34:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:34:05' and `end` < '2024-12-21 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-21 16:34:18] Production.INFO: count ==1863 [2024-12-21 16:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:34:05 - End Time 2024-12-21 16:34:05 [2024-12-21 16:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071415', 'tblTempUsageDetail_20' ) start [2024-12-21 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071415', 'tblTempUsageDetail_20' ) end [2024-12-21 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071415', 'tblTempVendorCDR_20' ) start [2024-12-21 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071415', 'tblTempVendorCDR_20' ) end [2024-12-21 16:34:18] Production.INFO: ProcessCDR(1,14071415,1,1,2) [2024-12-21 16:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071415', 'tblTempUsageDetail_20' ) start [2024-12-21 16:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071415', 'tblTempUsageDetail_20' ) end [2024-12-21 16:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:34:21] Production.INFO: ==17801== Releasing lock... [2024-12-21 16:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:34:21] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:35:04 [end_date_ymd] => 2024-12-21 16:35:04 [RateCDR] => 1 ) [2024-12-21 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-21 13:35:04' and `end` < '2024-12-21 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-21 16:35:17] Production.INFO: count ==1854 [2024-12-21 16:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:35:04 - End Time 2024-12-21 16:35:04 [2024-12-21 16:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071420', 'tblTempUsageDetail_20' ) start [2024-12-21 16:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071420', 'tblTempUsageDetail_20' ) end [2024-12-21 16:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071420', 'tblTempVendorCDR_20' ) start [2024-12-21 16:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071420', 'tblTempVendorCDR_20' ) end [2024-12-21 16:35:17] Production.INFO: ProcessCDR(1,14071420,1,1,2) [2024-12-21 16:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071420', 'tblTempUsageDetail_20' ) start [2024-12-21 16:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071420', 'tblTempUsageDetail_20' ) end [2024-12-21 16:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:35:20] Production.INFO: ==17873== Releasing lock... [2024-12-21 16:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:35:20] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:36:05 [end_date_ymd] => 2024-12-21 16:36:05 [RateCDR] => 1 ) [2024-12-21 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:36:05' and `end` < '2024-12-21 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:36:17] Production.INFO: count ==1847 [2024-12-21 16:36:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:36:05 - End Time 2024-12-21 16:36:05 [2024-12-21 16:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071425', 'tblTempUsageDetail_20' ) start [2024-12-21 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071425', 'tblTempUsageDetail_20' ) end [2024-12-21 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071425', 'tblTempVendorCDR_20' ) start [2024-12-21 16:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071425', 'tblTempVendorCDR_20' ) end [2024-12-21 16:36:18] Production.INFO: ProcessCDR(1,14071425,1,1,2) [2024-12-21 16:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071425', 'tblTempUsageDetail_20' ) start [2024-12-21 16:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071425', 'tblTempUsageDetail_20' ) end [2024-12-21 16:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:36:23] Production.INFO: ==17944== Releasing lock... [2024-12-21 16:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:36:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:37:05 [end_date_ymd] => 2024-12-21 16:37:05 [RateCDR] => 1 ) [2024-12-21 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:37:05' and `end` < '2024-12-21 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:37:17] Production.INFO: count ==1847 [2024-12-21 16:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:37:05 - End Time 2024-12-21 16:37:05 [2024-12-21 16:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071430', 'tblTempUsageDetail_20' ) start [2024-12-21 16:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071430', 'tblTempUsageDetail_20' ) end [2024-12-21 16:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071430', 'tblTempVendorCDR_20' ) start [2024-12-21 16:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071430', 'tblTempVendorCDR_20' ) end [2024-12-21 16:37:17] Production.INFO: ProcessCDR(1,14071430,1,1,2) [2024-12-21 16:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071430', 'tblTempUsageDetail_20' ) start [2024-12-21 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071430', 'tblTempUsageDetail_20' ) end [2024-12-21 16:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:37:22] Production.INFO: ==18017== Releasing lock... [2024-12-21 16:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:37:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:38:05 [end_date_ymd] => 2024-12-21 16:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:38:05' and `end` < '2024-12-21 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-21 16:38:17] Production.INFO: count ==1850 [2024-12-21 16:38:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:38:05 - End Time 2024-12-21 16:38:05 [2024-12-21 16:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071435', 'tblTempUsageDetail_20' ) start [2024-12-21 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071435', 'tblTempUsageDetail_20' ) end [2024-12-21 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071435', 'tblTempVendorCDR_20' ) start [2024-12-21 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071435', 'tblTempVendorCDR_20' ) end [2024-12-21 16:38:18] Production.INFO: ProcessCDR(1,14071435,1,1,2) [2024-12-21 16:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071435', 'tblTempUsageDetail_20' ) start [2024-12-21 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071435', 'tblTempUsageDetail_20' ) end [2024-12-21 16:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:38:22] Production.INFO: ==18091== Releasing lock... [2024-12-21 16:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:38:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:39:04 [end_date_ymd] => 2024-12-21 16:39:04 [RateCDR] => 1 ) [2024-12-21 16:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:39:04' and `end` < '2024-12-21 16:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:39:17] Production.INFO: count ==1857 [2024-12-21 16:39:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:39:04 - End Time 2024-12-21 16:39:04 [2024-12-21 16:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071440', 'tblTempUsageDetail_20' ) start [2024-12-21 16:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071440', 'tblTempUsageDetail_20' ) end [2024-12-21 16:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071440', 'tblTempVendorCDR_20' ) start [2024-12-21 16:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071440', 'tblTempVendorCDR_20' ) end [2024-12-21 16:39:17] Production.INFO: ProcessCDR(1,14071440,1,1,2) [2024-12-21 16:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071440', 'tblTempUsageDetail_20' ) start [2024-12-21 16:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071440', 'tblTempUsageDetail_20' ) end [2024-12-21 16:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:39:21] Production.INFO: ==18163== Releasing lock... [2024-12-21 16:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:39:21] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:40:06 [end_date_ymd] => 2024-12-21 16:40:06 [RateCDR] => 1 ) [2024-12-21 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-21 13:40:06' and `end` < '2024-12-21 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:40:18] Production.INFO: count ==1845 [2024-12-21 16:40:19] Production.ERROR: pbx CDR StartTime 2024-12-21 13:40:06 - End Time 2024-12-21 16:40:06 [2024-12-21 16:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071446', 'tblTempUsageDetail_20' ) start [2024-12-21 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071446', 'tblTempUsageDetail_20' ) end [2024-12-21 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071446', 'tblTempVendorCDR_20' ) start [2024-12-21 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071446', 'tblTempVendorCDR_20' ) end [2024-12-21 16:40:19] Production.INFO: ProcessCDR(1,14071446,1,1,2) [2024-12-21 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071446', 'tblTempUsageDetail_20' ) start [2024-12-21 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071446', 'tblTempUsageDetail_20' ) end [2024-12-21 16:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:40:22] Production.INFO: ==18235== Releasing lock... [2024-12-21 16:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:40:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:41:04 [end_date_ymd] => 2024-12-21 16:41:04 [RateCDR] => 1 ) [2024-12-21 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-21 13:41:04' and `end` < '2024-12-21 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-21 16:41:17] Production.INFO: count ==1841 [2024-12-21 16:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:41:04 - End Time 2024-12-21 16:41:04 [2024-12-21 16:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071451', 'tblTempUsageDetail_20' ) start [2024-12-21 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071451', 'tblTempUsageDetail_20' ) end [2024-12-21 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071451', 'tblTempVendorCDR_20' ) start [2024-12-21 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071451', 'tblTempVendorCDR_20' ) end [2024-12-21 16:41:17] Production.INFO: ProcessCDR(1,14071451,1,1,2) [2024-12-21 16:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071451', 'tblTempUsageDetail_20' ) start [2024-12-21 16:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071451', 'tblTempUsageDetail_20' ) end [2024-12-21 16:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:41:20] Production.INFO: ==18308== Releasing lock... [2024-12-21 16:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:41:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:42:05 [end_date_ymd] => 2024-12-21 16:42:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:42:05' and `end` < '2024-12-21 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-21 16:42:18] Production.INFO: count ==1874 [2024-12-21 16:42:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:42:05 - End Time 2024-12-21 16:42:05 [2024-12-21 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071456', 'tblTempUsageDetail_20' ) start [2024-12-21 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071456', 'tblTempUsageDetail_20' ) end [2024-12-21 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071456', 'tblTempVendorCDR_20' ) start [2024-12-21 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071456', 'tblTempVendorCDR_20' ) end [2024-12-21 16:42:18] Production.INFO: ProcessCDR(1,14071456,1,1,2) [2024-12-21 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071456', 'tblTempUsageDetail_20' ) start [2024-12-21 16:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071456', 'tblTempUsageDetail_20' ) end [2024-12-21 16:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:42:23] Production.INFO: ==18379== Releasing lock... [2024-12-21 16:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:42:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:43:04 [end_date_ymd] => 2024-12-21 16:43:04 [RateCDR] => 1 ) [2024-12-21 16: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-21 13:43:04' and `end` < '2024-12-21 16: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-21 16:43:16] Production.INFO: count ==1882 [2024-12-21 16:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:43:04 - End Time 2024-12-21 16:43:04 [2024-12-21 16:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071461', 'tblTempUsageDetail_20' ) start [2024-12-21 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071461', 'tblTempUsageDetail_20' ) end [2024-12-21 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071461', 'tblTempVendorCDR_20' ) start [2024-12-21 16:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071461', 'tblTempVendorCDR_20' ) end [2024-12-21 16:43:17] Production.INFO: ProcessCDR(1,14071461,1,1,2) [2024-12-21 16:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071461', 'tblTempUsageDetail_20' ) start [2024-12-21 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071461', 'tblTempUsageDetail_20' ) end [2024-12-21 16:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:43:21] Production.INFO: ==18450== Releasing lock... [2024-12-21 16:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:43:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:44:04 [end_date_ymd] => 2024-12-21 16:44:04 [RateCDR] => 1 ) [2024-12-21 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-21 13:44:04' and `end` < '2024-12-21 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-21 16:44:18] Production.INFO: count ==1890 [2024-12-21 16:44:19] Production.ERROR: pbx CDR StartTime 2024-12-21 13:44:04 - End Time 2024-12-21 16:44:04 [2024-12-21 16:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071466', 'tblTempUsageDetail_20' ) start [2024-12-21 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071466', 'tblTempUsageDetail_20' ) end [2024-12-21 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071466', 'tblTempVendorCDR_20' ) start [2024-12-21 16:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071466', 'tblTempVendorCDR_20' ) end [2024-12-21 16:44:19] Production.INFO: ProcessCDR(1,14071466,1,1,2) [2024-12-21 16:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071466', 'tblTempUsageDetail_20' ) start [2024-12-21 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071466', 'tblTempUsageDetail_20' ) end [2024-12-21 16:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:44:23] Production.INFO: ==18572== Releasing lock... [2024-12-21 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:44:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:45:05 [end_date_ymd] => 2024-12-21 16:45:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:45:05' and `end` < '2024-12-21 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-21 16:45:17] Production.INFO: count ==1905 [2024-12-21 16:45:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:45:05 - End Time 2024-12-21 16:45:05 [2024-12-21 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071471', 'tblTempUsageDetail_20' ) start [2024-12-21 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071471', 'tblTempUsageDetail_20' ) end [2024-12-21 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071471', 'tblTempVendorCDR_20' ) start [2024-12-21 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071471', 'tblTempVendorCDR_20' ) end [2024-12-21 16:45:18] Production.INFO: ProcessCDR(1,14071471,1,1,2) [2024-12-21 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071471', 'tblTempUsageDetail_20' ) start [2024-12-21 16:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071471', 'tblTempUsageDetail_20' ) end [2024-12-21 16:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:45:22] Production.INFO: ==18652== Releasing lock... [2024-12-21 16:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:45:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:46:04 [end_date_ymd] => 2024-12-21 16:46:04 [RateCDR] => 1 ) [2024-12-21 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-21 13:46:04' and `end` < '2024-12-21 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-21 16:46:16] Production.INFO: count ==1915 [2024-12-21 16:46:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:46:04 - End Time 2024-12-21 16:46:04 [2024-12-21 16:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071476', 'tblTempUsageDetail_20' ) start [2024-12-21 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071476', 'tblTempUsageDetail_20' ) end [2024-12-21 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071476', 'tblTempVendorCDR_20' ) start [2024-12-21 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071476', 'tblTempVendorCDR_20' ) end [2024-12-21 16:46:17] Production.INFO: ProcessCDR(1,14071476,1,1,2) [2024-12-21 16:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071476', 'tblTempUsageDetail_20' ) start [2024-12-21 16:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071476', 'tblTempUsageDetail_20' ) end [2024-12-21 16:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:46:21] Production.INFO: ==18731== Releasing lock... [2024-12-21 16:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:46:21] Production.INFO: 42.75 MB #Memory Used# [2024-12-21 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:47:05 [end_date_ymd] => 2024-12-21 16:47:05 [RateCDR] => 1 ) [2024-12-21 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:47:05' and `end` < '2024-12-21 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:47:17] Production.INFO: count ==1904 [2024-12-21 16:47:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:47:05 - End Time 2024-12-21 16:47:05 [2024-12-21 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071481', 'tblTempUsageDetail_20' ) start [2024-12-21 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071481', 'tblTempUsageDetail_20' ) end [2024-12-21 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071481', 'tblTempVendorCDR_20' ) start [2024-12-21 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071481', 'tblTempVendorCDR_20' ) end [2024-12-21 16:47:18] Production.INFO: ProcessCDR(1,14071481,1,1,2) [2024-12-21 16:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071481', 'tblTempUsageDetail_20' ) start [2024-12-21 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071481', 'tblTempUsageDetail_20' ) end [2024-12-21 16:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:47:22] Production.INFO: ==18811== Releasing lock... [2024-12-21 16:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:47:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:48:05 [end_date_ymd] => 2024-12-21 16:48:05 [RateCDR] => 1 ) [2024-12-21 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:48:05' and `end` < '2024-12-21 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:48:18] Production.INFO: count ==1896 [2024-12-21 16:48:19] Production.ERROR: pbx CDR StartTime 2024-12-21 13:48:05 - End Time 2024-12-21 16:48:05 [2024-12-21 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071486', 'tblTempUsageDetail_20' ) start [2024-12-21 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071486', 'tblTempUsageDetail_20' ) end [2024-12-21 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071486', 'tblTempVendorCDR_20' ) start [2024-12-21 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071486', 'tblTempVendorCDR_20' ) end [2024-12-21 16:48:19] Production.INFO: ProcessCDR(1,14071486,1,1,2) [2024-12-21 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071486', 'tblTempUsageDetail_20' ) start [2024-12-21 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071486', 'tblTempUsageDetail_20' ) end [2024-12-21 16:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:48:23] Production.INFO: ==18893== Releasing lock... [2024-12-21 16:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:48:23] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:49:05 [end_date_ymd] => 2024-12-21 16:49:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:49:05' and `end` < '2024-12-21 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-21 16:49:17] Production.INFO: count ==1898 [2024-12-21 16:49:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:49:05 - End Time 2024-12-21 16:49:05 [2024-12-21 16:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071491', 'tblTempUsageDetail_20' ) start [2024-12-21 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071491', 'tblTempUsageDetail_20' ) end [2024-12-21 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071491', 'tblTempVendorCDR_20' ) start [2024-12-21 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071491', 'tblTempVendorCDR_20' ) end [2024-12-21 16:49:18] Production.INFO: ProcessCDR(1,14071491,1,1,2) [2024-12-21 16:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071491', 'tblTempUsageDetail_20' ) start [2024-12-21 16:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071491', 'tblTempUsageDetail_20' ) end [2024-12-21 16:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:49:22] Production.INFO: ==18974== Releasing lock... [2024-12-21 16:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:49:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:50:06 [end_date_ymd] => 2024-12-21 16:50:06 [RateCDR] => 1 ) [2024-12-21 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:50:06' and `end` < '2024-12-21 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:50:18] Production.INFO: count ==1899 [2024-12-21 16:50:19] Production.ERROR: pbx CDR StartTime 2024-12-21 13:50:06 - End Time 2024-12-21 16:50:06 [2024-12-21 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071497', 'tblTempUsageDetail_20' ) start [2024-12-21 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071497', 'tblTempUsageDetail_20' ) end [2024-12-21 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071497', 'tblTempVendorCDR_20' ) start [2024-12-21 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071497', 'tblTempVendorCDR_20' ) end [2024-12-21 16:50:19] Production.INFO: ProcessCDR(1,14071497,1,1,2) [2024-12-21 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071497', 'tblTempUsageDetail_20' ) start [2024-12-21 16:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071497', 'tblTempUsageDetail_20' ) end [2024-12-21 16:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:50:23] Production.INFO: ==19056== Releasing lock... [2024-12-21 16:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:50:23] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:51:05 [end_date_ymd] => 2024-12-21 16:51:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:51:05' and `end` < '2024-12-21 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-21 16:51:18] Production.INFO: count ==1922 [2024-12-21 16:51:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:51:05 - End Time 2024-12-21 16:51:05 [2024-12-21 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071502', 'tblTempUsageDetail_20' ) start [2024-12-21 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071502', 'tblTempUsageDetail_20' ) end [2024-12-21 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071502', 'tblTempVendorCDR_20' ) start [2024-12-21 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071502', 'tblTempVendorCDR_20' ) end [2024-12-21 16:51:18] Production.INFO: ProcessCDR(1,14071502,1,1,2) [2024-12-21 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071502', 'tblTempUsageDetail_20' ) start [2024-12-21 16:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071502', 'tblTempUsageDetail_20' ) end [2024-12-21 16:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:51:21] Production.INFO: ==19136== Releasing lock... [2024-12-21 16:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:51:21] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:52:05 [end_date_ymd] => 2024-12-21 16:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:52:05' and `end` < '2024-12-21 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-21 16:52:19] Production.INFO: count ==1901 [2024-12-21 16:52:19] Production.ERROR: pbx CDR StartTime 2024-12-21 13:52:05 - End Time 2024-12-21 16:52:05 [2024-12-21 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071507', 'tblTempUsageDetail_20' ) start [2024-12-21 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071507', 'tblTempUsageDetail_20' ) end [2024-12-21 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071507', 'tblTempVendorCDR_20' ) start [2024-12-21 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071507', 'tblTempVendorCDR_20' ) end [2024-12-21 16:52:19] Production.INFO: ProcessCDR(1,14071507,1,1,2) [2024-12-21 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071507', 'tblTempUsageDetail_20' ) start [2024-12-21 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071507', 'tblTempUsageDetail_20' ) end [2024-12-21 16:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:52:22] Production.INFO: ==19207== Releasing lock... [2024-12-21 16:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:52:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:53:05 [end_date_ymd] => 2024-12-21 16:53:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:53:05' and `end` < '2024-12-21 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-21 16:53:17] Production.INFO: count ==1900 [2024-12-21 16:53:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:53:05 - End Time 2024-12-21 16:53:05 [2024-12-21 16:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071512', 'tblTempUsageDetail_20' ) start [2024-12-21 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071512', 'tblTempUsageDetail_20' ) end [2024-12-21 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071512', 'tblTempVendorCDR_20' ) start [2024-12-21 16:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071512', 'tblTempVendorCDR_20' ) end [2024-12-21 16:53:17] Production.INFO: ProcessCDR(1,14071512,1,1,2) [2024-12-21 16:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071512', 'tblTempUsageDetail_20' ) start [2024-12-21 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071512', 'tblTempUsageDetail_20' ) end [2024-12-21 16:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:53:22] Production.INFO: ==19276== Releasing lock... [2024-12-21 16:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:53:22] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:54:05 [end_date_ymd] => 2024-12-21 16:54:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:54:05' and `end` < '2024-12-21 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-21 16:54:17] Production.INFO: count ==1887 [2024-12-21 16:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:54:05 - End Time 2024-12-21 16:54:05 [2024-12-21 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071517', 'tblTempUsageDetail_20' ) start [2024-12-21 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071517', 'tblTempUsageDetail_20' ) end [2024-12-21 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071517', 'tblTempVendorCDR_20' ) start [2024-12-21 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071517', 'tblTempVendorCDR_20' ) end [2024-12-21 16:54:18] Production.INFO: ProcessCDR(1,14071517,1,1,2) [2024-12-21 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071517', 'tblTempUsageDetail_20' ) start [2024-12-21 16:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071517', 'tblTempUsageDetail_20' ) end [2024-12-21 16:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:54:21] Production.INFO: ==19350== Releasing lock... [2024-12-21 16:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:54:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 16:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:55:04 [end_date_ymd] => 2024-12-21 16:55:04 [RateCDR] => 1 ) [2024-12-21 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-21 13:55:04' and `end` < '2024-12-21 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-21 16:55:17] Production.INFO: count ==1885 [2024-12-21 16:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:55:04 - End Time 2024-12-21 16:55:04 [2024-12-21 16:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071522', 'tblTempUsageDetail_20' ) start [2024-12-21 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071522', 'tblTempUsageDetail_20' ) end [2024-12-21 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071522', 'tblTempVendorCDR_20' ) start [2024-12-21 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071522', 'tblTempVendorCDR_20' ) end [2024-12-21 16:55:17] Production.INFO: ProcessCDR(1,14071522,1,1,2) [2024-12-21 16:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071522', 'tblTempUsageDetail_20' ) start [2024-12-21 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071522', 'tblTempUsageDetail_20' ) end [2024-12-21 16:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:55:22] Production.INFO: ==19423== Releasing lock... [2024-12-21 16:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:55:22] Production.INFO: 42.5 MB #Memory Used# [2024-12-21 16:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:56:04 [end_date_ymd] => 2024-12-21 16:56:04 [RateCDR] => 1 ) [2024-12-21 16:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:56:04' and `end` < '2024-12-21 16:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:56:17] Production.INFO: count ==1854 [2024-12-21 16:56:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:56:04 - End Time 2024-12-21 16:56:04 [2024-12-21 16:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071527', 'tblTempUsageDetail_20' ) start [2024-12-21 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071527', 'tblTempUsageDetail_20' ) end [2024-12-21 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071527', 'tblTempVendorCDR_20' ) start [2024-12-21 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071527', 'tblTempVendorCDR_20' ) end [2024-12-21 16:56:17] Production.INFO: ProcessCDR(1,14071527,1,1,2) [2024-12-21 16:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071527', 'tblTempUsageDetail_20' ) start [2024-12-21 16:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071527', 'tblTempUsageDetail_20' ) end [2024-12-21 16:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:56:20] Production.INFO: ==19494== Releasing lock... [2024-12-21 16:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:56:20] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:57:05 [end_date_ymd] => 2024-12-21 16:57:05 [RateCDR] => 1 ) [2024-12-21 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-21 13:57:05' and `end` < '2024-12-21 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-21 16:57:17] Production.INFO: count ==1859 [2024-12-21 16:57:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:57:05 - End Time 2024-12-21 16:57:05 [2024-12-21 16:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071532', 'tblTempUsageDetail_20' ) start [2024-12-21 16:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071532', 'tblTempUsageDetail_20' ) end [2024-12-21 16:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071532', 'tblTempVendorCDR_20' ) start [2024-12-21 16:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071532', 'tblTempVendorCDR_20' ) end [2024-12-21 16:57:17] Production.INFO: ProcessCDR(1,14071532,1,1,2) [2024-12-21 16:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071532', 'tblTempUsageDetail_20' ) start [2024-12-21 16:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071532', 'tblTempUsageDetail_20' ) end [2024-12-21 16:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:57:20] Production.INFO: ==19568== Releasing lock... [2024-12-21 16:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:57:20] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:58:04 [end_date_ymd] => 2024-12-21 16:58:04 [RateCDR] => 1 ) [2024-12-21 16:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:58:04' and `end` < '2024-12-21 16:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:58:16] Production.INFO: count ==1860 [2024-12-21 16:58:17] Production.ERROR: pbx CDR StartTime 2024-12-21 13:58:04 - End Time 2024-12-21 16:58:04 [2024-12-21 16:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071537', 'tblTempUsageDetail_20' ) start [2024-12-21 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071537', 'tblTempUsageDetail_20' ) end [2024-12-21 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071537', 'tblTempVendorCDR_20' ) start [2024-12-21 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071537', 'tblTempVendorCDR_20' ) end [2024-12-21 16:58:17] Production.INFO: ProcessCDR(1,14071537,1,1,2) [2024-12-21 16:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071537', 'tblTempUsageDetail_20' ) start [2024-12-21 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071537', 'tblTempUsageDetail_20' ) end [2024-12-21 16:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:58:22] Production.INFO: ==19639== Releasing lock... [2024-12-21 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:58:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 13:59:05 [end_date_ymd] => 2024-12-21 16:59:05 [RateCDR] => 1 ) [2024-12-21 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 13:59:05' and `end` < '2024-12-21 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 16:59:17] Production.INFO: count ==1862 [2024-12-21 16:59:18] Production.ERROR: pbx CDR StartTime 2024-12-21 13:59:05 - End Time 2024-12-21 16:59:05 [2024-12-21 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071542', 'tblTempUsageDetail_20' ) start [2024-12-21 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071542', 'tblTempUsageDetail_20' ) end [2024-12-21 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071542', 'tblTempVendorCDR_20' ) start [2024-12-21 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071542', 'tblTempVendorCDR_20' ) end [2024-12-21 16:59:18] Production.INFO: ProcessCDR(1,14071542,1,1,2) [2024-12-21 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 16:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 16:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071542', 'tblTempUsageDetail_20' ) start [2024-12-21 16:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071542', 'tblTempUsageDetail_20' ) end [2024-12-21 16:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 16:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 16:59:21] Production.INFO: ==19710== Releasing lock... [2024-12-21 16:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 16:59:21] Production.INFO: 42 MB #Memory Used# [2024-12-21 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:00:05 [end_date_ymd] => 2024-12-21 17:00:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:00:05' and `end` < '2024-12-21 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-21 17:00:17] Production.INFO: count ==1860 [2024-12-21 17:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:00:05 - End Time 2024-12-21 17:00:05 [2024-12-21 17:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071548', 'tblTempUsageDetail_20' ) start [2024-12-21 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071548', 'tblTempUsageDetail_20' ) end [2024-12-21 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071548', 'tblTempVendorCDR_20' ) start [2024-12-21 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071548', 'tblTempVendorCDR_20' ) end [2024-12-21 17:00:18] Production.INFO: ProcessCDR(1,14071548,1,1,2) [2024-12-21 17:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071548', 'tblTempUsageDetail_20' ) start [2024-12-21 17:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071548', 'tblTempUsageDetail_20' ) end [2024-12-21 17:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:00:21] Production.INFO: ==19821== Releasing lock... [2024-12-21 17:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:00:21] Production.INFO: 42 MB #Memory Used# [2024-12-21 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:01:05 [end_date_ymd] => 2024-12-21 17:01:05 [RateCDR] => 1 ) [2024-12-21 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:01:05' and `end` < '2024-12-21 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:01:17] Production.INFO: count ==1890 [2024-12-21 17:01:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:01:05 - End Time 2024-12-21 17:01:05 [2024-12-21 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071553', 'tblTempUsageDetail_20' ) start [2024-12-21 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071553', 'tblTempUsageDetail_20' ) end [2024-12-21 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071553', 'tblTempVendorCDR_20' ) start [2024-12-21 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071553', 'tblTempVendorCDR_20' ) end [2024-12-21 17:01:18] Production.INFO: ProcessCDR(1,14071553,1,1,2) [2024-12-21 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071553', 'tblTempUsageDetail_20' ) start [2024-12-21 17:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071553', 'tblTempUsageDetail_20' ) end [2024-12-21 17:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:01:21] Production.INFO: ==19908== Releasing lock... [2024-12-21 17:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:01:21] Production.INFO: 42.25 MB #Memory Used# [2024-12-21 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:02:05 [end_date_ymd] => 2024-12-21 17:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:02:05' and `end` < '2024-12-21 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-21 17:02:17] Production.INFO: count ==1865 [2024-12-21 17:02:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:02:05 - End Time 2024-12-21 17:02:05 [2024-12-21 17:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071558', 'tblTempUsageDetail_20' ) start [2024-12-21 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071558', 'tblTempUsageDetail_20' ) end [2024-12-21 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071558', 'tblTempVendorCDR_20' ) start [2024-12-21 17:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071558', 'tblTempVendorCDR_20' ) end [2024-12-21 17:02:18] Production.INFO: ProcessCDR(1,14071558,1,1,2) [2024-12-21 17:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071558', 'tblTempUsageDetail_20' ) start [2024-12-21 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071558', 'tblTempUsageDetail_20' ) end [2024-12-21 17:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:02:23] Production.INFO: ==19981== Releasing lock... [2024-12-21 17:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:02:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 17:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:03:04 [end_date_ymd] => 2024-12-21 17:03:04 [RateCDR] => 1 ) [2024-12-21 17:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:03:04' and `end` < '2024-12-21 17:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:03:17] Production.INFO: count ==1855 [2024-12-21 17:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:03:04 - End Time 2024-12-21 17:03:04 [2024-12-21 17:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071563', 'tblTempUsageDetail_20' ) start [2024-12-21 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071563', 'tblTempUsageDetail_20' ) end [2024-12-21 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071563', 'tblTempVendorCDR_20' ) start [2024-12-21 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071563', 'tblTempVendorCDR_20' ) end [2024-12-21 17:03:17] Production.INFO: ProcessCDR(1,14071563,1,1,2) [2024-12-21 17:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071563', 'tblTempUsageDetail_20' ) start [2024-12-21 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071563', 'tblTempUsageDetail_20' ) end [2024-12-21 17:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:03:22] Production.INFO: ==20052== Releasing lock... [2024-12-21 17:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:03:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:04:05 [end_date_ymd] => 2024-12-21 17:04:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:04:05' and `end` < '2024-12-21 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-21 17:04:17] Production.INFO: count ==1854 [2024-12-21 17:04:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:04:05 - End Time 2024-12-21 17:04:05 [2024-12-21 17:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071568', 'tblTempUsageDetail_20' ) start [2024-12-21 17:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071568', 'tblTempUsageDetail_20' ) end [2024-12-21 17:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071568', 'tblTempVendorCDR_20' ) start [2024-12-21 17:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071568', 'tblTempVendorCDR_20' ) end [2024-12-21 17:04:17] Production.INFO: ProcessCDR(1,14071568,1,1,2) [2024-12-21 17:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071568', 'tblTempUsageDetail_20' ) start [2024-12-21 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071568', 'tblTempUsageDetail_20' ) end [2024-12-21 17:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:04:22] Production.INFO: ==20123== Releasing lock... [2024-12-21 17:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:04:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:05:04 [end_date_ymd] => 2024-12-21 17:05:04 [RateCDR] => 1 ) [2024-12-21 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-21 14:05:04' and `end` < '2024-12-21 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-21 17:05:16] Production.INFO: count ==1845 [2024-12-21 17:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:05:04 - End Time 2024-12-21 17:05:04 [2024-12-21 17:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071573', 'tblTempUsageDetail_20' ) start [2024-12-21 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071573', 'tblTempUsageDetail_20' ) end [2024-12-21 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071573', 'tblTempVendorCDR_20' ) start [2024-12-21 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071573', 'tblTempVendorCDR_20' ) end [2024-12-21 17:05:17] Production.INFO: ProcessCDR(1,14071573,1,1,2) [2024-12-21 17:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071573', 'tblTempUsageDetail_20' ) start [2024-12-21 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071573', 'tblTempUsageDetail_20' ) end [2024-12-21 17:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:05:22] Production.INFO: ==20195== Releasing lock... [2024-12-21 17:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:05:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:06:05 [end_date_ymd] => 2024-12-21 17:06:05 [RateCDR] => 1 ) [2024-12-21 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:06:05' and `end` < '2024-12-21 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:06:17] Production.INFO: count ==1847 [2024-12-21 17:06:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:06:05 - End Time 2024-12-21 17:06:05 [2024-12-21 17:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071578', 'tblTempUsageDetail_20' ) start [2024-12-21 17:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071578', 'tblTempUsageDetail_20' ) end [2024-12-21 17:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071578', 'tblTempVendorCDR_20' ) start [2024-12-21 17:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071578', 'tblTempVendorCDR_20' ) end [2024-12-21 17:06:17] Production.INFO: ProcessCDR(1,14071578,1,1,2) [2024-12-21 17:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071578', 'tblTempUsageDetail_20' ) start [2024-12-21 17:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071578', 'tblTempUsageDetail_20' ) end [2024-12-21 17:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:06:22] Production.INFO: ==20267== Releasing lock... [2024-12-21 17:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:06:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:07:05 [end_date_ymd] => 2024-12-21 17:07:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:07:05' and `end` < '2024-12-21 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-21 17:07:17] Production.INFO: count ==1839 [2024-12-21 17:07:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:07:05 - End Time 2024-12-21 17:07:05 [2024-12-21 17:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071583', 'tblTempUsageDetail_20' ) start [2024-12-21 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071583', 'tblTempUsageDetail_20' ) end [2024-12-21 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071583', 'tblTempVendorCDR_20' ) start [2024-12-21 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071583', 'tblTempVendorCDR_20' ) end [2024-12-21 17:07:18] Production.INFO: ProcessCDR(1,14071583,1,1,2) [2024-12-21 17:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071583', 'tblTempUsageDetail_20' ) start [2024-12-21 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071583', 'tblTempUsageDetail_20' ) end [2024-12-21 17:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:07:22] Production.INFO: ==20341== Releasing lock... [2024-12-21 17:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:07:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:08:05 [end_date_ymd] => 2024-12-21 17:08:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:08:05' and `end` < '2024-12-21 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-21 17:08:17] Production.INFO: count ==1838 [2024-12-21 17:08:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:08:05 - End Time 2024-12-21 17:08:05 [2024-12-21 17:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071588', 'tblTempUsageDetail_20' ) start [2024-12-21 17:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071588', 'tblTempUsageDetail_20' ) end [2024-12-21 17:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071588', 'tblTempVendorCDR_20' ) start [2024-12-21 17:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071588', 'tblTempVendorCDR_20' ) end [2024-12-21 17:08:17] Production.INFO: ProcessCDR(1,14071588,1,1,2) [2024-12-21 17:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071588', 'tblTempUsageDetail_20' ) start [2024-12-21 17:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071588', 'tblTempUsageDetail_20' ) end [2024-12-21 17:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:08:20] Production.INFO: ==20412== Releasing lock... [2024-12-21 17:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:08:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:09:05 [end_date_ymd] => 2024-12-21 17:09:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:09:05' and `end` < '2024-12-21 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-21 17:09:19] Production.INFO: count ==1838 [2024-12-21 17:09:20] Production.ERROR: pbx CDR StartTime 2024-12-21 14:09:05 - End Time 2024-12-21 17:09:05 [2024-12-21 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071593', 'tblTempUsageDetail_20' ) start [2024-12-21 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071593', 'tblTempUsageDetail_20' ) end [2024-12-21 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071593', 'tblTempVendorCDR_20' ) start [2024-12-21 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071593', 'tblTempVendorCDR_20' ) end [2024-12-21 17:09:20] Production.INFO: ProcessCDR(1,14071593,1,1,2) [2024-12-21 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071593', 'tblTempUsageDetail_20' ) start [2024-12-21 17:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071593', 'tblTempUsageDetail_20' ) end [2024-12-21 17:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:09:24] Production.INFO: ==20484== Releasing lock... [2024-12-21 17:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:09:24] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:10:05 [end_date_ymd] => 2024-12-21 17:10:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:10:05' and `end` < '2024-12-21 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-21 17:10:17] Production.INFO: count ==1835 [2024-12-21 17:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:10:05 - End Time 2024-12-21 17:10:05 [2024-12-21 17:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071599', 'tblTempUsageDetail_20' ) start [2024-12-21 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071599', 'tblTempUsageDetail_20' ) end [2024-12-21 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071599', 'tblTempVendorCDR_20' ) start [2024-12-21 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071599', 'tblTempVendorCDR_20' ) end [2024-12-21 17:10:18] Production.INFO: ProcessCDR(1,14071599,1,1,2) [2024-12-21 17:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071599', 'tblTempUsageDetail_20' ) start [2024-12-21 17:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071599', 'tblTempUsageDetail_20' ) end [2024-12-21 17:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:10:22] Production.INFO: ==20556== Releasing lock... [2024-12-21 17:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:10:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:11:05 [end_date_ymd] => 2024-12-21 17:11:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:11:05' and `end` < '2024-12-21 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-21 17:11:18] Production.INFO: count ==1852 [2024-12-21 17:11:19] Production.ERROR: pbx CDR StartTime 2024-12-21 14:11:05 - End Time 2024-12-21 17:11:05 [2024-12-21 17:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071604', 'tblTempUsageDetail_20' ) start [2024-12-21 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071604', 'tblTempUsageDetail_20' ) end [2024-12-21 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071604', 'tblTempVendorCDR_20' ) start [2024-12-21 17:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071604', 'tblTempVendorCDR_20' ) end [2024-12-21 17:11:19] Production.INFO: ProcessCDR(1,14071604,1,1,2) [2024-12-21 17:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071604', 'tblTempUsageDetail_20' ) start [2024-12-21 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071604', 'tblTempUsageDetail_20' ) end [2024-12-21 17:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:11:23] Production.INFO: ==20631== Releasing lock... [2024-12-21 17:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:11:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:12:05 [end_date_ymd] => 2024-12-21 17:12:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:12:05' and `end` < '2024-12-21 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-21 17:12:17] Production.INFO: count ==1845 [2024-12-21 17:12:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:12:05 - End Time 2024-12-21 17:12:05 [2024-12-21 17:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071609', 'tblTempUsageDetail_20' ) start [2024-12-21 17:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071609', 'tblTempUsageDetail_20' ) end [2024-12-21 17:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071609', 'tblTempVendorCDR_20' ) start [2024-12-21 17:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071609', 'tblTempVendorCDR_20' ) end [2024-12-21 17:12:17] Production.INFO: ProcessCDR(1,14071609,1,1,2) [2024-12-21 17:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071609', 'tblTempUsageDetail_20' ) start [2024-12-21 17:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071609', 'tblTempUsageDetail_20' ) end [2024-12-21 17:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:12:20] Production.INFO: ==20702== Releasing lock... [2024-12-21 17:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:12:20] Production.INFO: 42 MB #Memory Used# [2024-12-21 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:13:05 [end_date_ymd] => 2024-12-21 17:13:05 [RateCDR] => 1 ) [2024-12-21 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:13:05' and `end` < '2024-12-21 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:13:18] Production.INFO: count ==1840 [2024-12-21 17:13:19] Production.ERROR: pbx CDR StartTime 2024-12-21 14:13:05 - End Time 2024-12-21 17:13:05 [2024-12-21 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071614', 'tblTempUsageDetail_20' ) start [2024-12-21 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071614', 'tblTempUsageDetail_20' ) end [2024-12-21 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071614', 'tblTempVendorCDR_20' ) start [2024-12-21 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071614', 'tblTempVendorCDR_20' ) end [2024-12-21 17:13:19] Production.INFO: ProcessCDR(1,14071614,1,1,2) [2024-12-21 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071614', 'tblTempUsageDetail_20' ) start [2024-12-21 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071614', 'tblTempUsageDetail_20' ) end [2024-12-21 17:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:13:23] Production.INFO: ==20772== Releasing lock... [2024-12-21 17:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:13:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:14:05 [end_date_ymd] => 2024-12-21 17:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:14:05' and `end` < '2024-12-21 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-21 17:14:19] Production.INFO: count ==1840 [2024-12-21 17:14:19] Production.ERROR: pbx CDR StartTime 2024-12-21 14:14:05 - End Time 2024-12-21 17:14:05 [2024-12-21 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071619', 'tblTempUsageDetail_20' ) start [2024-12-21 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071619', 'tblTempUsageDetail_20' ) end [2024-12-21 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071619', 'tblTempVendorCDR_20' ) start [2024-12-21 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071619', 'tblTempVendorCDR_20' ) end [2024-12-21 17:14:19] Production.INFO: ProcessCDR(1,14071619,1,1,2) [2024-12-21 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071619', 'tblTempUsageDetail_20' ) start [2024-12-21 17:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071619', 'tblTempUsageDetail_20' ) end [2024-12-21 17:14:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:14:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:14:24] Production.INFO: ==20847== Releasing lock... [2024-12-21 17:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:14:24] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:15:05 [end_date_ymd] => 2024-12-21 17:15:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:15:05' and `end` < '2024-12-21 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-21 17:15:17] Production.INFO: count ==1835 [2024-12-21 17:15:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:15:05 - End Time 2024-12-21 17:15:05 [2024-12-21 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071624', 'tblTempUsageDetail_20' ) start [2024-12-21 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071624', 'tblTempUsageDetail_20' ) end [2024-12-21 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071624', 'tblTempVendorCDR_20' ) start [2024-12-21 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071624', 'tblTempVendorCDR_20' ) end [2024-12-21 17:15:18] Production.INFO: ProcessCDR(1,14071624,1,1,2) [2024-12-21 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071624', 'tblTempUsageDetail_20' ) start [2024-12-21 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071624', 'tblTempUsageDetail_20' ) end [2024-12-21 17:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:15:22] Production.INFO: ==20919== Releasing lock... [2024-12-21 17:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:15:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 17:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:16:04 [end_date_ymd] => 2024-12-21 17:16:04 [RateCDR] => 1 ) [2024-12-21 17: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-21 14:16:04' and `end` < '2024-12-21 17: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-21 17:16:16] Production.INFO: count ==1825 [2024-12-21 17:16:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:16:04 - End Time 2024-12-21 17:16:04 [2024-12-21 17:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071629', 'tblTempUsageDetail_20' ) start [2024-12-21 17:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071629', 'tblTempUsageDetail_20' ) end [2024-12-21 17:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071629', 'tblTempVendorCDR_20' ) start [2024-12-21 17:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071629', 'tblTempVendorCDR_20' ) end [2024-12-21 17:16:17] Production.INFO: ProcessCDR(1,14071629,1,1,2) [2024-12-21 17:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071629', 'tblTempUsageDetail_20' ) start [2024-12-21 17:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071629', 'tblTempUsageDetail_20' ) end [2024-12-21 17:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:16:21] Production.INFO: ==21029== Releasing lock... [2024-12-21 17:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:16:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 17:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:17:04 [end_date_ymd] => 2024-12-21 17:17:04 [RateCDR] => 1 ) [2024-12-21 17: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-21 14:17:04' and `end` < '2024-12-21 17: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-21 17:17:17] Production.INFO: count ==1820 [2024-12-21 17:17:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:17:04 - End Time 2024-12-21 17:17:04 [2024-12-21 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071634', 'tblTempUsageDetail_20' ) start [2024-12-21 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071634', 'tblTempUsageDetail_20' ) end [2024-12-21 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071634', 'tblTempVendorCDR_20' ) start [2024-12-21 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071634', 'tblTempVendorCDR_20' ) end [2024-12-21 17:17:18] Production.INFO: ProcessCDR(1,14071634,1,1,2) [2024-12-21 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071634', 'tblTempUsageDetail_20' ) start [2024-12-21 17:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071634', 'tblTempUsageDetail_20' ) end [2024-12-21 17:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:17:21] Production.INFO: ==21103== Releasing lock... [2024-12-21 17:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:17:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:18:05 [end_date_ymd] => 2024-12-21 17:18:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:18:05' and `end` < '2024-12-21 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-21 17:18:17] Production.INFO: count ==1818 [2024-12-21 17:18:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:18:05 - End Time 2024-12-21 17:18:05 [2024-12-21 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071639', 'tblTempUsageDetail_20' ) start [2024-12-21 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071639', 'tblTempUsageDetail_20' ) end [2024-12-21 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071639', 'tblTempVendorCDR_20' ) start [2024-12-21 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071639', 'tblTempVendorCDR_20' ) end [2024-12-21 17:18:18] Production.INFO: ProcessCDR(1,14071639,1,1,2) [2024-12-21 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071639', 'tblTempUsageDetail_20' ) start [2024-12-21 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071639', 'tblTempUsageDetail_20' ) end [2024-12-21 17:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:18:22] Production.INFO: ==21177== Releasing lock... [2024-12-21 17:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:18:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 17:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:19:04 [end_date_ymd] => 2024-12-21 17:19:04 [RateCDR] => 1 ) [2024-12-21 17: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-21 14:19:04' and `end` < '2024-12-21 17: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-21 17:19:18] Production.INFO: count ==1796 [2024-12-21 17:19:19] Production.ERROR: pbx CDR StartTime 2024-12-21 14:19:04 - End Time 2024-12-21 17:19:04 [2024-12-21 17:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071644', 'tblTempUsageDetail_20' ) start [2024-12-21 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071644', 'tblTempUsageDetail_20' ) end [2024-12-21 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071644', 'tblTempVendorCDR_20' ) start [2024-12-21 17:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071644', 'tblTempVendorCDR_20' ) end [2024-12-21 17:19:19] Production.INFO: ProcessCDR(1,14071644,1,1,2) [2024-12-21 17:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071644', 'tblTempUsageDetail_20' ) start [2024-12-21 17:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071644', 'tblTempUsageDetail_20' ) end [2024-12-21 17:19:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:19:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:19:23] Production.INFO: ==21247== Releasing lock... [2024-12-21 17:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:19:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:20:05 [end_date_ymd] => 2024-12-21 17:20:05 [RateCDR] => 1 ) [2024-12-21 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:20:05' and `end` < '2024-12-21 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:20:18] Production.INFO: count ==1775 [2024-12-21 17:20:19] Production.ERROR: pbx CDR StartTime 2024-12-21 14:20:05 - End Time 2024-12-21 17:20:05 [2024-12-21 17:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071650', 'tblTempUsageDetail_20' ) start [2024-12-21 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071650', 'tblTempUsageDetail_20' ) end [2024-12-21 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071650', 'tblTempVendorCDR_20' ) start [2024-12-21 17:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071650', 'tblTempVendorCDR_20' ) end [2024-12-21 17:20:19] Production.INFO: ProcessCDR(1,14071650,1,1,2) [2024-12-21 17:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071650', 'tblTempUsageDetail_20' ) start [2024-12-21 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071650', 'tblTempUsageDetail_20' ) end [2024-12-21 17:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:20:23] Production.INFO: ==21322== Releasing lock... [2024-12-21 17:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:20:23] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:21:05 [end_date_ymd] => 2024-12-21 17:21:05 [RateCDR] => 1 ) [2024-12-21 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:21:05' and `end` < '2024-12-21 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:21:17] Production.INFO: count ==1775 [2024-12-21 17:21:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:21:05 - End Time 2024-12-21 17:21:05 [2024-12-21 17:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071655', 'tblTempUsageDetail_20' ) start [2024-12-21 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071655', 'tblTempUsageDetail_20' ) end [2024-12-21 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071655', 'tblTempVendorCDR_20' ) start [2024-12-21 17:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071655', 'tblTempVendorCDR_20' ) end [2024-12-21 17:21:17] Production.INFO: ProcessCDR(1,14071655,1,1,2) [2024-12-21 17:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071655', 'tblTempUsageDetail_20' ) start [2024-12-21 17:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071655', 'tblTempUsageDetail_20' ) end [2024-12-21 17:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:21:22] Production.INFO: ==21398== Releasing lock... [2024-12-21 17:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:21:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:22:04 [end_date_ymd] => 2024-12-21 17:22:04 [RateCDR] => 1 ) [2024-12-21 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-21 14:22:04' and `end` < '2024-12-21 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-21 17:22:16] Production.INFO: count ==1766 [2024-12-21 17:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:22:04 - End Time 2024-12-21 17:22:04 [2024-12-21 17:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071660', 'tblTempUsageDetail_20' ) start [2024-12-21 17:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071660', 'tblTempUsageDetail_20' ) end [2024-12-21 17:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071660', 'tblTempVendorCDR_20' ) start [2024-12-21 17:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071660', 'tblTempVendorCDR_20' ) end [2024-12-21 17:22:17] Production.INFO: ProcessCDR(1,14071660,1,1,2) [2024-12-21 17:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071660', 'tblTempUsageDetail_20' ) start [2024-12-21 17:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071660', 'tblTempUsageDetail_20' ) end [2024-12-21 17:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:22:20] Production.INFO: ==21475== Releasing lock... [2024-12-21 17:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:22:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:23:04 [end_date_ymd] => 2024-12-21 17:23:04 [RateCDR] => 1 ) [2024-12-21 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-21 14:23:04' and `end` < '2024-12-21 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-21 17:23:17] Production.INFO: count ==1755 [2024-12-21 17:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:23:04 - End Time 2024-12-21 17:23:04 [2024-12-21 17:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071663', 'tblTempUsageDetail_20' ) start [2024-12-21 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071663', 'tblTempUsageDetail_20' ) end [2024-12-21 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071663', 'tblTempVendorCDR_20' ) start [2024-12-21 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071663', 'tblTempVendorCDR_20' ) end [2024-12-21 17:23:17] Production.INFO: ProcessCDR(1,14071663,1,1,2) [2024-12-21 17:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071663', 'tblTempUsageDetail_20' ) start [2024-12-21 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071663', 'tblTempUsageDetail_20' ) end [2024-12-21 17:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:23:22] Production.INFO: ==21545== Releasing lock... [2024-12-21 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:23:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:24:05 [end_date_ymd] => 2024-12-21 17:24:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:24:05' and `end` < '2024-12-21 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-21 17:24:17] Production.INFO: count ==1750 [2024-12-21 17:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:24:05 - End Time 2024-12-21 17:24:05 [2024-12-21 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071670', 'tblTempUsageDetail_20' ) start [2024-12-21 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071670', 'tblTempUsageDetail_20' ) end [2024-12-21 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071670', 'tblTempVendorCDR_20' ) start [2024-12-21 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071670', 'tblTempVendorCDR_20' ) end [2024-12-21 17:24:18] Production.INFO: ProcessCDR(1,14071670,1,1,2) [2024-12-21 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071670', 'tblTempUsageDetail_20' ) start [2024-12-21 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071670', 'tblTempUsageDetail_20' ) end [2024-12-21 17:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:24:22] Production.INFO: ==21616== Releasing lock... [2024-12-21 17:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:24:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:25:05 [end_date_ymd] => 2024-12-21 17:25:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:25:05' and `end` < '2024-12-21 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-21 17:25:17] Production.INFO: count ==1747 [2024-12-21 17:25:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:25:05 - End Time 2024-12-21 17:25:05 [2024-12-21 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071675', 'tblTempUsageDetail_20' ) start [2024-12-21 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071675', 'tblTempUsageDetail_20' ) end [2024-12-21 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071675', 'tblTempVendorCDR_20' ) start [2024-12-21 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071675', 'tblTempVendorCDR_20' ) end [2024-12-21 17:25:18] Production.INFO: ProcessCDR(1,14071675,1,1,2) [2024-12-21 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071675', 'tblTempUsageDetail_20' ) start [2024-12-21 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071675', 'tblTempUsageDetail_20' ) end [2024-12-21 17:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:25:23] Production.INFO: ==21688== Releasing lock... [2024-12-21 17:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:25:23] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:26:16] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:26:16 [end_date_ymd] => 2024-12-21 17:26:16 [RateCDR] => 1 ) [2024-12-21 17:26:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:26:16' and `end` < '2024-12-21 17:26:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:26:29] Production.INFO: count ==1746 [2024-12-21 17:26:31] Production.ERROR: pbx CDR StartTime 2024-12-21 14:26:16 - End Time 2024-12-21 17:26:16 [2024-12-21 17:26:31] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071680', 'tblTempUsageDetail_20' ) start [2024-12-21 17:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071680', 'tblTempUsageDetail_20' ) end [2024-12-21 17:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071680', 'tblTempVendorCDR_20' ) start [2024-12-21 17:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071680', 'tblTempVendorCDR_20' ) end [2024-12-21 17:26:34] Production.INFO: ProcessCDR(1,14071680,1,1,2) [2024-12-21 17:26:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:26:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:26:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:27:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:27:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071680', 'tblTempUsageDetail_20' ) start [2024-12-21 17:27:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071680', 'tblTempUsageDetail_20' ) end [2024-12-21 17:27:17] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:27:17] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:27:18] Production.INFO: ==21759== Releasing lock... [2024-12-21 17:27:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:27:18] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:28:16] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:28:16 [end_date_ymd] => 2024-12-21 17:28:16 [RateCDR] => 1 ) [2024-12-21 17:28:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:28:16' and `end` < '2024-12-21 17:28:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:28:30] Production.INFO: count ==1751 [2024-12-21 17:28:35] Production.ERROR: pbx CDR StartTime 2024-12-21 14:28:16 - End Time 2024-12-21 17:28:16 [2024-12-21 17:28:35] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:28:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071688', 'tblTempUsageDetail_20' ) start [2024-12-21 17:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071688', 'tblTempUsageDetail_20' ) end [2024-12-21 17:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071688', 'tblTempVendorCDR_20' ) start [2024-12-21 17:28:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071688', 'tblTempVendorCDR_20' ) end [2024-12-21 17:28:36] Production.INFO: ProcessCDR(1,14071688,1,1,2) [2024-12-21 17:28:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:28:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:28:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:28:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:28:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071688', 'tblTempUsageDetail_20' ) start [2024-12-21 17:28:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071688', 'tblTempUsageDetail_20' ) end [2024-12-21 17:28:59] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:28:59] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:29:03] Production.INFO: ==21894== Releasing lock... [2024-12-21 17:29:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:29:03] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:30:18] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:30:18 [end_date_ymd] => 2024-12-21 17:30:18 [RateCDR] => 1 ) [2024-12-21 17:30: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-21 14:30:18' and `end` < '2024-12-21 17:30: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-21 17:30:30] Production.INFO: count ==1751 [2024-12-21 17:30:40] Production.ERROR: pbx CDR StartTime 2024-12-21 14:30:18 - End Time 2024-12-21 17:30:18 [2024-12-21 17:30:40] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:30:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071697', 'tblTempUsageDetail_20' ) start [2024-12-21 17:30:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071697', 'tblTempUsageDetail_20' ) end [2024-12-21 17:30:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071697', 'tblTempVendorCDR_20' ) start [2024-12-21 17:30:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071697', 'tblTempVendorCDR_20' ) end [2024-12-21 17:30:42] Production.INFO: ProcessCDR(1,14071697,1,1,2) [2024-12-21 17:30:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:30:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:30:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:31:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:31:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071697', 'tblTempUsageDetail_20' ) start [2024-12-21 17:31:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071697', 'tblTempUsageDetail_20' ) end [2024-12-21 17:31:11] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:31:11] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:31:11] Production.INFO: ==22035== Releasing lock... [2024-12-21 17:31:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:31:11] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:32:21] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:32:21 [end_date_ymd] => 2024-12-21 17:32:21 [RateCDR] => 1 ) [2024-12-21 17:32:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:32:21' and `end` < '2024-12-21 17:32:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:32:33] Production.INFO: count ==1775 [2024-12-21 17:32:34] Production.ERROR: pbx CDR StartTime 2024-12-21 14:32:21 - End Time 2024-12-21 17:32:21 [2024-12-21 17:32:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071705', 'tblTempUsageDetail_20' ) start [2024-12-21 17:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071705', 'tblTempUsageDetail_20' ) end [2024-12-21 17:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071705', 'tblTempVendorCDR_20' ) start [2024-12-21 17:32:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071705', 'tblTempVendorCDR_20' ) end [2024-12-21 17:32:34] Production.INFO: ProcessCDR(1,14071705,1,1,2) [2024-12-21 17:32:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:32:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:32:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:32:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:32:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071705', 'tblTempUsageDetail_20' ) start [2024-12-21 17:32:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071705', 'tblTempUsageDetail_20' ) end [2024-12-21 17:32:39] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:32:39] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:32:39] Production.INFO: ==22218== Releasing lock... [2024-12-21 17:32:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:32:39] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:33:05 [end_date_ymd] => 2024-12-21 17:33:05 [RateCDR] => 1 ) [2024-12-21 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:33:05' and `end` < '2024-12-21 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:33:17] Production.INFO: count ==1774 [2024-12-21 17:33:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:33:05 - End Time 2024-12-21 17:33:05 [2024-12-21 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071710', 'tblTempUsageDetail_20' ) start [2024-12-21 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071710', 'tblTempUsageDetail_20' ) end [2024-12-21 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071710', 'tblTempVendorCDR_20' ) start [2024-12-21 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071710', 'tblTempVendorCDR_20' ) end [2024-12-21 17:33:18] Production.INFO: ProcessCDR(1,14071710,1,1,2) [2024-12-21 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071710', 'tblTempUsageDetail_20' ) start [2024-12-21 17:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071710', 'tblTempUsageDetail_20' ) end [2024-12-21 17:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:33:22] Production.INFO: ==22295== Releasing lock... [2024-12-21 17:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:33:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:34:06 [end_date_ymd] => 2024-12-21 17:34:06 [RateCDR] => 1 ) [2024-12-21 17:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:34:06' and `end` < '2024-12-21 17:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:34:20] Production.INFO: count ==1762 [2024-12-21 17:34:20] Production.ERROR: pbx CDR StartTime 2024-12-21 14:34:06 - End Time 2024-12-21 17:34:06 [2024-12-21 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071715', 'tblTempUsageDetail_20' ) start [2024-12-21 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071715', 'tblTempUsageDetail_20' ) end [2024-12-21 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071715', 'tblTempVendorCDR_20' ) start [2024-12-21 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071715', 'tblTempVendorCDR_20' ) end [2024-12-21 17:34:20] Production.INFO: ProcessCDR(1,14071715,1,1,2) [2024-12-21 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071715', 'tblTempUsageDetail_20' ) start [2024-12-21 17:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071715', 'tblTempUsageDetail_20' ) end [2024-12-21 17:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:34:23] Production.INFO: ==22366== Releasing lock... [2024-12-21 17:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:34:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:35:05 [end_date_ymd] => 2024-12-21 17:35:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:35:05' and `end` < '2024-12-21 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-21 17:35:19] Production.INFO: count ==1749 [2024-12-21 17:35:19] Production.ERROR: pbx CDR StartTime 2024-12-21 14:35:05 - End Time 2024-12-21 17:35:05 [2024-12-21 17:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071720', 'tblTempUsageDetail_20' ) start [2024-12-21 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071720', 'tblTempUsageDetail_20' ) end [2024-12-21 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071720', 'tblTempVendorCDR_20' ) start [2024-12-21 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071720', 'tblTempVendorCDR_20' ) end [2024-12-21 17:35:19] Production.INFO: ProcessCDR(1,14071720,1,1,2) [2024-12-21 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071720', 'tblTempUsageDetail_20' ) start [2024-12-21 17:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071720', 'tblTempUsageDetail_20' ) end [2024-12-21 17:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:35:22] Production.INFO: ==22437== Releasing lock... [2024-12-21 17:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:35:22] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:36:05 [end_date_ymd] => 2024-12-21 17:36:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:36:05' and `end` < '2024-12-21 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-21 17:36:17] Production.INFO: count ==1743 [2024-12-21 17:36:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:36:05 - End Time 2024-12-21 17:36:05 [2024-12-21 17:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071725', 'tblTempUsageDetail_20' ) start [2024-12-21 17:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071725', 'tblTempUsageDetail_20' ) end [2024-12-21 17:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071725', 'tblTempVendorCDR_20' ) start [2024-12-21 17:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071725', 'tblTempVendorCDR_20' ) end [2024-12-21 17:36:17] Production.INFO: ProcessCDR(1,14071725,1,1,2) [2024-12-21 17:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071725', 'tblTempUsageDetail_20' ) start [2024-12-21 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071725', 'tblTempUsageDetail_20' ) end [2024-12-21 17:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:36:21] Production.INFO: ==22511== Releasing lock... [2024-12-21 17:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:36:21] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:37:05 [end_date_ymd] => 2024-12-21 17:37:05 [RateCDR] => 1 ) [2024-12-21 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:37:05' and `end` < '2024-12-21 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:37:17] Production.INFO: count ==1740 [2024-12-21 17:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:37:05 - End Time 2024-12-21 17:37:05 [2024-12-21 17:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071730', 'tblTempUsageDetail_20' ) start [2024-12-21 17:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071730', 'tblTempUsageDetail_20' ) end [2024-12-21 17:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071730', 'tblTempVendorCDR_20' ) start [2024-12-21 17:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071730', 'tblTempVendorCDR_20' ) end [2024-12-21 17:37:17] Production.INFO: ProcessCDR(1,14071730,1,1,2) [2024-12-21 17:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071730', 'tblTempUsageDetail_20' ) start [2024-12-21 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071730', 'tblTempUsageDetail_20' ) end [2024-12-21 17:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:37:22] Production.INFO: ==22585== Releasing lock... [2024-12-21 17:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:37:22] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:38:05 [end_date_ymd] => 2024-12-21 17:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:38:05' and `end` < '2024-12-21 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-21 17:38:17] Production.INFO: count ==1729 [2024-12-21 17:38:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:38:05 - End Time 2024-12-21 17:38:05 [2024-12-21 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071735', 'tblTempUsageDetail_20' ) start [2024-12-21 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071735', 'tblTempUsageDetail_20' ) end [2024-12-21 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071735', 'tblTempVendorCDR_20' ) start [2024-12-21 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071735', 'tblTempVendorCDR_20' ) end [2024-12-21 17:38:18] Production.INFO: ProcessCDR(1,14071735,1,1,2) [2024-12-21 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071735', 'tblTempUsageDetail_20' ) start [2024-12-21 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071735', 'tblTempUsageDetail_20' ) end [2024-12-21 17:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:38:21] Production.INFO: ==22657== Releasing lock... [2024-12-21 17:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:38:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:39:05 [end_date_ymd] => 2024-12-21 17:39:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:39:05' and `end` < '2024-12-21 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-21 17:39:18] Production.INFO: count ==1716 [2024-12-21 17:39:19] Production.ERROR: pbx CDR StartTime 2024-12-21 14:39:05 - End Time 2024-12-21 17:39:05 [2024-12-21 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071740', 'tblTempUsageDetail_20' ) start [2024-12-21 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071740', 'tblTempUsageDetail_20' ) end [2024-12-21 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071740', 'tblTempVendorCDR_20' ) start [2024-12-21 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071740', 'tblTempVendorCDR_20' ) end [2024-12-21 17:39:19] Production.INFO: ProcessCDR(1,14071740,1,1,2) [2024-12-21 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071740', 'tblTempUsageDetail_20' ) start [2024-12-21 17:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071740', 'tblTempUsageDetail_20' ) end [2024-12-21 17:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:39:22] Production.INFO: ==22729== Releasing lock... [2024-12-21 17:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:39:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:40:05 [end_date_ymd] => 2024-12-21 17:40:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:40:05' and `end` < '2024-12-21 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:40:18] Production.INFO: count ==1768 [2024-12-21 17:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:40:05 - End Time 2024-12-21 17:40:05 [2024-12-21 17:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071745', 'tblTempUsageDetail_20' ) start [2024-12-21 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071745', 'tblTempUsageDetail_20' ) end [2024-12-21 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071745', 'tblTempVendorCDR_20' ) start [2024-12-21 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071745', 'tblTempVendorCDR_20' ) end [2024-12-21 17:40:18] Production.INFO: ProcessCDR(1,14071745,1,1,2) [2024-12-21 17:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071745', 'tblTempUsageDetail_20' ) start [2024-12-21 17:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071745', 'tblTempUsageDetail_20' ) end [2024-12-21 17:40:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:40:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:40:23] Production.INFO: ==22802== Releasing lock... [2024-12-21 17:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:40:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:41:05 [end_date_ymd] => 2024-12-21 17:41:05 [RateCDR] => 1 ) [2024-12-21 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:41:05' and `end` < '2024-12-21 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:41:17] Production.INFO: count ==1808 [2024-12-21 17:41:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:41:05 - End Time 2024-12-21 17:41:05 [2024-12-21 17:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071751', 'tblTempUsageDetail_20' ) start [2024-12-21 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071751', 'tblTempUsageDetail_20' ) end [2024-12-21 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071751', 'tblTempVendorCDR_20' ) start [2024-12-21 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071751', 'tblTempVendorCDR_20' ) end [2024-12-21 17:41:18] Production.INFO: ProcessCDR(1,14071751,1,1,2) [2024-12-21 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071751', 'tblTempUsageDetail_20' ) start [2024-12-21 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071751', 'tblTempUsageDetail_20' ) end [2024-12-21 17:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:41:22] Production.INFO: ==22874== Releasing lock... [2024-12-21 17:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:41:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:42:05 [end_date_ymd] => 2024-12-21 17:42:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:42:05' and `end` < '2024-12-21 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-21 17:42:18] Production.INFO: count ==1807 [2024-12-21 17:42:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:42:05 - End Time 2024-12-21 17:42:05 [2024-12-21 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071756', 'tblTempUsageDetail_20' ) start [2024-12-21 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071756', 'tblTempUsageDetail_20' ) end [2024-12-21 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071756', 'tblTempVendorCDR_20' ) start [2024-12-21 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071756', 'tblTempVendorCDR_20' ) end [2024-12-21 17:42:18] Production.INFO: ProcessCDR(1,14071756,1,1,2) [2024-12-21 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071756', 'tblTempUsageDetail_20' ) start [2024-12-21 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071756', 'tblTempUsageDetail_20' ) end [2024-12-21 17:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:42:23] Production.INFO: ==22945== Releasing lock... [2024-12-21 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:42:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:43:05 [end_date_ymd] => 2024-12-21 17:43:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:43:05' and `end` < '2024-12-21 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-21 17:43:17] Production.INFO: count ==1805 [2024-12-21 17:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:43:05 - End Time 2024-12-21 17:43:05 [2024-12-21 17:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071761', 'tblTempUsageDetail_20' ) start [2024-12-21 17:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071761', 'tblTempUsageDetail_20' ) end [2024-12-21 17:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071761', 'tblTempVendorCDR_20' ) start [2024-12-21 17:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071761', 'tblTempVendorCDR_20' ) end [2024-12-21 17:43:17] Production.INFO: ProcessCDR(1,14071761,1,1,2) [2024-12-21 17:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071761', 'tblTempUsageDetail_20' ) start [2024-12-21 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071761', 'tblTempUsageDetail_20' ) end [2024-12-21 17:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:43:21] Production.INFO: ==23015== Releasing lock... [2024-12-21 17:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:43:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:44:05 [end_date_ymd] => 2024-12-21 17:44:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:44:05' and `end` < '2024-12-21 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-21 17:44:20] Production.INFO: count ==1794 [2024-12-21 17:44:20] Production.ERROR: pbx CDR StartTime 2024-12-21 14:44:05 - End Time 2024-12-21 17:44:05 [2024-12-21 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071766', 'tblTempUsageDetail_20' ) start [2024-12-21 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071766', 'tblTempUsageDetail_20' ) end [2024-12-21 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071766', 'tblTempVendorCDR_20' ) start [2024-12-21 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071766', 'tblTempVendorCDR_20' ) end [2024-12-21 17:44:20] Production.INFO: ProcessCDR(1,14071766,1,1,2) [2024-12-21 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071766', 'tblTempUsageDetail_20' ) start [2024-12-21 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071766', 'tblTempUsageDetail_20' ) end [2024-12-21 17:44:25] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:44:25] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:44:25] Production.INFO: ==23090== Releasing lock... [2024-12-21 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:44:25] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 17:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:45:04 [end_date_ymd] => 2024-12-21 17:45:04 [RateCDR] => 1 ) [2024-12-21 17: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-21 14:45:04' and `end` < '2024-12-21 17: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-21 17:45:17] Production.INFO: count ==1788 [2024-12-21 17:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:45:04 - End Time 2024-12-21 17:45:04 [2024-12-21 17:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071771', 'tblTempUsageDetail_20' ) start [2024-12-21 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071771', 'tblTempUsageDetail_20' ) end [2024-12-21 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071771', 'tblTempVendorCDR_20' ) start [2024-12-21 17:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071771', 'tblTempVendorCDR_20' ) end [2024-12-21 17:45:17] Production.INFO: ProcessCDR(1,14071771,1,1,2) [2024-12-21 17:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071771', 'tblTempUsageDetail_20' ) start [2024-12-21 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071771', 'tblTempUsageDetail_20' ) end [2024-12-21 17:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:45:22] Production.INFO: ==23161== Releasing lock... [2024-12-21 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:45:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:46:05 [end_date_ymd] => 2024-12-21 17:46:05 [RateCDR] => 1 ) [2024-12-21 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:46:05' and `end` < '2024-12-21 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:46:17] Production.INFO: count ==1786 [2024-12-21 17:46:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:46:05 - End Time 2024-12-21 17:46:05 [2024-12-21 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071776', 'tblTempUsageDetail_20' ) start [2024-12-21 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071776', 'tblTempUsageDetail_20' ) end [2024-12-21 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071776', 'tblTempVendorCDR_20' ) start [2024-12-21 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071776', 'tblTempVendorCDR_20' ) end [2024-12-21 17:46:18] Production.INFO: ProcessCDR(1,14071776,1,1,2) [2024-12-21 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071776', 'tblTempUsageDetail_20' ) start [2024-12-21 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071776', 'tblTempUsageDetail_20' ) end [2024-12-21 17:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:46:21] Production.INFO: ==23237== Releasing lock... [2024-12-21 17:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:46:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:47:04 [end_date_ymd] => 2024-12-21 17:47:04 [RateCDR] => 1 ) [2024-12-21 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-21 14:47:04' and `end` < '2024-12-21 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-21 17:47:17] Production.INFO: count ==1775 [2024-12-21 17:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:47:04 - End Time 2024-12-21 17:47:04 [2024-12-21 17:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071781', 'tblTempUsageDetail_20' ) start [2024-12-21 17:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071781', 'tblTempUsageDetail_20' ) end [2024-12-21 17:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071781', 'tblTempVendorCDR_20' ) start [2024-12-21 17:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071781', 'tblTempVendorCDR_20' ) end [2024-12-21 17:47:17] Production.INFO: ProcessCDR(1,14071781,1,1,2) [2024-12-21 17:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071781', 'tblTempUsageDetail_20' ) start [2024-12-21 17:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071781', 'tblTempUsageDetail_20' ) end [2024-12-21 17:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:47:20] Production.INFO: ==23349== Releasing lock... [2024-12-21 17:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:47:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:48:05 [end_date_ymd] => 2024-12-21 17:48:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:48:05' and `end` < '2024-12-21 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-21 17:48:18] Production.INFO: count ==1762 [2024-12-21 17:48:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:48:05 - End Time 2024-12-21 17:48:05 [2024-12-21 17:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071786', 'tblTempUsageDetail_20' ) start [2024-12-21 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071786', 'tblTempUsageDetail_20' ) end [2024-12-21 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071786', 'tblTempVendorCDR_20' ) start [2024-12-21 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071786', 'tblTempVendorCDR_20' ) end [2024-12-21 17:48:18] Production.INFO: ProcessCDR(1,14071786,1,1,2) [2024-12-21 17:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071786', 'tblTempUsageDetail_20' ) start [2024-12-21 17:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071786', 'tblTempUsageDetail_20' ) end [2024-12-21 17:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:48:22] Production.INFO: ==23422== Releasing lock... [2024-12-21 17:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:48:22] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:49:04 [end_date_ymd] => 2024-12-21 17:49:04 [RateCDR] => 1 ) [2024-12-21 17:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:49:04' and `end` < '2024-12-21 17:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:49:16] Production.INFO: count ==1759 [2024-12-21 17:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:49:04 - End Time 2024-12-21 17:49:04 [2024-12-21 17:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071791', 'tblTempUsageDetail_20' ) start [2024-12-21 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071791', 'tblTempUsageDetail_20' ) end [2024-12-21 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071791', 'tblTempVendorCDR_20' ) start [2024-12-21 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071791', 'tblTempVendorCDR_20' ) end [2024-12-21 17:49:17] Production.INFO: ProcessCDR(1,14071791,1,1,2) [2024-12-21 17:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071791', 'tblTempUsageDetail_20' ) start [2024-12-21 17:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071791', 'tblTempUsageDetail_20' ) end [2024-12-21 17:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:49:20] Production.INFO: ==23493== Releasing lock... [2024-12-21 17:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:49:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:50:05 [end_date_ymd] => 2024-12-21 17:50:05 [RateCDR] => 1 ) [2024-12-21 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:50:05' and `end` < '2024-12-21 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:50:17] Production.INFO: count ==1761 [2024-12-21 17:50:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:50:05 - End Time 2024-12-21 17:50:05 [2024-12-21 17:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071796', 'tblTempUsageDetail_20' ) start [2024-12-21 17:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071796', 'tblTempUsageDetail_20' ) end [2024-12-21 17:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071796', 'tblTempVendorCDR_20' ) start [2024-12-21 17:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071796', 'tblTempVendorCDR_20' ) end [2024-12-21 17:50:18] Production.INFO: ProcessCDR(1,14071796,1,1,2) [2024-12-21 17:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071796', 'tblTempUsageDetail_20' ) start [2024-12-21 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071796', 'tblTempUsageDetail_20' ) end [2024-12-21 17:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:50:23] Production.INFO: ==23566== Releasing lock... [2024-12-21 17:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:50:23] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:51:05 [end_date_ymd] => 2024-12-21 17:51:05 [RateCDR] => 1 ) [2024-12-21 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:51:05' and `end` < '2024-12-21 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:51:18] Production.INFO: count ==1768 [2024-12-21 17:51:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:51:05 - End Time 2024-12-21 17:51:05 [2024-12-21 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071802', 'tblTempUsageDetail_20' ) start [2024-12-21 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071802', 'tblTempUsageDetail_20' ) end [2024-12-21 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071802', 'tblTempVendorCDR_20' ) start [2024-12-21 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071802', 'tblTempVendorCDR_20' ) end [2024-12-21 17:51:18] Production.INFO: ProcessCDR(1,14071802,1,1,2) [2024-12-21 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071802', 'tblTempUsageDetail_20' ) start [2024-12-21 17:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071802', 'tblTempUsageDetail_20' ) end [2024-12-21 17:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:51:21] Production.INFO: ==23639== Releasing lock... [2024-12-21 17:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:51:21] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:52:04 [end_date_ymd] => 2024-12-21 17:52:04 [RateCDR] => 1 ) [2024-12-21 17:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 14:52:04' and `end` < '2024-12-21 17:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 17:52:17] Production.INFO: count ==1771 [2024-12-21 17:52:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:52:04 - End Time 2024-12-21 17:52:04 [2024-12-21 17:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071807', 'tblTempUsageDetail_20' ) start [2024-12-21 17:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071807', 'tblTempUsageDetail_20' ) end [2024-12-21 17:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071807', 'tblTempVendorCDR_20' ) start [2024-12-21 17:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071807', 'tblTempVendorCDR_20' ) end [2024-12-21 17:52:17] Production.INFO: ProcessCDR(1,14071807,1,1,2) [2024-12-21 17:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071807', 'tblTempUsageDetail_20' ) start [2024-12-21 17:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071807', 'tblTempUsageDetail_20' ) end [2024-12-21 17:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:52:20] Production.INFO: ==23710== Releasing lock... [2024-12-21 17:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:52:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:53:05 [end_date_ymd] => 2024-12-21 17:53:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:53:05' and `end` < '2024-12-21 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-21 17:53:17] Production.INFO: count ==1769 [2024-12-21 17:53:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:53:05 - End Time 2024-12-21 17:53:05 [2024-12-21 17:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071812', 'tblTempUsageDetail_20' ) start [2024-12-21 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071812', 'tblTempUsageDetail_20' ) end [2024-12-21 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071812', 'tblTempVendorCDR_20' ) start [2024-12-21 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071812', 'tblTempVendorCDR_20' ) end [2024-12-21 17:53:18] Production.INFO: ProcessCDR(1,14071812,1,1,2) [2024-12-21 17:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071812', 'tblTempUsageDetail_20' ) start [2024-12-21 17:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071812', 'tblTempUsageDetail_20' ) end [2024-12-21 17:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:53:21] Production.INFO: ==23781== Releasing lock... [2024-12-21 17:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:53:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:54:04 [end_date_ymd] => 2024-12-21 17:54:04 [RateCDR] => 1 ) [2024-12-21 17: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-21 14:54:04' and `end` < '2024-12-21 17: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-21 17:54:17] Production.INFO: count ==1763 [2024-12-21 17:54:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:54:04 - End Time 2024-12-21 17:54:04 [2024-12-21 17:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071817', 'tblTempUsageDetail_20' ) start [2024-12-21 17:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071817', 'tblTempUsageDetail_20' ) end [2024-12-21 17:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071817', 'tblTempVendorCDR_20' ) start [2024-12-21 17:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071817', 'tblTempVendorCDR_20' ) end [2024-12-21 17:54:17] Production.INFO: ProcessCDR(1,14071817,1,1,2) [2024-12-21 17:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071817', 'tblTempUsageDetail_20' ) start [2024-12-21 17:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071817', 'tblTempUsageDetail_20' ) end [2024-12-21 17:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:54:20] Production.INFO: ==23853== Releasing lock... [2024-12-21 17:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:54:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:55:05 [end_date_ymd] => 2024-12-21 17:55:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:55:05' and `end` < '2024-12-21 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-21 17:55:18] Production.INFO: count ==1785 [2024-12-21 17:55:18] Production.ERROR: pbx CDR StartTime 2024-12-21 14:55:05 - End Time 2024-12-21 17:55:05 [2024-12-21 17:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071822', 'tblTempUsageDetail_20' ) start [2024-12-21 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071822', 'tblTempUsageDetail_20' ) end [2024-12-21 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071822', 'tblTempVendorCDR_20' ) start [2024-12-21 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071822', 'tblTempVendorCDR_20' ) end [2024-12-21 17:55:18] Production.INFO: ProcessCDR(1,14071822,1,1,2) [2024-12-21 17:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071822', 'tblTempUsageDetail_20' ) start [2024-12-21 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071822', 'tblTempUsageDetail_20' ) end [2024-12-21 17:55:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:55:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:55:23] Production.INFO: ==23927== Releasing lock... [2024-12-21 17:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:55:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:56:05 [end_date_ymd] => 2024-12-21 17:56:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:56:05' and `end` < '2024-12-21 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-21 17:56:19] Production.INFO: count ==1748 [2024-12-21 17:56:19] Production.ERROR: pbx CDR StartTime 2024-12-21 14:56:05 - End Time 2024-12-21 17:56:05 [2024-12-21 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071827', 'tblTempUsageDetail_20' ) start [2024-12-21 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071827', 'tblTempUsageDetail_20' ) end [2024-12-21 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071827', 'tblTempVendorCDR_20' ) start [2024-12-21 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071827', 'tblTempVendorCDR_20' ) end [2024-12-21 17:56:19] Production.INFO: ProcessCDR(1,14071827,1,1,2) [2024-12-21 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071827', 'tblTempUsageDetail_20' ) start [2024-12-21 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071827', 'tblTempUsageDetail_20' ) end [2024-12-21 17:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:56:23] Production.INFO: ==23999== Releasing lock... [2024-12-21 17:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:56:23] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:57:05 [end_date_ymd] => 2024-12-21 17:57:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:57:05' and `end` < '2024-12-21 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-21 17:57:19] Production.INFO: count ==1735 [2024-12-21 17:57:19] Production.ERROR: pbx CDR StartTime 2024-12-21 14:57:05 - End Time 2024-12-21 17:57:05 [2024-12-21 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071832', 'tblTempUsageDetail_20' ) start [2024-12-21 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071832', 'tblTempUsageDetail_20' ) end [2024-12-21 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071832', 'tblTempVendorCDR_20' ) start [2024-12-21 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071832', 'tblTempVendorCDR_20' ) end [2024-12-21 17:57:19] Production.INFO: ProcessCDR(1,14071832,1,1,2) [2024-12-21 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071832', 'tblTempUsageDetail_20' ) start [2024-12-21 17:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071832', 'tblTempUsageDetail_20' ) end [2024-12-21 17:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:57:22] Production.INFO: ==24069== Releasing lock... [2024-12-21 17:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:57:22] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:58:05 [end_date_ymd] => 2024-12-21 17:58:05 [RateCDR] => 1 ) [2024-12-21 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-21 14:58:05' and `end` < '2024-12-21 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-21 17:58:18] Production.INFO: count ==1736 [2024-12-21 17:58:19] Production.ERROR: pbx CDR StartTime 2024-12-21 14:58:05 - End Time 2024-12-21 17:58:05 [2024-12-21 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071837', 'tblTempUsageDetail_20' ) start [2024-12-21 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071837', 'tblTempUsageDetail_20' ) end [2024-12-21 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071837', 'tblTempVendorCDR_20' ) start [2024-12-21 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071837', 'tblTempVendorCDR_20' ) end [2024-12-21 17:58:19] Production.INFO: ProcessCDR(1,14071837,1,1,2) [2024-12-21 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071837', 'tblTempUsageDetail_20' ) start [2024-12-21 17:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071837', 'tblTempUsageDetail_20' ) end [2024-12-21 17:58:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:58:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:58:23] Production.INFO: ==24140== Releasing lock... [2024-12-21 17:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:58:23] Production.INFO: 41 MB #Memory Used# [2024-12-21 17:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 14:59:04 [end_date_ymd] => 2024-12-21 17:59:04 [RateCDR] => 1 ) [2024-12-21 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-21 14:59:04' and `end` < '2024-12-21 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-21 17:59:17] Production.INFO: count ==1736 [2024-12-21 17:59:17] Production.ERROR: pbx CDR StartTime 2024-12-21 14:59:04 - End Time 2024-12-21 17:59:04 [2024-12-21 17:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 17:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071842', 'tblTempUsageDetail_20' ) start [2024-12-21 17:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071842', 'tblTempUsageDetail_20' ) end [2024-12-21 17:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071842', 'tblTempVendorCDR_20' ) start [2024-12-21 17:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071842', 'tblTempVendorCDR_20' ) end [2024-12-21 17:59:17] Production.INFO: ProcessCDR(1,14071842,1,1,2) [2024-12-21 17:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 17:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071842', 'tblTempUsageDetail_20' ) start [2024-12-21 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071842', 'tblTempUsageDetail_20' ) end [2024-12-21 17:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 17:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 17:59:21] Production.INFO: ==24213== Releasing lock... [2024-12-21 17:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 17:59:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:00:05 [end_date_ymd] => 2024-12-21 18:00:05 [RateCDR] => 1 ) [2024-12-21 18:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:00:05' and `end` < '2024-12-21 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:00:17] Production.INFO: count ==1729 [2024-12-21 18:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:00:05 - End Time 2024-12-21 18:00:05 [2024-12-21 18:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071848', 'tblTempUsageDetail_20' ) start [2024-12-21 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071848', 'tblTempUsageDetail_20' ) end [2024-12-21 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071848', 'tblTempVendorCDR_20' ) start [2024-12-21 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071848', 'tblTempVendorCDR_20' ) end [2024-12-21 18:00:18] Production.INFO: ProcessCDR(1,14071848,1,1,2) [2024-12-21 18:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071848', 'tblTempUsageDetail_20' ) start [2024-12-21 18:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071848', 'tblTempUsageDetail_20' ) end [2024-12-21 18:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:00:22] Production.INFO: ==24293== Releasing lock... [2024-12-21 18:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:00:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:01:04 [end_date_ymd] => 2024-12-21 18:01:04 [RateCDR] => 1 ) [2024-12-21 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-21 15:01:04' and `end` < '2024-12-21 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-21 18:01:16] Production.INFO: count ==1753 [2024-12-21 18:01:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:01:04 - End Time 2024-12-21 18:01:04 [2024-12-21 18:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071853', 'tblTempUsageDetail_20' ) start [2024-12-21 18:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071853', 'tblTempUsageDetail_20' ) end [2024-12-21 18:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071853', 'tblTempVendorCDR_20' ) start [2024-12-21 18:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071853', 'tblTempVendorCDR_20' ) end [2024-12-21 18:01:17] Production.INFO: ProcessCDR(1,14071853,1,1,2) [2024-12-21 18:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071853', 'tblTempUsageDetail_20' ) start [2024-12-21 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071853', 'tblTempUsageDetail_20' ) end [2024-12-21 18:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:01:21] Production.INFO: ==24379== Releasing lock... [2024-12-21 18:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:01:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:02:05 [end_date_ymd] => 2024-12-21 18:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:02:05' and `end` < '2024-12-21 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-21 18:02:18] Production.INFO: count ==1753 [2024-12-21 18:02:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:02:05 - End Time 2024-12-21 18:02:05 [2024-12-21 18:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071858', 'tblTempUsageDetail_20' ) start [2024-12-21 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071858', 'tblTempUsageDetail_20' ) end [2024-12-21 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071858', 'tblTempVendorCDR_20' ) start [2024-12-21 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071858', 'tblTempVendorCDR_20' ) end [2024-12-21 18:02:18] Production.INFO: ProcessCDR(1,14071858,1,1,2) [2024-12-21 18:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071858', 'tblTempUsageDetail_20' ) start [2024-12-21 18:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071858', 'tblTempUsageDetail_20' ) end [2024-12-21 18:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:02:23] Production.INFO: ==24450== Releasing lock... [2024-12-21 18:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:02:23] Production.INFO: 41 MB #Memory Used# [2024-12-21 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:03:04 [end_date_ymd] => 2024-12-21 18:03:04 [RateCDR] => 1 ) [2024-12-21 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:03:04' and `end` < '2024-12-21 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:03:17] Production.INFO: count ==1749 [2024-12-21 18:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:03:04 - End Time 2024-12-21 18:03:04 [2024-12-21 18:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071863', 'tblTempUsageDetail_20' ) start [2024-12-21 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071863', 'tblTempUsageDetail_20' ) end [2024-12-21 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071863', 'tblTempVendorCDR_20' ) start [2024-12-21 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071863', 'tblTempVendorCDR_20' ) end [2024-12-21 18:03:17] Production.INFO: ProcessCDR(1,14071863,1,1,2) [2024-12-21 18:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071863', 'tblTempUsageDetail_20' ) start [2024-12-21 18:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071863', 'tblTempUsageDetail_20' ) end [2024-12-21 18:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:03:20] Production.INFO: ==24558== Releasing lock... [2024-12-21 18:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:03:20] Production.INFO: 41 MB #Memory Used# [2024-12-21 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:04:05 [end_date_ymd] => 2024-12-21 18:04:05 [RateCDR] => 1 ) [2024-12-21 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:04:05' and `end` < '2024-12-21 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:04:17] Production.INFO: count ==1747 [2024-12-21 18:04:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:04:05 - End Time 2024-12-21 18:04:05 [2024-12-21 18:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071868', 'tblTempUsageDetail_20' ) start [2024-12-21 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071868', 'tblTempUsageDetail_20' ) end [2024-12-21 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071868', 'tblTempVendorCDR_20' ) start [2024-12-21 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071868', 'tblTempVendorCDR_20' ) end [2024-12-21 18:04:17] Production.INFO: ProcessCDR(1,14071868,1,1,2) [2024-12-21 18:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071868', 'tblTempUsageDetail_20' ) start [2024-12-21 18:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071868', 'tblTempUsageDetail_20' ) end [2024-12-21 18:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:04:21] Production.INFO: ==24629== Releasing lock... [2024-12-21 18:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:04:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 18:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:05:04 [end_date_ymd] => 2024-12-21 18:05:04 [RateCDR] => 1 ) [2024-12-21 18: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-21 15:05:04' and `end` < '2024-12-21 18: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-21 18:05:16] Production.INFO: count ==1735 [2024-12-21 18:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:05:04 - End Time 2024-12-21 18:05:04 [2024-12-21 18:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071873', 'tblTempUsageDetail_20' ) start [2024-12-21 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071873', 'tblTempUsageDetail_20' ) end [2024-12-21 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071873', 'tblTempVendorCDR_20' ) start [2024-12-21 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071873', 'tblTempVendorCDR_20' ) end [2024-12-21 18:05:17] Production.INFO: ProcessCDR(1,14071873,1,1,2) [2024-12-21 18:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071873', 'tblTempUsageDetail_20' ) start [2024-12-21 18:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071873', 'tblTempUsageDetail_20' ) end [2024-12-21 18:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:05:20] Production.INFO: ==24700== Releasing lock... [2024-12-21 18:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:05:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:06:04 [end_date_ymd] => 2024-12-21 18:06:04 [RateCDR] => 1 ) [2024-12-21 18:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:06:04' and `end` < '2024-12-21 18:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:06:16] Production.INFO: count ==1724 [2024-12-21 18:06:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:06:04 - End Time 2024-12-21 18:06:04 [2024-12-21 18:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071878', 'tblTempUsageDetail_20' ) start [2024-12-21 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071878', 'tblTempUsageDetail_20' ) end [2024-12-21 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071878', 'tblTempVendorCDR_20' ) start [2024-12-21 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071878', 'tblTempVendorCDR_20' ) end [2024-12-21 18:06:17] Production.INFO: ProcessCDR(1,14071878,1,1,2) [2024-12-21 18:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071878', 'tblTempUsageDetail_20' ) start [2024-12-21 18:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071878', 'tblTempUsageDetail_20' ) end [2024-12-21 18:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:06:20] Production.INFO: ==24776== Releasing lock... [2024-12-21 18:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:06:20] Production.INFO: 41 MB #Memory Used# [2024-12-21 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:07:05 [end_date_ymd] => 2024-12-21 18:07:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:07:05' and `end` < '2024-12-21 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-21 18:07:18] Production.INFO: count ==1713 [2024-12-21 18:07:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:07:05 - End Time 2024-12-21 18:07:05 [2024-12-21 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071883', 'tblTempUsageDetail_20' ) start [2024-12-21 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071883', 'tblTempUsageDetail_20' ) end [2024-12-21 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071883', 'tblTempVendorCDR_20' ) start [2024-12-21 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071883', 'tblTempVendorCDR_20' ) end [2024-12-21 18:07:18] Production.INFO: ProcessCDR(1,14071883,1,1,2) [2024-12-21 18:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071883', 'tblTempUsageDetail_20' ) start [2024-12-21 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071883', 'tblTempUsageDetail_20' ) end [2024-12-21 18:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:07:23] Production.INFO: ==24849== Releasing lock... [2024-12-21 18:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:07:23] Production.INFO: 41 MB #Memory Used# [2024-12-21 18:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:08:04 [end_date_ymd] => 2024-12-21 18:08:04 [RateCDR] => 1 ) [2024-12-21 18:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:08:04' and `end` < '2024-12-21 18:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:08:18] Production.INFO: count ==1713 [2024-12-21 18:08:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:08:04 - End Time 2024-12-21 18:08:04 [2024-12-21 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071888', 'tblTempUsageDetail_20' ) start [2024-12-21 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071888', 'tblTempUsageDetail_20' ) end [2024-12-21 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071888', 'tblTempVendorCDR_20' ) start [2024-12-21 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071888', 'tblTempVendorCDR_20' ) end [2024-12-21 18:08:18] Production.INFO: ProcessCDR(1,14071888,1,1,2) [2024-12-21 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071888', 'tblTempUsageDetail_20' ) start [2024-12-21 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071888', 'tblTempUsageDetail_20' ) end [2024-12-21 18:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:08:23] Production.INFO: ==24919== Releasing lock... [2024-12-21 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:08:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:09:05 [end_date_ymd] => 2024-12-21 18:09:05 [RateCDR] => 1 ) [2024-12-21 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:09:05' and `end` < '2024-12-21 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:09:17] Production.INFO: count ==1714 [2024-12-21 18:09:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:09:05 - End Time 2024-12-21 18:09:05 [2024-12-21 18:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071893', 'tblTempUsageDetail_20' ) start [2024-12-21 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071893', 'tblTempUsageDetail_20' ) end [2024-12-21 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071893', 'tblTempVendorCDR_20' ) start [2024-12-21 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071893', 'tblTempVendorCDR_20' ) end [2024-12-21 18:09:18] Production.INFO: ProcessCDR(1,14071893,1,1,2) [2024-12-21 18:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071893', 'tblTempUsageDetail_20' ) start [2024-12-21 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071893', 'tblTempUsageDetail_20' ) end [2024-12-21 18:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:09:22] Production.INFO: ==24992== Releasing lock... [2024-12-21 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:09:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:10:05 [end_date_ymd] => 2024-12-21 18:10:05 [RateCDR] => 1 ) [2024-12-21 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:10:05' and `end` < '2024-12-21 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:10:18] Production.INFO: count ==1713 [2024-12-21 18:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:10:05 - End Time 2024-12-21 18:10:05 [2024-12-21 18:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071899', 'tblTempUsageDetail_20' ) start [2024-12-21 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071899', 'tblTempUsageDetail_20' ) end [2024-12-21 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071899', 'tblTempVendorCDR_20' ) start [2024-12-21 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071899', 'tblTempVendorCDR_20' ) end [2024-12-21 18:10:18] Production.INFO: ProcessCDR(1,14071899,1,1,2) [2024-12-21 18:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071899', 'tblTempUsageDetail_20' ) start [2024-12-21 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071899', 'tblTempUsageDetail_20' ) end [2024-12-21 18:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:10:23] Production.INFO: ==25064== Releasing lock... [2024-12-21 18:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:10:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:11:05 [end_date_ymd] => 2024-12-21 18:11:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:11:05' and `end` < '2024-12-21 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-21 18:11:18] Production.INFO: count ==1772 [2024-12-21 18:11:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:11:05 - End Time 2024-12-21 18:11:05 [2024-12-21 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071904', 'tblTempUsageDetail_20' ) start [2024-12-21 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071904', 'tblTempUsageDetail_20' ) end [2024-12-21 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071904', 'tblTempVendorCDR_20' ) start [2024-12-21 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071904', 'tblTempVendorCDR_20' ) end [2024-12-21 18:11:18] Production.INFO: ProcessCDR(1,14071904,1,1,2) [2024-12-21 18:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071904', 'tblTempUsageDetail_20' ) start [2024-12-21 18:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071904', 'tblTempUsageDetail_20' ) end [2024-12-21 18:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:11:21] Production.INFO: ==25138== Releasing lock... [2024-12-21 18:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:11:21] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:12:05 [end_date_ymd] => 2024-12-21 18:12:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:12:05' and `end` < '2024-12-21 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-21 18:12:19] Production.INFO: count ==1772 [2024-12-21 18:12:19] Production.ERROR: pbx CDR StartTime 2024-12-21 15:12:05 - End Time 2024-12-21 18:12:05 [2024-12-21 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071909', 'tblTempUsageDetail_20' ) start [2024-12-21 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071909', 'tblTempUsageDetail_20' ) end [2024-12-21 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071909', 'tblTempVendorCDR_20' ) start [2024-12-21 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071909', 'tblTempVendorCDR_20' ) end [2024-12-21 18:12:19] Production.INFO: ProcessCDR(1,14071909,1,1,2) [2024-12-21 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071909', 'tblTempUsageDetail_20' ) start [2024-12-21 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071909', 'tblTempUsageDetail_20' ) end [2024-12-21 18:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:12:23] Production.INFO: ==25208== Releasing lock... [2024-12-21 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:12:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 18:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:13:04 [end_date_ymd] => 2024-12-21 18:13:04 [RateCDR] => 1 ) [2024-12-21 18:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:13:04' and `end` < '2024-12-21 18:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:13:16] Production.INFO: count ==1771 [2024-12-21 18:13:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:13:04 - End Time 2024-12-21 18:13:04 [2024-12-21 18:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071914', 'tblTempUsageDetail_20' ) start [2024-12-21 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071914', 'tblTempUsageDetail_20' ) end [2024-12-21 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071914', 'tblTempVendorCDR_20' ) start [2024-12-21 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071914', 'tblTempVendorCDR_20' ) end [2024-12-21 18:13:17] Production.INFO: ProcessCDR(1,14071914,1,1,2) [2024-12-21 18:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071914', 'tblTempUsageDetail_20' ) start [2024-12-21 18:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071914', 'tblTempUsageDetail_20' ) end [2024-12-21 18:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:13:20] Production.INFO: ==25278== Releasing lock... [2024-12-21 18:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:13:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:14:05 [end_date_ymd] => 2024-12-21 18:14:05 [RateCDR] => 1 ) [2024-12-21 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:14:05' and `end` < '2024-12-21 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:14:17] Production.INFO: count ==1776 [2024-12-21 18:14:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:14:05 - End Time 2024-12-21 18:14:05 [2024-12-21 18:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071919', 'tblTempUsageDetail_20' ) start [2024-12-21 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071919', 'tblTempUsageDetail_20' ) end [2024-12-21 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071919', 'tblTempVendorCDR_20' ) start [2024-12-21 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071919', 'tblTempVendorCDR_20' ) end [2024-12-21 18:14:18] Production.INFO: ProcessCDR(1,14071919,1,1,2) [2024-12-21 18:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071919', 'tblTempUsageDetail_20' ) start [2024-12-21 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071919', 'tblTempUsageDetail_20' ) end [2024-12-21 18:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:14:23] Production.INFO: ==25357== Releasing lock... [2024-12-21 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:14:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:15:05 [end_date_ymd] => 2024-12-21 18:15:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:15:05' and `end` < '2024-12-21 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-21 18:15:17] Production.INFO: count ==1777 [2024-12-21 18:15:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:15:05 - End Time 2024-12-21 18:15:05 [2024-12-21 18:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071924', 'tblTempUsageDetail_20' ) start [2024-12-21 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071924', 'tblTempUsageDetail_20' ) end [2024-12-21 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071924', 'tblTempVendorCDR_20' ) start [2024-12-21 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071924', 'tblTempVendorCDR_20' ) end [2024-12-21 18:15:17] Production.INFO: ProcessCDR(1,14071924,1,1,2) [2024-12-21 18:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071924', 'tblTempUsageDetail_20' ) start [2024-12-21 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071924', 'tblTempUsageDetail_20' ) end [2024-12-21 18:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:15:22] Production.INFO: ==25433== Releasing lock... [2024-12-21 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:15:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:16:05 [end_date_ymd] => 2024-12-21 18:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:16:05' and `end` < '2024-12-21 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-21 18:16:17] Production.INFO: count ==1776 [2024-12-21 18:16:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:16:05 - End Time 2024-12-21 18:16:05 [2024-12-21 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071929', 'tblTempUsageDetail_20' ) start [2024-12-21 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071929', 'tblTempUsageDetail_20' ) end [2024-12-21 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071929', 'tblTempVendorCDR_20' ) start [2024-12-21 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071929', 'tblTempVendorCDR_20' ) end [2024-12-21 18:16:18] Production.INFO: ProcessCDR(1,14071929,1,1,2) [2024-12-21 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071929', 'tblTempUsageDetail_20' ) start [2024-12-21 18:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071929', 'tblTempUsageDetail_20' ) end [2024-12-21 18:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:16:21] Production.INFO: ==25504== Releasing lock... [2024-12-21 18:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:16:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:17:04 [end_date_ymd] => 2024-12-21 18:17:04 [RateCDR] => 1 ) [2024-12-21 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-21 15:17:04' and `end` < '2024-12-21 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-21 18:17:17] Production.INFO: count ==1780 [2024-12-21 18:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:17:04 - End Time 2024-12-21 18:17:04 [2024-12-21 18:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071934', 'tblTempUsageDetail_20' ) start [2024-12-21 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071934', 'tblTempUsageDetail_20' ) end [2024-12-21 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071934', 'tblTempVendorCDR_20' ) start [2024-12-21 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071934', 'tblTempVendorCDR_20' ) end [2024-12-21 18:17:17] Production.INFO: ProcessCDR(1,14071934,1,1,2) [2024-12-21 18:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071934', 'tblTempUsageDetail_20' ) start [2024-12-21 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071934', 'tblTempUsageDetail_20' ) end [2024-12-21 18:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:17:22] Production.INFO: ==25575== Releasing lock... [2024-12-21 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:17:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:18:05 [end_date_ymd] => 2024-12-21 18:18:05 [RateCDR] => 1 ) [2024-12-21 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:18:05' and `end` < '2024-12-21 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:18:17] Production.INFO: count ==1778 [2024-12-21 18:18:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:18:05 - End Time 2024-12-21 18:18:05 [2024-12-21 18:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071939', 'tblTempUsageDetail_20' ) start [2024-12-21 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071939', 'tblTempUsageDetail_20' ) end [2024-12-21 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071939', 'tblTempVendorCDR_20' ) start [2024-12-21 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071939', 'tblTempVendorCDR_20' ) end [2024-12-21 18:18:18] Production.INFO: ProcessCDR(1,14071939,1,1,2) [2024-12-21 18:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071939', 'tblTempUsageDetail_20' ) start [2024-12-21 18:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071939', 'tblTempUsageDetail_20' ) end [2024-12-21 18:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:18:21] Production.INFO: ==25646== Releasing lock... [2024-12-21 18:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:18:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:19:04 [end_date_ymd] => 2024-12-21 18:19:04 [RateCDR] => 1 ) [2024-12-21 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-21 15:19:04' and `end` < '2024-12-21 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-21 18:19:17] Production.INFO: count ==1778 [2024-12-21 18:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:19:04 - End Time 2024-12-21 18:19:04 [2024-12-21 18:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071944', 'tblTempUsageDetail_20' ) start [2024-12-21 18:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071944', 'tblTempUsageDetail_20' ) end [2024-12-21 18:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071944', 'tblTempVendorCDR_20' ) start [2024-12-21 18:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071944', 'tblTempVendorCDR_20' ) end [2024-12-21 18:19:17] Production.INFO: ProcessCDR(1,14071944,1,1,2) [2024-12-21 18:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071944', 'tblTempUsageDetail_20' ) start [2024-12-21 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071944', 'tblTempUsageDetail_20' ) end [2024-12-21 18:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:19:21] Production.INFO: ==25755== Releasing lock... [2024-12-21 18:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:19:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:20:05 [end_date_ymd] => 2024-12-21 18:20:05 [RateCDR] => 1 ) [2024-12-21 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:20:05' and `end` < '2024-12-21 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:20:18] Production.INFO: count ==1778 [2024-12-21 18:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:20:05 - End Time 2024-12-21 18:20:05 [2024-12-21 18:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071950', 'tblTempUsageDetail_20' ) start [2024-12-21 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071950', 'tblTempUsageDetail_20' ) end [2024-12-21 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071950', 'tblTempVendorCDR_20' ) start [2024-12-21 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071950', 'tblTempVendorCDR_20' ) end [2024-12-21 18:20:18] Production.INFO: ProcessCDR(1,14071950,1,1,2) [2024-12-21 18:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071950', 'tblTempUsageDetail_20' ) start [2024-12-21 18:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071950', 'tblTempUsageDetail_20' ) end [2024-12-21 18:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:20:21] Production.INFO: ==25827== Releasing lock... [2024-12-21 18:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:20:21] Production.INFO: 42 MB #Memory Used# [2024-12-21 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:21:05 [end_date_ymd] => 2024-12-21 18:21:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:21:05' and `end` < '2024-12-21 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-21 18:21:17] Production.INFO: count ==1812 [2024-12-21 18:21:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:21:05 - End Time 2024-12-21 18:21:05 [2024-12-21 18:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071955', 'tblTempUsageDetail_20' ) start [2024-12-21 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071955', 'tblTempUsageDetail_20' ) end [2024-12-21 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071955', 'tblTempVendorCDR_20' ) start [2024-12-21 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071955', 'tblTempVendorCDR_20' ) end [2024-12-21 18:21:18] Production.INFO: ProcessCDR(1,14071955,1,1,2) [2024-12-21 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071955', 'tblTempUsageDetail_20' ) start [2024-12-21 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071955', 'tblTempUsageDetail_20' ) end [2024-12-21 18:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:21:22] Production.INFO: ==25900== Releasing lock... [2024-12-21 18:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:21:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:22:05 [end_date_ymd] => 2024-12-21 18:22:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:22:05' and `end` < '2024-12-21 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-21 18:22:18] Production.INFO: count ==1812 [2024-12-21 18:22:19] Production.ERROR: pbx CDR StartTime 2024-12-21 15:22:05 - End Time 2024-12-21 18:22:05 [2024-12-21 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071960', 'tblTempUsageDetail_20' ) start [2024-12-21 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071960', 'tblTempUsageDetail_20' ) end [2024-12-21 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071960', 'tblTempVendorCDR_20' ) start [2024-12-21 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071960', 'tblTempVendorCDR_20' ) end [2024-12-21 18:22:19] Production.INFO: ProcessCDR(1,14071960,1,1,2) [2024-12-21 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071960', 'tblTempUsageDetail_20' ) start [2024-12-21 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071960', 'tblTempUsageDetail_20' ) end [2024-12-21 18:22:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:22:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:22:24] Production.INFO: ==25974== Releasing lock... [2024-12-21 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:22:24] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 18:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:23:04 [end_date_ymd] => 2024-12-21 18:23:04 [RateCDR] => 1 ) [2024-12-21 18:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:23:04' and `end` < '2024-12-21 18:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:23:16] Production.INFO: count ==1811 [2024-12-21 18:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:23:04 - End Time 2024-12-21 18:23:04 [2024-12-21 18:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071965', 'tblTempUsageDetail_20' ) start [2024-12-21 18:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071965', 'tblTempUsageDetail_20' ) end [2024-12-21 18:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071965', 'tblTempVendorCDR_20' ) start [2024-12-21 18:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071965', 'tblTempVendorCDR_20' ) end [2024-12-21 18:23:17] Production.INFO: ProcessCDR(1,14071965,1,1,2) [2024-12-21 18:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071965', 'tblTempUsageDetail_20' ) start [2024-12-21 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071965', 'tblTempUsageDetail_20' ) end [2024-12-21 18:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:23:21] Production.INFO: ==26046== Releasing lock... [2024-12-21 18:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:23:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:24:05 [end_date_ymd] => 2024-12-21 18:24:05 [RateCDR] => 1 ) [2024-12-21 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:24:05' and `end` < '2024-12-21 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:24:18] Production.INFO: count ==1813 [2024-12-21 18:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:24:05 - End Time 2024-12-21 18:24:05 [2024-12-21 18:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071970', 'tblTempUsageDetail_20' ) start [2024-12-21 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071970', 'tblTempUsageDetail_20' ) end [2024-12-21 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071970', 'tblTempVendorCDR_20' ) start [2024-12-21 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071970', 'tblTempVendorCDR_20' ) end [2024-12-21 18:24:18] Production.INFO: ProcessCDR(1,14071970,1,1,2) [2024-12-21 18:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071970', 'tblTempUsageDetail_20' ) start [2024-12-21 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071970', 'tblTempUsageDetail_20' ) end [2024-12-21 18:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:24:23] Production.INFO: ==26116== Releasing lock... [2024-12-21 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:24:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:25:05 [end_date_ymd] => 2024-12-21 18:25:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:25:05' and `end` < '2024-12-21 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-21 18:25:18] Production.INFO: count ==1813 [2024-12-21 18:25:19] Production.ERROR: pbx CDR StartTime 2024-12-21 15:25:05 - End Time 2024-12-21 18:25:05 [2024-12-21 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071975', 'tblTempUsageDetail_20' ) start [2024-12-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071975', 'tblTempUsageDetail_20' ) end [2024-12-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071975', 'tblTempVendorCDR_20' ) start [2024-12-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071975', 'tblTempVendorCDR_20' ) end [2024-12-21 18:25:19] Production.INFO: ProcessCDR(1,14071975,1,1,2) [2024-12-21 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071975', 'tblTempUsageDetail_20' ) start [2024-12-21 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071975', 'tblTempUsageDetail_20' ) end [2024-12-21 18:25:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:25:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:25:23] Production.INFO: ==26193== Releasing lock... [2024-12-21 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:25:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:26:05 [end_date_ymd] => 2024-12-21 18:26:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:26:05' and `end` < '2024-12-21 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-21 18:26:18] Production.INFO: count ==1813 [2024-12-21 18:26:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:26:05 - End Time 2024-12-21 18:26:05 [2024-12-21 18:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071980', 'tblTempUsageDetail_20' ) start [2024-12-21 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071980', 'tblTempUsageDetail_20' ) end [2024-12-21 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071980', 'tblTempVendorCDR_20' ) start [2024-12-21 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071980', 'tblTempVendorCDR_20' ) end [2024-12-21 18:26:19] Production.INFO: ProcessCDR(1,14071980,1,1,2) [2024-12-21 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071980', 'tblTempUsageDetail_20' ) start [2024-12-21 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071980', 'tblTempUsageDetail_20' ) end [2024-12-21 18:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:26:22] Production.INFO: ==26263== Releasing lock... [2024-12-21 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:26:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:27:04 [end_date_ymd] => 2024-12-21 18:27:04 [RateCDR] => 1 ) [2024-12-21 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-21 15:27:04' and `end` < '2024-12-21 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-21 18:27:16] Production.INFO: count ==1815 [2024-12-21 18:27:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:27:04 - End Time 2024-12-21 18:27:04 [2024-12-21 18:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071985', 'tblTempUsageDetail_20' ) start [2024-12-21 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071985', 'tblTempUsageDetail_20' ) end [2024-12-21 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071985', 'tblTempVendorCDR_20' ) start [2024-12-21 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071985', 'tblTempVendorCDR_20' ) end [2024-12-21 18:27:17] Production.INFO: ProcessCDR(1,14071985,1,1,2) [2024-12-21 18:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071985', 'tblTempUsageDetail_20' ) start [2024-12-21 18:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071985', 'tblTempUsageDetail_20' ) end [2024-12-21 18:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:27:21] Production.INFO: ==26331== Releasing lock... [2024-12-21 18:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:27:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 18:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:28:04 [end_date_ymd] => 2024-12-21 18:28:04 [RateCDR] => 1 ) [2024-12-21 18:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:28:04' and `end` < '2024-12-21 18:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:28:17] Production.INFO: count ==1815 [2024-12-21 18:28:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:28:04 - End Time 2024-12-21 18:28:04 [2024-12-21 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071990', 'tblTempUsageDetail_20' ) start [2024-12-21 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071990', 'tblTempUsageDetail_20' ) end [2024-12-21 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071990', 'tblTempVendorCDR_20' ) start [2024-12-21 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071990', 'tblTempVendorCDR_20' ) end [2024-12-21 18:28:18] Production.INFO: ProcessCDR(1,14071990,1,1,2) [2024-12-21 18:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071990', 'tblTempUsageDetail_20' ) start [2024-12-21 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071990', 'tblTempUsageDetail_20' ) end [2024-12-21 18:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:28:22] Production.INFO: ==26407== Releasing lock... [2024-12-21 18:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:28:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:29:05 [end_date_ymd] => 2024-12-21 18:29:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:29:05' and `end` < '2024-12-21 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-21 18:29:17] Production.INFO: count ==1799 [2024-12-21 18:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:29:05 - End Time 2024-12-21 18:29:05 [2024-12-21 18:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071995', 'tblTempUsageDetail_20' ) start [2024-12-21 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14071995', 'tblTempUsageDetail_20' ) end [2024-12-21 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071995', 'tblTempVendorCDR_20' ) start [2024-12-21 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14071995', 'tblTempVendorCDR_20' ) end [2024-12-21 18:29:17] Production.INFO: ProcessCDR(1,14071995,1,1,2) [2024-12-21 18:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14071995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14071995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14071995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14071995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071995', 'tblTempUsageDetail_20' ) start [2024-12-21 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14071995', 'tblTempUsageDetail_20' ) end [2024-12-21 18:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:29:22] Production.INFO: ==26484== Releasing lock... [2024-12-21 18:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:29:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:30:05 [end_date_ymd] => 2024-12-21 18:30:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:30:05' and `end` < '2024-12-21 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-21 18:30:18] Production.INFO: count ==1785 [2024-12-21 18:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:30:05 - End Time 2024-12-21 18:30:05 [2024-12-21 18:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072000', 'tblTempUsageDetail_20' ) start [2024-12-21 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072000', 'tblTempUsageDetail_20' ) end [2024-12-21 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072000', 'tblTempVendorCDR_20' ) start [2024-12-21 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072000', 'tblTempVendorCDR_20' ) end [2024-12-21 18:30:18] Production.INFO: ProcessCDR(1,14072000,1,1,2) [2024-12-21 18:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072000', 'tblTempUsageDetail_20' ) start [2024-12-21 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072000', 'tblTempUsageDetail_20' ) end [2024-12-21 18:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:30:23] Production.INFO: ==26558== Releasing lock... [2024-12-21 18:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:30:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:31:05 [end_date_ymd] => 2024-12-21 18:31:05 [RateCDR] => 1 ) [2024-12-21 18: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-21 15:31:05' and `end` < '2024-12-21 18: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-21 18:31:19] Production.INFO: count ==1789 [2024-12-21 18:31:20] Production.ERROR: pbx CDR StartTime 2024-12-21 15:31:05 - End Time 2024-12-21 18:31:05 [2024-12-21 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072006', 'tblTempUsageDetail_20' ) start [2024-12-21 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072006', 'tblTempUsageDetail_20' ) end [2024-12-21 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072006', 'tblTempVendorCDR_20' ) start [2024-12-21 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072006', 'tblTempVendorCDR_20' ) end [2024-12-21 18:31:20] Production.INFO: ProcessCDR(1,14072006,1,1,2) [2024-12-21 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072006', 'tblTempUsageDetail_20' ) start [2024-12-21 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072006', 'tblTempUsageDetail_20' ) end [2024-12-21 18:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:31:23] Production.INFO: ==26631== Releasing lock... [2024-12-21 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:31:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:32:06 [end_date_ymd] => 2024-12-21 18:32:06 [RateCDR] => 1 ) [2024-12-21 18:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:32:06' and `end` < '2024-12-21 18:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:32:18] Production.INFO: count ==1791 [2024-12-21 18:32:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:32:06 - End Time 2024-12-21 18:32:06 [2024-12-21 18:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072011', 'tblTempUsageDetail_20' ) start [2024-12-21 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072011', 'tblTempUsageDetail_20' ) end [2024-12-21 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072011', 'tblTempVendorCDR_20' ) start [2024-12-21 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072011', 'tblTempVendorCDR_20' ) end [2024-12-21 18:32:18] Production.INFO: ProcessCDR(1,14072011,1,1,2) [2024-12-21 18:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072011', 'tblTempUsageDetail_20' ) start [2024-12-21 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072011', 'tblTempUsageDetail_20' ) end [2024-12-21 18:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:32:23] Production.INFO: ==26700== Releasing lock... [2024-12-21 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:32:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:33:05 [end_date_ymd] => 2024-12-21 18:33:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:33:05' and `end` < '2024-12-21 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-21 18:33:18] Production.INFO: count ==1788 [2024-12-21 18:33:19] Production.ERROR: pbx CDR StartTime 2024-12-21 15:33:05 - End Time 2024-12-21 18:33:05 [2024-12-21 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072016', 'tblTempUsageDetail_20' ) start [2024-12-21 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072016', 'tblTempUsageDetail_20' ) end [2024-12-21 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072016', 'tblTempVendorCDR_20' ) start [2024-12-21 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072016', 'tblTempVendorCDR_20' ) end [2024-12-21 18:33:19] Production.INFO: ProcessCDR(1,14072016,1,1,2) [2024-12-21 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072016', 'tblTempUsageDetail_20' ) start [2024-12-21 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072016', 'tblTempUsageDetail_20' ) end [2024-12-21 18:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:33:22] Production.INFO: ==26770== Releasing lock... [2024-12-21 18:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:33:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:34:04 [end_date_ymd] => 2024-12-21 18:34:04 [RateCDR] => 1 ) [2024-12-21 18:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:34:04' and `end` < '2024-12-21 18:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:34:17] Production.INFO: count ==1788 [2024-12-21 18:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:34:04 - End Time 2024-12-21 18:34:04 [2024-12-21 18:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072021', 'tblTempUsageDetail_20' ) start [2024-12-21 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072021', 'tblTempUsageDetail_20' ) end [2024-12-21 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072021', 'tblTempVendorCDR_20' ) start [2024-12-21 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072021', 'tblTempVendorCDR_20' ) end [2024-12-21 18:34:18] Production.INFO: ProcessCDR(1,14072021,1,1,2) [2024-12-21 18:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072021', 'tblTempUsageDetail_20' ) start [2024-12-21 18:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072021', 'tblTempUsageDetail_20' ) end [2024-12-21 18:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:34:22] Production.INFO: ==26878== Releasing lock... [2024-12-21 18:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:34:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:35:05 [end_date_ymd] => 2024-12-21 18:35:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:35:05' and `end` < '2024-12-21 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-21 18:35:17] Production.INFO: count ==1791 [2024-12-21 18:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:35:05 - End Time 2024-12-21 18:35:05 [2024-12-21 18:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072026', 'tblTempUsageDetail_20' ) start [2024-12-21 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072026', 'tblTempUsageDetail_20' ) end [2024-12-21 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072026', 'tblTempVendorCDR_20' ) start [2024-12-21 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072026', 'tblTempVendorCDR_20' ) end [2024-12-21 18:35:17] Production.INFO: ProcessCDR(1,14072026,1,1,2) [2024-12-21 18:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072026', 'tblTempUsageDetail_20' ) start [2024-12-21 18:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072026', 'tblTempUsageDetail_20' ) end [2024-12-21 18:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:35:20] Production.INFO: ==26954== Releasing lock... [2024-12-21 18:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:35:20] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:36:05 [end_date_ymd] => 2024-12-21 18:36:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:36:05' and `end` < '2024-12-21 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-21 18:36:19] Production.INFO: count ==1800 [2024-12-21 18:36:19] Production.ERROR: pbx CDR StartTime 2024-12-21 15:36:05 - End Time 2024-12-21 18:36:05 [2024-12-21 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072031', 'tblTempUsageDetail_20' ) start [2024-12-21 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072031', 'tblTempUsageDetail_20' ) end [2024-12-21 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072031', 'tblTempVendorCDR_20' ) start [2024-12-21 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072031', 'tblTempVendorCDR_20' ) end [2024-12-21 18:36:19] Production.INFO: ProcessCDR(1,14072031,1,1,2) [2024-12-21 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072031', 'tblTempUsageDetail_20' ) start [2024-12-21 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072031', 'tblTempUsageDetail_20' ) end [2024-12-21 18:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:36:23] Production.INFO: ==27032== Releasing lock... [2024-12-21 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:36:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:37:04 [end_date_ymd] => 2024-12-21 18:37:04 [RateCDR] => 1 ) [2024-12-21 18:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:37:04' and `end` < '2024-12-21 18:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:37:17] Production.INFO: count ==1801 [2024-12-21 18:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:37:04 - End Time 2024-12-21 18:37:04 [2024-12-21 18:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072036', 'tblTempUsageDetail_20' ) start [2024-12-21 18:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072036', 'tblTempUsageDetail_20' ) end [2024-12-21 18:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072036', 'tblTempVendorCDR_20' ) start [2024-12-21 18:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072036', 'tblTempVendorCDR_20' ) end [2024-12-21 18:37:17] Production.INFO: ProcessCDR(1,14072036,1,1,2) [2024-12-21 18:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072036', 'tblTempUsageDetail_20' ) start [2024-12-21 18:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072036', 'tblTempUsageDetail_20' ) end [2024-12-21 18:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:37:20] Production.INFO: ==27107== Releasing lock... [2024-12-21 18:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:37:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:38:05 [end_date_ymd] => 2024-12-21 18:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:38:05' and `end` < '2024-12-21 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-21 18:38:20] Production.INFO: count ==1801 [2024-12-21 18:38:20] Production.ERROR: pbx CDR StartTime 2024-12-21 15:38:05 - End Time 2024-12-21 18:38:05 [2024-12-21 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072041', 'tblTempUsageDetail_20' ) start [2024-12-21 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072041', 'tblTempUsageDetail_20' ) end [2024-12-21 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072041', 'tblTempVendorCDR_20' ) start [2024-12-21 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072041', 'tblTempVendorCDR_20' ) end [2024-12-21 18:38:20] Production.INFO: ProcessCDR(1,14072041,1,1,2) [2024-12-21 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072041', 'tblTempUsageDetail_20' ) start [2024-12-21 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072041', 'tblTempUsageDetail_20' ) end [2024-12-21 18:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:38:23] Production.INFO: ==27178== Releasing lock... [2024-12-21 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:38:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:39:04 [end_date_ymd] => 2024-12-21 18:39:04 [RateCDR] => 1 ) [2024-12-21 18: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-21 15:39:04' and `end` < '2024-12-21 18: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-21 18:39:18] Production.INFO: count ==1793 [2024-12-21 18:39:19] Production.ERROR: pbx CDR StartTime 2024-12-21 15:39:04 - End Time 2024-12-21 18:39:04 [2024-12-21 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072046', 'tblTempUsageDetail_20' ) start [2024-12-21 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072046', 'tblTempUsageDetail_20' ) end [2024-12-21 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072046', 'tblTempVendorCDR_20' ) start [2024-12-21 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072046', 'tblTempVendorCDR_20' ) end [2024-12-21 18:39:19] Production.INFO: ProcessCDR(1,14072046,1,1,2) [2024-12-21 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072046', 'tblTempUsageDetail_20' ) start [2024-12-21 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072046', 'tblTempUsageDetail_20' ) end [2024-12-21 18:39:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:39:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:39:23] Production.INFO: ==27252== Releasing lock... [2024-12-21 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:39:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:40:06 [end_date_ymd] => 2024-12-21 18:40:06 [RateCDR] => 1 ) [2024-12-21 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:40:06' and `end` < '2024-12-21 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:40:18] Production.INFO: count ==1793 [2024-12-21 18:40:19] Production.ERROR: pbx CDR StartTime 2024-12-21 15:40:06 - End Time 2024-12-21 18:40:06 [2024-12-21 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072052', 'tblTempUsageDetail_20' ) start [2024-12-21 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072052', 'tblTempUsageDetail_20' ) end [2024-12-21 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072052', 'tblTempVendorCDR_20' ) start [2024-12-21 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072052', 'tblTempVendorCDR_20' ) end [2024-12-21 18:40:19] Production.INFO: ProcessCDR(1,14072052,1,1,2) [2024-12-21 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072052', 'tblTempUsageDetail_20' ) start [2024-12-21 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072052', 'tblTempUsageDetail_20' ) end [2024-12-21 18:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:40:22] Production.INFO: ==27327== Releasing lock... [2024-12-21 18:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:40:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:41:04 [end_date_ymd] => 2024-12-21 18:41:04 [RateCDR] => 1 ) [2024-12-21 18:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:41:04' and `end` < '2024-12-21 18:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:41:17] Production.INFO: count ==1798 [2024-12-21 18:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:41:04 - End Time 2024-12-21 18:41:04 [2024-12-21 18:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072057', 'tblTempUsageDetail_20' ) start [2024-12-21 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072057', 'tblTempUsageDetail_20' ) end [2024-12-21 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072057', 'tblTempVendorCDR_20' ) start [2024-12-21 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072057', 'tblTempVendorCDR_20' ) end [2024-12-21 18:41:17] Production.INFO: ProcessCDR(1,14072057,1,1,2) [2024-12-21 18:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072057', 'tblTempUsageDetail_20' ) start [2024-12-21 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072057', 'tblTempUsageDetail_20' ) end [2024-12-21 18:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:41:22] Production.INFO: ==27412== Releasing lock... [2024-12-21 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:41:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:42:05 [end_date_ymd] => 2024-12-21 18:42:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:42:05' and `end` < '2024-12-21 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-21 18:42:17] Production.INFO: count ==1800 [2024-12-21 18:42:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:42:05 - End Time 2024-12-21 18:42:05 [2024-12-21 18:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072062', 'tblTempUsageDetail_20' ) start [2024-12-21 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072062', 'tblTempUsageDetail_20' ) end [2024-12-21 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072062', 'tblTempVendorCDR_20' ) start [2024-12-21 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072062', 'tblTempVendorCDR_20' ) end [2024-12-21 18:42:17] Production.INFO: ProcessCDR(1,14072062,1,1,2) [2024-12-21 18:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072062', 'tblTempUsageDetail_20' ) start [2024-12-21 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072062', 'tblTempUsageDetail_20' ) end [2024-12-21 18:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:42:22] Production.INFO: ==27491== Releasing lock... [2024-12-21 18:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:42:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:43:04 [end_date_ymd] => 2024-12-21 18:43:04 [RateCDR] => 1 ) [2024-12-21 18:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:43:04' and `end` < '2024-12-21 18:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:43:17] Production.INFO: count ==1786 [2024-12-21 18:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:43:04 - End Time 2024-12-21 18:43:04 [2024-12-21 18:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072067', 'tblTempUsageDetail_20' ) start [2024-12-21 18:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072067', 'tblTempUsageDetail_20' ) end [2024-12-21 18:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072067', 'tblTempVendorCDR_20' ) start [2024-12-21 18:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072067', 'tblTempVendorCDR_20' ) end [2024-12-21 18:43:17] Production.INFO: ProcessCDR(1,14072067,1,1,2) [2024-12-21 18:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072067', 'tblTempUsageDetail_20' ) start [2024-12-21 18:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072067', 'tblTempUsageDetail_20' ) end [2024-12-21 18:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:43:20] Production.INFO: ==27571== Releasing lock... [2024-12-21 18:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:43:20] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:44:05 [end_date_ymd] => 2024-12-21 18:44:05 [RateCDR] => 1 ) [2024-12-21 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:44:05' and `end` < '2024-12-21 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:44:18] Production.INFO: count ==1777 [2024-12-21 18:44:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:44:05 - End Time 2024-12-21 18:44:05 [2024-12-21 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072072', 'tblTempUsageDetail_20' ) start [2024-12-21 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072072', 'tblTempUsageDetail_20' ) end [2024-12-21 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072072', 'tblTempVendorCDR_20' ) start [2024-12-21 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072072', 'tblTempVendorCDR_20' ) end [2024-12-21 18:44:18] Production.INFO: ProcessCDR(1,14072072,1,1,2) [2024-12-21 18:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072072', 'tblTempUsageDetail_20' ) start [2024-12-21 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072072', 'tblTempUsageDetail_20' ) end [2024-12-21 18:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:44:23] Production.INFO: ==27653== Releasing lock... [2024-12-21 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:44:23] Production.INFO: 41 MB #Memory Used# [2024-12-21 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:45:05 [end_date_ymd] => 2024-12-21 18:45:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:45:05' and `end` < '2024-12-21 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-21 18:45:17] Production.INFO: count ==1776 [2024-12-21 18:45:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:45:05 - End Time 2024-12-21 18:45:05 [2024-12-21 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072077', 'tblTempUsageDetail_20' ) start [2024-12-21 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072077', 'tblTempUsageDetail_20' ) end [2024-12-21 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072077', 'tblTempVendorCDR_20' ) start [2024-12-21 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072077', 'tblTempVendorCDR_20' ) end [2024-12-21 18:45:18] Production.INFO: ProcessCDR(1,14072077,1,1,2) [2024-12-21 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072077', 'tblTempUsageDetail_20' ) start [2024-12-21 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072077', 'tblTempUsageDetail_20' ) end [2024-12-21 18:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:45:22] Production.INFO: ==27748== Releasing lock... [2024-12-21 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:45:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 18:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:46:04 [end_date_ymd] => 2024-12-21 18:46:04 [RateCDR] => 1 ) [2024-12-21 18: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-21 15:46:04' and `end` < '2024-12-21 18: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-21 18:46:16] Production.INFO: count ==1774 [2024-12-21 18:46:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:46:04 - End Time 2024-12-21 18:46:04 [2024-12-21 18:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072082', 'tblTempUsageDetail_20' ) start [2024-12-21 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072082', 'tblTempUsageDetail_20' ) end [2024-12-21 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072082', 'tblTempVendorCDR_20' ) start [2024-12-21 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072082', 'tblTempVendorCDR_20' ) end [2024-12-21 18:46:17] Production.INFO: ProcessCDR(1,14072082,1,1,2) [2024-12-21 18:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072082', 'tblTempUsageDetail_20' ) start [2024-12-21 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072082', 'tblTempUsageDetail_20' ) end [2024-12-21 18:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:46:21] Production.INFO: ==27839== Releasing lock... [2024-12-21 18:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:46:21] Production.INFO: 41 MB #Memory Used# [2024-12-21 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:47:05 [end_date_ymd] => 2024-12-21 18:47:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:47:05' and `end` < '2024-12-21 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-21 18:47:17] Production.INFO: count ==1778 [2024-12-21 18:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:47:05 - End Time 2024-12-21 18:47:05 [2024-12-21 18:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072087', 'tblTempUsageDetail_20' ) start [2024-12-21 18:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072087', 'tblTempUsageDetail_20' ) end [2024-12-21 18:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072087', 'tblTempVendorCDR_20' ) start [2024-12-21 18:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072087', 'tblTempVendorCDR_20' ) end [2024-12-21 18:47:17] Production.INFO: ProcessCDR(1,14072087,1,1,2) [2024-12-21 18:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072087', 'tblTempUsageDetail_20' ) start [2024-12-21 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072087', 'tblTempUsageDetail_20' ) end [2024-12-21 18:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:47:22] Production.INFO: ==27927== Releasing lock... [2024-12-21 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:47:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:48:05 [end_date_ymd] => 2024-12-21 18:48:05 [RateCDR] => 1 ) [2024-12-21 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:48:05' and `end` < '2024-12-21 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:48:17] Production.INFO: count ==1783 [2024-12-21 18:48:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:48:05 - End Time 2024-12-21 18:48:05 [2024-12-21 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072092', 'tblTempUsageDetail_20' ) start [2024-12-21 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072092', 'tblTempUsageDetail_20' ) end [2024-12-21 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072092', 'tblTempVendorCDR_20' ) start [2024-12-21 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072092', 'tblTempVendorCDR_20' ) end [2024-12-21 18:48:18] Production.INFO: ProcessCDR(1,14072092,1,1,2) [2024-12-21 18:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072092', 'tblTempUsageDetail_20' ) start [2024-12-21 18:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072092', 'tblTempUsageDetail_20' ) end [2024-12-21 18:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:48:22] Production.INFO: ==28024== Releasing lock... [2024-12-21 18:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:48:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:49:04 [end_date_ymd] => 2024-12-21 18:49:04 [RateCDR] => 1 ) [2024-12-21 18: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-21 15:49:04' and `end` < '2024-12-21 18: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-21 18:49:17] Production.INFO: count ==1784 [2024-12-21 18:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:49:04 - End Time 2024-12-21 18:49:04 [2024-12-21 18:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072097', 'tblTempUsageDetail_20' ) start [2024-12-21 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072097', 'tblTempUsageDetail_20' ) end [2024-12-21 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072097', 'tblTempVendorCDR_20' ) start [2024-12-21 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072097', 'tblTempVendorCDR_20' ) end [2024-12-21 18:49:17] Production.INFO: ProcessCDR(1,14072097,1,1,2) [2024-12-21 18:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072097', 'tblTempUsageDetail_20' ) start [2024-12-21 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072097', 'tblTempUsageDetail_20' ) end [2024-12-21 18:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:49:21] Production.INFO: ==28117== Releasing lock... [2024-12-21 18:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:49:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:50:06 [end_date_ymd] => 2024-12-21 18:50:06 [RateCDR] => 1 ) [2024-12-21 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:50:06' and `end` < '2024-12-21 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:50:19] Production.INFO: count ==1786 [2024-12-21 18:50:19] Production.ERROR: pbx CDR StartTime 2024-12-21 15:50:06 - End Time 2024-12-21 18:50:06 [2024-12-21 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072102', 'tblTempUsageDetail_20' ) start [2024-12-21 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072102', 'tblTempUsageDetail_20' ) end [2024-12-21 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072102', 'tblTempVendorCDR_20' ) start [2024-12-21 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072102', 'tblTempVendorCDR_20' ) end [2024-12-21 18:50:20] Production.INFO: ProcessCDR(1,14072102,1,1,2) [2024-12-21 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072102', 'tblTempUsageDetail_20' ) start [2024-12-21 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072102', 'tblTempUsageDetail_20' ) end [2024-12-21 18:50:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:50:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:50:24] Production.INFO: ==28252== Releasing lock... [2024-12-21 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:50:24] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:51:04 [end_date_ymd] => 2024-12-21 18:51:04 [RateCDR] => 1 ) [2024-12-21 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:51:04' and `end` < '2024-12-21 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:51:18] Production.INFO: count ==1848 [2024-12-21 18:51:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:51:04 - End Time 2024-12-21 18:51:04 [2024-12-21 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072108', 'tblTempUsageDetail_20' ) start [2024-12-21 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072108', 'tblTempUsageDetail_20' ) end [2024-12-21 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072108', 'tblTempVendorCDR_20' ) start [2024-12-21 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072108', 'tblTempVendorCDR_20' ) end [2024-12-21 18:51:18] Production.INFO: ProcessCDR(1,14072108,1,1,2) [2024-12-21 18:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072108', 'tblTempUsageDetail_20' ) start [2024-12-21 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072108', 'tblTempUsageDetail_20' ) end [2024-12-21 18:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:51:23] Production.INFO: ==28342== Releasing lock... [2024-12-21 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:51:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:52:05 [end_date_ymd] => 2024-12-21 18:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:52:05' and `end` < '2024-12-21 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-21 18:52:18] Production.INFO: count ==1836 [2024-12-21 18:52:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:52:05 - End Time 2024-12-21 18:52:05 [2024-12-21 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072113', 'tblTempUsageDetail_20' ) start [2024-12-21 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072113', 'tblTempUsageDetail_20' ) end [2024-12-21 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072113', 'tblTempVendorCDR_20' ) start [2024-12-21 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072113', 'tblTempVendorCDR_20' ) end [2024-12-21 18:52:18] Production.INFO: ProcessCDR(1,14072113,1,1,2) [2024-12-21 18:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072113', 'tblTempUsageDetail_20' ) start [2024-12-21 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072113', 'tblTempUsageDetail_20' ) end [2024-12-21 18:52:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:52:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:52:23] Production.INFO: ==28438== Releasing lock... [2024-12-21 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:52:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:53:05 [end_date_ymd] => 2024-12-21 18:53:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:53:05' and `end` < '2024-12-21 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-21 18:53:17] Production.INFO: count ==1823 [2024-12-21 18:53:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:53:05 - End Time 2024-12-21 18:53:05 [2024-12-21 18:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072118', 'tblTempUsageDetail_20' ) start [2024-12-21 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072118', 'tblTempUsageDetail_20' ) end [2024-12-21 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072118', 'tblTempVendorCDR_20' ) start [2024-12-21 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072118', 'tblTempVendorCDR_20' ) end [2024-12-21 18:53:18] Production.INFO: ProcessCDR(1,14072118,1,1,2) [2024-12-21 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072118', 'tblTempUsageDetail_20' ) start [2024-12-21 18:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072118', 'tblTempUsageDetail_20' ) end [2024-12-21 18:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:53:21] Production.INFO: ==28531== Releasing lock... [2024-12-21 18:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:53:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:54:05 [end_date_ymd] => 2024-12-21 18:54:05 [RateCDR] => 1 ) [2024-12-21 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:54:05' and `end` < '2024-12-21 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:54:17] Production.INFO: count ==1826 [2024-12-21 18:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:54:05 - End Time 2024-12-21 18:54:05 [2024-12-21 18:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072123', 'tblTempUsageDetail_20' ) start [2024-12-21 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072123', 'tblTempUsageDetail_20' ) end [2024-12-21 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072123', 'tblTempVendorCDR_20' ) start [2024-12-21 18:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072123', 'tblTempVendorCDR_20' ) end [2024-12-21 18:54:18] Production.INFO: ProcessCDR(1,14072123,1,1,2) [2024-12-21 18:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072123', 'tblTempUsageDetail_20' ) start [2024-12-21 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072123', 'tblTempUsageDetail_20' ) end [2024-12-21 18:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:54:21] Production.INFO: ==28620== Releasing lock... [2024-12-21 18:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:54:21] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:55:05 [end_date_ymd] => 2024-12-21 18:55:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:55:05' and `end` < '2024-12-21 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-21 18:55:17] Production.INFO: count ==1825 [2024-12-21 18:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:55:05 - End Time 2024-12-21 18:55:05 [2024-12-21 18:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072128', 'tblTempUsageDetail_20' ) start [2024-12-21 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072128', 'tblTempUsageDetail_20' ) end [2024-12-21 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072128', 'tblTempVendorCDR_20' ) start [2024-12-21 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072128', 'tblTempVendorCDR_20' ) end [2024-12-21 18:55:17] Production.INFO: ProcessCDR(1,14072128,1,1,2) [2024-12-21 18:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072128', 'tblTempUsageDetail_20' ) start [2024-12-21 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072128', 'tblTempUsageDetail_20' ) end [2024-12-21 18:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:55:22] Production.INFO: ==28711== Releasing lock... [2024-12-21 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:55:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:56:05 [end_date_ymd] => 2024-12-21 18:56:05 [RateCDR] => 1 ) [2024-12-21 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:56:05' and `end` < '2024-12-21 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:56:20] Production.INFO: count ==1828 [2024-12-21 18:56:20] Production.ERROR: pbx CDR StartTime 2024-12-21 15:56:05 - End Time 2024-12-21 18:56:05 [2024-12-21 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072133', 'tblTempUsageDetail_20' ) start [2024-12-21 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072133', 'tblTempUsageDetail_20' ) end [2024-12-21 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072133', 'tblTempVendorCDR_20' ) start [2024-12-21 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072133', 'tblTempVendorCDR_20' ) end [2024-12-21 18:56:20] Production.INFO: ProcessCDR(1,14072133,1,1,2) [2024-12-21 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072133', 'tblTempUsageDetail_20' ) start [2024-12-21 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072133', 'tblTempUsageDetail_20' ) end [2024-12-21 18:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:56:23] Production.INFO: ==28787== Releasing lock... [2024-12-21 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:56:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:57:05 [end_date_ymd] => 2024-12-21 18:57:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:57:05' and `end` < '2024-12-21 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-21 18:57:18] Production.INFO: count ==1829 [2024-12-21 18:57:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:57:05 - End Time 2024-12-21 18:57:05 [2024-12-21 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072138', 'tblTempUsageDetail_20' ) start [2024-12-21 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072138', 'tblTempUsageDetail_20' ) end [2024-12-21 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072138', 'tblTempVendorCDR_20' ) start [2024-12-21 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072138', 'tblTempVendorCDR_20' ) end [2024-12-21 18:57:18] Production.INFO: ProcessCDR(1,14072138,1,1,2) [2024-12-21 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072138', 'tblTempUsageDetail_20' ) start [2024-12-21 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072138', 'tblTempUsageDetail_20' ) end [2024-12-21 18:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:57:23] Production.INFO: ==28871== Releasing lock... [2024-12-21 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:57:23] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 18:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:58:04 [end_date_ymd] => 2024-12-21 18:58:04 [RateCDR] => 1 ) [2024-12-21 18:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 15:58:04' and `end` < '2024-12-21 18:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 18:58:16] Production.INFO: count ==1833 [2024-12-21 18:58:17] Production.ERROR: pbx CDR StartTime 2024-12-21 15:58:04 - End Time 2024-12-21 18:58:04 [2024-12-21 18:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072143', 'tblTempUsageDetail_20' ) start [2024-12-21 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072143', 'tblTempUsageDetail_20' ) end [2024-12-21 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072143', 'tblTempVendorCDR_20' ) start [2024-12-21 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072143', 'tblTempVendorCDR_20' ) end [2024-12-21 18:58:17] Production.INFO: ProcessCDR(1,14072143,1,1,2) [2024-12-21 18:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072143', 'tblTempUsageDetail_20' ) start [2024-12-21 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072143', 'tblTempUsageDetail_20' ) end [2024-12-21 18:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:58:22] Production.INFO: ==28955== Releasing lock... [2024-12-21 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:58:22] Production.INFO: 42 MB #Memory Used# [2024-12-21 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 15:59:05 [end_date_ymd] => 2024-12-21 18:59:05 [RateCDR] => 1 ) [2024-12-21 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-21 15:59:05' and `end` < '2024-12-21 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-21 18:59:18] Production.INFO: count ==1825 [2024-12-21 18:59:18] Production.ERROR: pbx CDR StartTime 2024-12-21 15:59:05 - End Time 2024-12-21 18:59:05 [2024-12-21 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072148', 'tblTempUsageDetail_20' ) start [2024-12-21 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072148', 'tblTempUsageDetail_20' ) end [2024-12-21 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072148', 'tblTempVendorCDR_20' ) start [2024-12-21 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072148', 'tblTempVendorCDR_20' ) end [2024-12-21 18:59:18] Production.INFO: ProcessCDR(1,14072148,1,1,2) [2024-12-21 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072148', 'tblTempUsageDetail_20' ) start [2024-12-21 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072148', 'tblTempUsageDetail_20' ) end [2024-12-21 18:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 18:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 18:59:22] Production.INFO: ==29037== Releasing lock... [2024-12-21 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 18:59:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:00:06 [end_date_ymd] => 2024-12-21 19:00:06 [RateCDR] => 1 ) [2024-12-21 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-21 16:00:06' and `end` < '2024-12-21 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-21 19:00:18] Production.INFO: count ==1830 [2024-12-21 19:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:00:06 - End Time 2024-12-21 19:00:06 [2024-12-21 19:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072154', 'tblTempUsageDetail_20' ) start [2024-12-21 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072154', 'tblTempUsageDetail_20' ) end [2024-12-21 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072154', 'tblTempVendorCDR_20' ) start [2024-12-21 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072154', 'tblTempVendorCDR_20' ) end [2024-12-21 19:00:18] Production.INFO: ProcessCDR(1,14072154,1,1,2) [2024-12-21 19:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072154', 'tblTempUsageDetail_20' ) start [2024-12-21 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072154', 'tblTempUsageDetail_20' ) end [2024-12-21 19:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:00:23] Production.INFO: ==29121== Releasing lock... [2024-12-21 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:00:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:01:05 [end_date_ymd] => 2024-12-21 19:01:05 [RateCDR] => 1 ) [2024-12-21 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:01:05' and `end` < '2024-12-21 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:01:17] Production.INFO: count ==1842 [2024-12-21 19:01:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:01:05 - End Time 2024-12-21 19:01:05 [2024-12-21 19:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072159', 'tblTempUsageDetail_20' ) start [2024-12-21 19:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072159', 'tblTempUsageDetail_20' ) end [2024-12-21 19:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072159', 'tblTempVendorCDR_20' ) start [2024-12-21 19:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072159', 'tblTempVendorCDR_20' ) end [2024-12-21 19:01:17] Production.INFO: ProcessCDR(1,14072159,1,1,2) [2024-12-21 19:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072159', 'tblTempUsageDetail_20' ) start [2024-12-21 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072159', 'tblTempUsageDetail_20' ) end [2024-12-21 19:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:01:22] Production.INFO: ==29251== Releasing lock... [2024-12-21 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:01:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:02:05 [end_date_ymd] => 2024-12-21 19:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:02:05' and `end` < '2024-12-21 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-21 19:02:17] Production.INFO: count ==1855 [2024-12-21 19:02:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:02:05 - End Time 2024-12-21 19:02:05 [2024-12-21 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072164', 'tblTempUsageDetail_20' ) start [2024-12-21 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072164', 'tblTempUsageDetail_20' ) end [2024-12-21 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072164', 'tblTempVendorCDR_20' ) start [2024-12-21 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072164', 'tblTempVendorCDR_20' ) end [2024-12-21 19:02:18] Production.INFO: ProcessCDR(1,14072164,1,1,2) [2024-12-21 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072164', 'tblTempUsageDetail_20' ) start [2024-12-21 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072164', 'tblTempUsageDetail_20' ) end [2024-12-21 19:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:02:23] Production.INFO: ==29366== Releasing lock... [2024-12-21 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:02:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:03:05 [end_date_ymd] => 2024-12-21 19:03:05 [RateCDR] => 1 ) [2024-12-21 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:03:05' and `end` < '2024-12-21 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:03:18] Production.INFO: count ==1849 [2024-12-21 19:03:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:03:05 - End Time 2024-12-21 19:03:05 [2024-12-21 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072169', 'tblTempUsageDetail_20' ) start [2024-12-21 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072169', 'tblTempUsageDetail_20' ) end [2024-12-21 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072169', 'tblTempVendorCDR_20' ) start [2024-12-21 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072169', 'tblTempVendorCDR_20' ) end [2024-12-21 19:03:18] Production.INFO: ProcessCDR(1,14072169,1,1,2) [2024-12-21 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072169', 'tblTempUsageDetail_20' ) start [2024-12-21 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072169', 'tblTempUsageDetail_20' ) end [2024-12-21 19:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:03:23] Production.INFO: ==29442== Releasing lock... [2024-12-21 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:03:23] Production.INFO: 42 MB #Memory Used# [2024-12-21 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:04:04 [end_date_ymd] => 2024-12-21 19:04:04 [RateCDR] => 1 ) [2024-12-21 19:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:04:04' and `end` < '2024-12-21 19:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:04:17] Production.INFO: count ==1843 [2024-12-21 19:04:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:04:04 - End Time 2024-12-21 19:04:04 [2024-12-21 19:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072174', 'tblTempUsageDetail_20' ) start [2024-12-21 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072174', 'tblTempUsageDetail_20' ) end [2024-12-21 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072174', 'tblTempVendorCDR_20' ) start [2024-12-21 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072174', 'tblTempVendorCDR_20' ) end [2024-12-21 19:04:17] Production.INFO: ProcessCDR(1,14072174,1,1,2) [2024-12-21 19:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072174', 'tblTempUsageDetail_20' ) start [2024-12-21 19:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072174', 'tblTempUsageDetail_20' ) end [2024-12-21 19:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:04:20] Production.INFO: ==29518== Releasing lock... [2024-12-21 19:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:04:20] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:05:05 [end_date_ymd] => 2024-12-21 19:05:05 [RateCDR] => 1 ) [2024-12-21 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:05:05' and `end` < '2024-12-21 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:05:17] Production.INFO: count ==1826 [2024-12-21 19:05:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:05:05 - End Time 2024-12-21 19:05:05 [2024-12-21 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072179', 'tblTempUsageDetail_20' ) start [2024-12-21 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072179', 'tblTempUsageDetail_20' ) end [2024-12-21 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072179', 'tblTempVendorCDR_20' ) start [2024-12-21 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072179', 'tblTempVendorCDR_20' ) end [2024-12-21 19:05:18] Production.INFO: ProcessCDR(1,14072179,1,1,2) [2024-12-21 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072179', 'tblTempUsageDetail_20' ) start [2024-12-21 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072179', 'tblTempUsageDetail_20' ) end [2024-12-21 19:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:05:22] Production.INFO: ==29676== Releasing lock... [2024-12-21 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:05:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 19:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:06:04 [end_date_ymd] => 2024-12-21 19:06:04 [RateCDR] => 1 ) [2024-12-21 19: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-21 16:06:04' and `end` < '2024-12-21 19: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-21 19:06:17] Production.INFO: count ==1825 [2024-12-21 19:06:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:06:04 - End Time 2024-12-21 19:06:04 [2024-12-21 19:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072184', 'tblTempUsageDetail_20' ) start [2024-12-21 19:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072184', 'tblTempUsageDetail_20' ) end [2024-12-21 19:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072184', 'tblTempVendorCDR_20' ) start [2024-12-21 19:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072184', 'tblTempVendorCDR_20' ) end [2024-12-21 19:06:17] Production.INFO: ProcessCDR(1,14072184,1,1,2) [2024-12-21 19:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072184', 'tblTempUsageDetail_20' ) start [2024-12-21 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072184', 'tblTempUsageDetail_20' ) end [2024-12-21 19:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:06:22] Production.INFO: ==29790== Releasing lock... [2024-12-21 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:06:22] Production.INFO: 41.5 MB #Memory Used# [2024-12-21 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:07:05 [end_date_ymd] => 2024-12-21 19:07:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:07:05' and `end` < '2024-12-21 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-21 19:07:17] Production.INFO: count ==1816 [2024-12-21 19:07:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:07:05 - End Time 2024-12-21 19:07:05 [2024-12-21 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072189', 'tblTempUsageDetail_20' ) start [2024-12-21 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072189', 'tblTempUsageDetail_20' ) end [2024-12-21 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072189', 'tblTempVendorCDR_20' ) start [2024-12-21 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072189', 'tblTempVendorCDR_20' ) end [2024-12-21 19:07:18] Production.INFO: ProcessCDR(1,14072189,1,1,2) [2024-12-21 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072189', 'tblTempUsageDetail_20' ) start [2024-12-21 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072189', 'tblTempUsageDetail_20' ) end [2024-12-21 19:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:07:21] Production.INFO: ==29867== Releasing lock... [2024-12-21 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:07:21] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:08:05 [end_date_ymd] => 2024-12-21 19:08:05 [RateCDR] => 1 ) [2024-12-21 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:08:05' and `end` < '2024-12-21 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:08:18] Production.INFO: count ==1816 [2024-12-21 19:08:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:08:05 - End Time 2024-12-21 19:08:05 [2024-12-21 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072194', 'tblTempUsageDetail_20' ) start [2024-12-21 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072194', 'tblTempUsageDetail_20' ) end [2024-12-21 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072194', 'tblTempVendorCDR_20' ) start [2024-12-21 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072194', 'tblTempVendorCDR_20' ) end [2024-12-21 19:08:18] Production.INFO: ProcessCDR(1,14072194,1,1,2) [2024-12-21 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072194', 'tblTempUsageDetail_20' ) start [2024-12-21 19:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072194', 'tblTempUsageDetail_20' ) end [2024-12-21 19:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:08:23] Production.INFO: ==30023== Releasing lock... [2024-12-21 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:08:23] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:09:04 [end_date_ymd] => 2024-12-21 19:09:04 [RateCDR] => 1 ) [2024-12-21 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-21 16:09:04' and `end` < '2024-12-21 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-21 19:09:17] Production.INFO: count ==1812 [2024-12-21 19:09:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:09:04 - End Time 2024-12-21 19:09:04 [2024-12-21 19:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072199', 'tblTempUsageDetail_20' ) start [2024-12-21 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072199', 'tblTempUsageDetail_20' ) end [2024-12-21 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072199', 'tblTempVendorCDR_20' ) start [2024-12-21 19:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072199', 'tblTempVendorCDR_20' ) end [2024-12-21 19:09:17] Production.INFO: ProcessCDR(1,14072199,1,1,2) [2024-12-21 19:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072199', 'tblTempUsageDetail_20' ) start [2024-12-21 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072199', 'tblTempUsageDetail_20' ) end [2024-12-21 19:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:09:22] Production.INFO: ==30098== Releasing lock... [2024-12-21 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:09:22] Production.INFO: 41.75 MB #Memory Used# [2024-12-21 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:10:06 [end_date_ymd] => 2024-12-21 19:10:06 [RateCDR] => 1 ) [2024-12-21 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:10:06' and `end` < '2024-12-21 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:10:18] Production.INFO: count ==1808 [2024-12-21 19:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:10:06 - End Time 2024-12-21 19:10:06 [2024-12-21 19:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072205', 'tblTempUsageDetail_20' ) start [2024-12-21 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072205', 'tblTempUsageDetail_20' ) end [2024-12-21 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072205', 'tblTempVendorCDR_20' ) start [2024-12-21 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072205', 'tblTempVendorCDR_20' ) end [2024-12-21 19:10:19] Production.INFO: ProcessCDR(1,14072205,1,1,2) [2024-12-21 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072205', 'tblTempUsageDetail_20' ) start [2024-12-21 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072205', 'tblTempUsageDetail_20' ) end [2024-12-21 19:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:10:23] Production.INFO: ==30175== Releasing lock... [2024-12-21 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:10:23] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:11:05 [end_date_ymd] => 2024-12-21 19:11:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:11:05' and `end` < '2024-12-21 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-21 19:11:17] Production.INFO: count ==1774 [2024-12-21 19:11:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:11:05 - End Time 2024-12-21 19:11:05 [2024-12-21 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072210', 'tblTempUsageDetail_20' ) start [2024-12-21 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072210', 'tblTempUsageDetail_20' ) end [2024-12-21 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072210', 'tblTempVendorCDR_20' ) start [2024-12-21 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072210', 'tblTempVendorCDR_20' ) end [2024-12-21 19:11:18] Production.INFO: ProcessCDR(1,14072210,1,1,2) [2024-12-21 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072210', 'tblTempUsageDetail_20' ) start [2024-12-21 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072210', 'tblTempUsageDetail_20' ) end [2024-12-21 19:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:11:23] Production.INFO: ==30251== Releasing lock... [2024-12-21 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:11:23] Production.INFO: 41 MB #Memory Used# [2024-12-21 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:12:05 [end_date_ymd] => 2024-12-21 19:12:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:12:05' and `end` < '2024-12-21 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-21 19:12:18] Production.INFO: count ==1768 [2024-12-21 19:12:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:12:05 - End Time 2024-12-21 19:12:05 [2024-12-21 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072215', 'tblTempUsageDetail_20' ) start [2024-12-21 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072215', 'tblTempUsageDetail_20' ) end [2024-12-21 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072215', 'tblTempVendorCDR_20' ) start [2024-12-21 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072215', 'tblTempVendorCDR_20' ) end [2024-12-21 19:12:18] Production.INFO: ProcessCDR(1,14072215,1,1,2) [2024-12-21 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072215', 'tblTempUsageDetail_20' ) start [2024-12-21 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072215', 'tblTempUsageDetail_20' ) end [2024-12-21 19:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:12:22] Production.INFO: ==30410== Releasing lock... [2024-12-21 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:12:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:13:05 [end_date_ymd] => 2024-12-21 19:13:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:13:05' and `end` < '2024-12-21 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-21 19:13:17] Production.INFO: count ==1765 [2024-12-21 19:13:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:13:05 - End Time 2024-12-21 19:13:05 [2024-12-21 19:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072220', 'tblTempUsageDetail_20' ) start [2024-12-21 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072220', 'tblTempUsageDetail_20' ) end [2024-12-21 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072220', 'tblTempVendorCDR_20' ) start [2024-12-21 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072220', 'tblTempVendorCDR_20' ) end [2024-12-21 19:13:17] Production.INFO: ProcessCDR(1,14072220,1,1,2) [2024-12-21 19:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072220', 'tblTempUsageDetail_20' ) start [2024-12-21 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072220', 'tblTempUsageDetail_20' ) end [2024-12-21 19:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:13:22] Production.INFO: ==30483== Releasing lock... [2024-12-21 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:13:22] Production.INFO: 41.25 MB #Memory Used# [2024-12-21 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:14:05 [end_date_ymd] => 2024-12-21 19:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:14:05' and `end` < '2024-12-21 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-21 19:14:18] Production.INFO: count ==1761 [2024-12-21 19:14:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:14:05 - End Time 2024-12-21 19:14:05 [2024-12-21 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072225', 'tblTempUsageDetail_20' ) start [2024-12-21 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072225', 'tblTempUsageDetail_20' ) end [2024-12-21 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072225', 'tblTempVendorCDR_20' ) start [2024-12-21 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072225', 'tblTempVendorCDR_20' ) end [2024-12-21 19:14:18] Production.INFO: ProcessCDR(1,14072225,1,1,2) [2024-12-21 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072225', 'tblTempUsageDetail_20' ) start [2024-12-21 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072225', 'tblTempUsageDetail_20' ) end [2024-12-21 19:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:14:23] Production.INFO: ==30560== Releasing lock... [2024-12-21 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:14:23] Production.INFO: 41 MB #Memory Used# [2024-12-21 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:15:04 [end_date_ymd] => 2024-12-21 19:15:04 [RateCDR] => 1 ) [2024-12-21 19: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-21 16:15:04' and `end` < '2024-12-21 19: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-21 19:15:17] Production.INFO: count ==1754 [2024-12-21 19:15:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:15:04 - End Time 2024-12-21 19:15:04 [2024-12-21 19:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072230', 'tblTempUsageDetail_20' ) start [2024-12-21 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072230', 'tblTempUsageDetail_20' ) end [2024-12-21 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072230', 'tblTempVendorCDR_20' ) start [2024-12-21 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072230', 'tblTempVendorCDR_20' ) end [2024-12-21 19:15:17] Production.INFO: ProcessCDR(1,14072230,1,1,2) [2024-12-21 19:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072230', 'tblTempUsageDetail_20' ) start [2024-12-21 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072230', 'tblTempUsageDetail_20' ) end [2024-12-21 19:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:15:22] Production.INFO: ==30716== Releasing lock... [2024-12-21 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:15:22] Production.INFO: 41 MB #Memory Used# [2024-12-21 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:16:05 [end_date_ymd] => 2024-12-21 19:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:16:05' and `end` < '2024-12-21 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-21 19:16:17] Production.INFO: count ==1754 [2024-12-21 19:16:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:16:05 - End Time 2024-12-21 19:16:05 [2024-12-21 19:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072235', 'tblTempUsageDetail_20' ) start [2024-12-21 19:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072235', 'tblTempUsageDetail_20' ) end [2024-12-21 19:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072235', 'tblTempVendorCDR_20' ) start [2024-12-21 19:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072235', 'tblTempVendorCDR_20' ) end [2024-12-21 19:16:17] Production.INFO: ProcessCDR(1,14072235,1,1,2) [2024-12-21 19:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072235', 'tblTempUsageDetail_20' ) start [2024-12-21 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072235', 'tblTempUsageDetail_20' ) end [2024-12-21 19:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:16:22] Production.INFO: ==30792== Releasing lock... [2024-12-21 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:16:22] Production.INFO: 41 MB #Memory Used# [2024-12-21 19:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:17:04 [end_date_ymd] => 2024-12-21 19:17:04 [RateCDR] => 1 ) [2024-12-21 19: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-21 16:17:04' and `end` < '2024-12-21 19: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-21 19:17:17] Production.INFO: count ==1750 [2024-12-21 19:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:17:04 - End Time 2024-12-21 19:17:04 [2024-12-21 19:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072240', 'tblTempUsageDetail_20' ) start [2024-12-21 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072240', 'tblTempUsageDetail_20' ) end [2024-12-21 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072240', 'tblTempVendorCDR_20' ) start [2024-12-21 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072240', 'tblTempVendorCDR_20' ) end [2024-12-21 19:17:17] Production.INFO: ProcessCDR(1,14072240,1,1,2) [2024-12-21 19:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072240', 'tblTempUsageDetail_20' ) start [2024-12-21 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072240', 'tblTempUsageDetail_20' ) end [2024-12-21 19:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:17:22] Production.INFO: ==30862== Releasing lock... [2024-12-21 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:17:22] Production.INFO: 41 MB #Memory Used# [2024-12-21 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:18:05 [end_date_ymd] => 2024-12-21 19:18:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:18:05' and `end` < '2024-12-21 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-21 19:18:19] Production.INFO: count ==1744 [2024-12-21 19:18:19] Production.ERROR: pbx CDR StartTime 2024-12-21 16:18:05 - End Time 2024-12-21 19:18:05 [2024-12-21 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072245', 'tblTempUsageDetail_20' ) start [2024-12-21 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072245', 'tblTempUsageDetail_20' ) end [2024-12-21 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072245', 'tblTempVendorCDR_20' ) start [2024-12-21 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072245', 'tblTempVendorCDR_20' ) end [2024-12-21 19:18:19] Production.INFO: ProcessCDR(1,14072245,1,1,2) [2024-12-21 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072245', 'tblTempUsageDetail_20' ) start [2024-12-21 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072245', 'tblTempUsageDetail_20' ) end [2024-12-21 19:18:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:18:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:18:23] Production.INFO: ==30938== Releasing lock... [2024-12-21 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:18:23] Production.INFO: 41 MB #Memory Used# [2024-12-21 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:19:05 [end_date_ymd] => 2024-12-21 19:19:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:19:05' and `end` < '2024-12-21 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-21 19:19:17] Production.INFO: count ==1746 [2024-12-21 19:19:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:19:05 - End Time 2024-12-21 19:19:05 [2024-12-21 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072250', 'tblTempUsageDetail_20' ) start [2024-12-21 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072250', 'tblTempUsageDetail_20' ) end [2024-12-21 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072250', 'tblTempVendorCDR_20' ) start [2024-12-21 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072250', 'tblTempVendorCDR_20' ) end [2024-12-21 19:19:18] Production.INFO: ProcessCDR(1,14072250,1,1,2) [2024-12-21 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072250', 'tblTempUsageDetail_20' ) start [2024-12-21 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072250', 'tblTempUsageDetail_20' ) end [2024-12-21 19:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:19:22] Production.INFO: ==31015== Releasing lock... [2024-12-21 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:19:22] Production.INFO: 41 MB #Memory Used# [2024-12-21 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:20:06 [end_date_ymd] => 2024-12-21 19:20:06 [RateCDR] => 1 ) [2024-12-21 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:20:06' and `end` < '2024-12-21 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:20:19] Production.INFO: count ==1743 [2024-12-21 19:20:19] Production.ERROR: pbx CDR StartTime 2024-12-21 16:20:06 - End Time 2024-12-21 19:20:06 [2024-12-21 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072256', 'tblTempUsageDetail_20' ) start [2024-12-21 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072256', 'tblTempUsageDetail_20' ) end [2024-12-21 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072256', 'tblTempVendorCDR_20' ) start [2024-12-21 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072256', 'tblTempVendorCDR_20' ) end [2024-12-21 19:20:20] Production.INFO: ProcessCDR(1,14072256,1,1,2) [2024-12-21 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072256', 'tblTempUsageDetail_20' ) start [2024-12-21 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072256', 'tblTempUsageDetail_20' ) end [2024-12-21 19:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:20:23] Production.INFO: ==31119== Releasing lock... [2024-12-21 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:20:23] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:21:05 [end_date_ymd] => 2024-12-21 19:21:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:21:05' and `end` < '2024-12-21 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-21 19:21:18] Production.INFO: count ==1719 [2024-12-21 19:21:19] Production.ERROR: pbx CDR StartTime 2024-12-21 16:21:05 - End Time 2024-12-21 19:21:05 [2024-12-21 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072261', 'tblTempUsageDetail_20' ) start [2024-12-21 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072261', 'tblTempUsageDetail_20' ) end [2024-12-21 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072261', 'tblTempVendorCDR_20' ) start [2024-12-21 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072261', 'tblTempVendorCDR_20' ) end [2024-12-21 19:21:19] Production.INFO: ProcessCDR(1,14072261,1,1,2) [2024-12-21 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072261', 'tblTempUsageDetail_20' ) start [2024-12-21 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072261', 'tblTempUsageDetail_20' ) end [2024-12-21 19:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:21:22] Production.INFO: ==31274== Releasing lock... [2024-12-21 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:21:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:22:05 [end_date_ymd] => 2024-12-21 19:22:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:22:05' and `end` < '2024-12-21 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-21 19:22:17] Production.INFO: count ==1715 [2024-12-21 19:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:22:05 - End Time 2024-12-21 19:22:05 [2024-12-21 19:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072266', 'tblTempUsageDetail_20' ) start [2024-12-21 19:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072266', 'tblTempUsageDetail_20' ) end [2024-12-21 19:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072266', 'tblTempVendorCDR_20' ) start [2024-12-21 19:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072266', 'tblTempVendorCDR_20' ) end [2024-12-21 19:22:17] Production.INFO: ProcessCDR(1,14072266,1,1,2) [2024-12-21 19:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072266', 'tblTempUsageDetail_20' ) start [2024-12-21 19:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072266', 'tblTempUsageDetail_20' ) end [2024-12-21 19:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:22:20] Production.INFO: ==31364== Releasing lock... [2024-12-21 19:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:22:20] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:23:05 [end_date_ymd] => 2024-12-21 19:23:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:23:05' and `end` < '2024-12-21 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-21 19:23:17] Production.INFO: count ==1713 [2024-12-21 19:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:23:05 - End Time 2024-12-21 19:23:05 [2024-12-21 19:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072271', 'tblTempUsageDetail_20' ) start [2024-12-21 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072271', 'tblTempUsageDetail_20' ) end [2024-12-21 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072271', 'tblTempVendorCDR_20' ) start [2024-12-21 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072271', 'tblTempVendorCDR_20' ) end [2024-12-21 19:23:17] Production.INFO: ProcessCDR(1,14072271,1,1,2) [2024-12-21 19:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072271', 'tblTempUsageDetail_20' ) start [2024-12-21 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072271', 'tblTempUsageDetail_20' ) end [2024-12-21 19:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:23:22] Production.INFO: ==31437== Releasing lock... [2024-12-21 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:23:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 19:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:24:04 [end_date_ymd] => 2024-12-21 19:24:04 [RateCDR] => 1 ) [2024-12-21 19: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-21 16:24:04' and `end` < '2024-12-21 19: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-21 19:24:17] Production.INFO: count ==1710 [2024-12-21 19:24:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:24:04 - End Time 2024-12-21 19:24:04 [2024-12-21 19:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072276', 'tblTempUsageDetail_20' ) start [2024-12-21 19:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072276', 'tblTempUsageDetail_20' ) end [2024-12-21 19:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072276', 'tblTempVendorCDR_20' ) start [2024-12-21 19:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072276', 'tblTempVendorCDR_20' ) end [2024-12-21 19:24:17] Production.INFO: ProcessCDR(1,14072276,1,1,2) [2024-12-21 19:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072276', 'tblTempUsageDetail_20' ) start [2024-12-21 19:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072276', 'tblTempUsageDetail_20' ) end [2024-12-21 19:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:24:20] Production.INFO: ==31510== Releasing lock... [2024-12-21 19:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:24:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:25:06 [end_date_ymd] => 2024-12-21 19:25:06 [RateCDR] => 1 ) [2024-12-21 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:25:06' and `end` < '2024-12-21 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:25:18] Production.INFO: count ==1703 [2024-12-21 19:25:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:25:06 - End Time 2024-12-21 19:25:06 [2024-12-21 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072281', 'tblTempUsageDetail_20' ) start [2024-12-21 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072281', 'tblTempUsageDetail_20' ) end [2024-12-21 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072281', 'tblTempVendorCDR_20' ) start [2024-12-21 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072281', 'tblTempVendorCDR_20' ) end [2024-12-21 19:25:18] Production.INFO: ProcessCDR(1,14072281,1,1,2) [2024-12-21 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072281', 'tblTempUsageDetail_20' ) start [2024-12-21 19:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072281', 'tblTempUsageDetail_20' ) end [2024-12-21 19:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:25:21] Production.INFO: ==31584== Releasing lock... [2024-12-21 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:25:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:26:04 [end_date_ymd] => 2024-12-21 19:26:04 [RateCDR] => 1 ) [2024-12-21 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-21 16:26:04' and `end` < '2024-12-21 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-21 19:26:17] Production.INFO: count ==1698 [2024-12-21 19:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:26:04 - End Time 2024-12-21 19:26:04 [2024-12-21 19:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072286', 'tblTempUsageDetail_20' ) start [2024-12-21 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072286', 'tblTempUsageDetail_20' ) end [2024-12-21 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072286', 'tblTempVendorCDR_20' ) start [2024-12-21 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072286', 'tblTempVendorCDR_20' ) end [2024-12-21 19:26:17] Production.INFO: ProcessCDR(1,14072286,1,1,2) [2024-12-21 19:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072286', 'tblTempUsageDetail_20' ) start [2024-12-21 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072286', 'tblTempUsageDetail_20' ) end [2024-12-21 19:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:26:21] Production.INFO: ==31660== Releasing lock... [2024-12-21 19:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:26:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:27:05 [end_date_ymd] => 2024-12-21 19:27:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:27:05' and `end` < '2024-12-21 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-21 19:27:17] Production.INFO: count ==1693 [2024-12-21 19:27:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:27:05 - End Time 2024-12-21 19:27:05 [2024-12-21 19:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072291', 'tblTempUsageDetail_20' ) start [2024-12-21 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072291', 'tblTempUsageDetail_20' ) end [2024-12-21 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072291', 'tblTempVendorCDR_20' ) start [2024-12-21 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072291', 'tblTempVendorCDR_20' ) end [2024-12-21 19:27:17] Production.INFO: ProcessCDR(1,14072291,1,1,2) [2024-12-21 19:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072291', 'tblTempUsageDetail_20' ) start [2024-12-21 19:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072291', 'tblTempUsageDetail_20' ) end [2024-12-21 19:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:27:20] Production.INFO: ==31737== Releasing lock... [2024-12-21 19:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:27:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:28:04 [end_date_ymd] => 2024-12-21 19:28:04 [RateCDR] => 1 ) [2024-12-21 19: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-21 16:28:04' and `end` < '2024-12-21 19: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-21 19:28:17] Production.INFO: count ==1691 [2024-12-21 19:28:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:28:04 - End Time 2024-12-21 19:28:04 [2024-12-21 19:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072296', 'tblTempUsageDetail_20' ) start [2024-12-21 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072296', 'tblTempUsageDetail_20' ) end [2024-12-21 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072296', 'tblTempVendorCDR_20' ) start [2024-12-21 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072296', 'tblTempVendorCDR_20' ) end [2024-12-21 19:28:17] Production.INFO: ProcessCDR(1,14072296,1,1,2) [2024-12-21 19:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072296', 'tblTempUsageDetail_20' ) start [2024-12-21 19:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072296', 'tblTempUsageDetail_20' ) end [2024-12-21 19:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:28:20] Production.INFO: ==31812== Releasing lock... [2024-12-21 19:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:28:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:29:05 [end_date_ymd] => 2024-12-21 19:29:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:29:05' and `end` < '2024-12-21 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-21 19:29:17] Production.INFO: count ==1688 [2024-12-21 19:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:29:05 - End Time 2024-12-21 19:29:05 [2024-12-21 19:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072301', 'tblTempUsageDetail_20' ) start [2024-12-21 19:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072301', 'tblTempUsageDetail_20' ) end [2024-12-21 19:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072301', 'tblTempVendorCDR_20' ) start [2024-12-21 19:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072301', 'tblTempVendorCDR_20' ) end [2024-12-21 19:29:17] Production.INFO: ProcessCDR(1,14072301,1,1,2) [2024-12-21 19:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072301', 'tblTempUsageDetail_20' ) start [2024-12-21 19:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072301', 'tblTempUsageDetail_20' ) end [2024-12-21 19:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:29:20] Production.INFO: ==31887== Releasing lock... [2024-12-21 19:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:29:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:30:05 [end_date_ymd] => 2024-12-21 19:30:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:30:05' and `end` < '2024-12-21 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-21 19:30:18] Production.INFO: count ==1688 [2024-12-21 19:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:30:05 - End Time 2024-12-21 19:30:05 [2024-12-21 19:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072306', 'tblTempUsageDetail_20' ) start [2024-12-21 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072306', 'tblTempUsageDetail_20' ) end [2024-12-21 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072306', 'tblTempVendorCDR_20' ) start [2024-12-21 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072306', 'tblTempVendorCDR_20' ) end [2024-12-21 19:30:18] Production.INFO: ProcessCDR(1,14072306,1,1,2) [2024-12-21 19:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072306', 'tblTempUsageDetail_20' ) start [2024-12-21 19:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072306', 'tblTempUsageDetail_20' ) end [2024-12-21 19:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:30:21] Production.INFO: ==31964== Releasing lock... [2024-12-21 19:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:30:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:31:04 [end_date_ymd] => 2024-12-21 19:31:04 [RateCDR] => 1 ) [2024-12-21 19: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-21 16:31:04' and `end` < '2024-12-21 19: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-21 19:31:17] Production.INFO: count ==1687 [2024-12-21 19:31:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:31:04 - End Time 2024-12-21 19:31:04 [2024-12-21 19:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072312', 'tblTempUsageDetail_20' ) start [2024-12-21 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072312', 'tblTempUsageDetail_20' ) end [2024-12-21 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072312', 'tblTempVendorCDR_20' ) start [2024-12-21 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072312', 'tblTempVendorCDR_20' ) end [2024-12-21 19:31:17] Production.INFO: ProcessCDR(1,14072312,1,1,2) [2024-12-21 19:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072312', 'tblTempUsageDetail_20' ) start [2024-12-21 19:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072312', 'tblTempUsageDetail_20' ) end [2024-12-21 19:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:31:20] Production.INFO: ==32038== Releasing lock... [2024-12-21 19:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:31:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:32:05 [end_date_ymd] => 2024-12-21 19:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:32:05' and `end` < '2024-12-21 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-21 19:32:17] Production.INFO: count ==1686 [2024-12-21 19:32:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:32:05 - End Time 2024-12-21 19:32:05 [2024-12-21 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072317', 'tblTempUsageDetail_20' ) start [2024-12-21 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072317', 'tblTempUsageDetail_20' ) end [2024-12-21 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072317', 'tblTempVendorCDR_20' ) start [2024-12-21 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072317', 'tblTempVendorCDR_20' ) end [2024-12-21 19:32:18] Production.INFO: ProcessCDR(1,14072317,1,1,2) [2024-12-21 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072317', 'tblTempUsageDetail_20' ) start [2024-12-21 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072317', 'tblTempUsageDetail_20' ) end [2024-12-21 19:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:32:21] Production.INFO: ==32110== Releasing lock... [2024-12-21 19:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:32:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:33:04 [end_date_ymd] => 2024-12-21 19:33:04 [RateCDR] => 1 ) [2024-12-21 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-21 16:33:04' and `end` < '2024-12-21 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-21 19:33:17] Production.INFO: count ==1689 [2024-12-21 19:33:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:33:04 - End Time 2024-12-21 19:33:04 [2024-12-21 19:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072322', 'tblTempUsageDetail_20' ) start [2024-12-21 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072322', 'tblTempUsageDetail_20' ) end [2024-12-21 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072322', 'tblTempVendorCDR_20' ) start [2024-12-21 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072322', 'tblTempVendorCDR_20' ) end [2024-12-21 19:33:17] Production.INFO: ProcessCDR(1,14072322,1,1,2) [2024-12-21 19:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072322', 'tblTempUsageDetail_20' ) start [2024-12-21 19:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072322', 'tblTempUsageDetail_20' ) end [2024-12-21 19:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:33:20] Production.INFO: ==32180== Releasing lock... [2024-12-21 19:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:33:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:34:04 [end_date_ymd] => 2024-12-21 19:34:04 [RateCDR] => 1 ) [2024-12-21 19: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-21 16:34:04' and `end` < '2024-12-21 19: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-21 19:34:18] Production.INFO: count ==1698 [2024-12-21 19:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:34:04 - End Time 2024-12-21 19:34:04 [2024-12-21 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072327', 'tblTempUsageDetail_20' ) start [2024-12-21 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072327', 'tblTempUsageDetail_20' ) end [2024-12-21 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072327', 'tblTempVendorCDR_20' ) start [2024-12-21 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072327', 'tblTempVendorCDR_20' ) end [2024-12-21 19:34:18] Production.INFO: ProcessCDR(1,14072327,1,1,2) [2024-12-21 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072327', 'tblTempUsageDetail_20' ) start [2024-12-21 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072327', 'tblTempUsageDetail_20' ) end [2024-12-21 19:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:34:21] Production.INFO: ==32254== Releasing lock... [2024-12-21 19:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:34:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:35:05 [end_date_ymd] => 2024-12-21 19:35:05 [RateCDR] => 1 ) [2024-12-21 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:35:05' and `end` < '2024-12-21 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:35:17] Production.INFO: count ==1704 [2024-12-21 19:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:35:05 - End Time 2024-12-21 19:35:05 [2024-12-21 19:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072332', 'tblTempUsageDetail_20' ) start [2024-12-21 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072332', 'tblTempUsageDetail_20' ) end [2024-12-21 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072332', 'tblTempVendorCDR_20' ) start [2024-12-21 19:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072332', 'tblTempVendorCDR_20' ) end [2024-12-21 19:35:17] Production.INFO: ProcessCDR(1,14072332,1,1,2) [2024-12-21 19:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072332', 'tblTempUsageDetail_20' ) start [2024-12-21 19:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072332', 'tblTempUsageDetail_20' ) end [2024-12-21 19:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:35:20] Production.INFO: ==32325== Releasing lock... [2024-12-21 19:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:35:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:36:05 [end_date_ymd] => 2024-12-21 19:36:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:36:05' and `end` < '2024-12-21 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-21 19:36:19] Production.INFO: count ==1702 [2024-12-21 19:36:19] Production.ERROR: pbx CDR StartTime 2024-12-21 16:36:05 - End Time 2024-12-21 19:36:05 [2024-12-21 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072337', 'tblTempUsageDetail_20' ) start [2024-12-21 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072337', 'tblTempUsageDetail_20' ) end [2024-12-21 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072337', 'tblTempVendorCDR_20' ) start [2024-12-21 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072337', 'tblTempVendorCDR_20' ) end [2024-12-21 19:36:19] Production.INFO: ProcessCDR(1,14072337,1,1,2) [2024-12-21 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072337', 'tblTempUsageDetail_20' ) start [2024-12-21 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072337', 'tblTempUsageDetail_20' ) end [2024-12-21 19:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:36:22] Production.INFO: ==32398== Releasing lock... [2024-12-21 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:36:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:37:04 [end_date_ymd] => 2024-12-21 19:37:04 [RateCDR] => 1 ) [2024-12-21 19:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:37:04' and `end` < '2024-12-21 19:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:37:16] Production.INFO: count ==1701 [2024-12-21 19:37:16] Production.ERROR: pbx CDR StartTime 2024-12-21 16:37:04 - End Time 2024-12-21 19:37:04 [2024-12-21 19:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072342', 'tblTempUsageDetail_20' ) start [2024-12-21 19:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072342', 'tblTempUsageDetail_20' ) end [2024-12-21 19:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072342', 'tblTempVendorCDR_20' ) start [2024-12-21 19:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072342', 'tblTempVendorCDR_20' ) end [2024-12-21 19:37:16] Production.INFO: ProcessCDR(1,14072342,1,1,2) [2024-12-21 19:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072342', 'tblTempUsageDetail_20' ) start [2024-12-21 19:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072342', 'tblTempUsageDetail_20' ) end [2024-12-21 19:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:37:20] Production.INFO: ==32511== Releasing lock... [2024-12-21 19:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:37:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:38:04 [end_date_ymd] => 2024-12-21 19:38:04 [RateCDR] => 1 ) [2024-12-21 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-21 16:38:04' and `end` < '2024-12-21 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-21 19:38:17] Production.INFO: count ==1704 [2024-12-21 19:38:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:38:04 - End Time 2024-12-21 19:38:04 [2024-12-21 19:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072347', 'tblTempUsageDetail_20' ) start [2024-12-21 19:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072347', 'tblTempUsageDetail_20' ) end [2024-12-21 19:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072347', 'tblTempVendorCDR_20' ) start [2024-12-21 19:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072347', 'tblTempVendorCDR_20' ) end [2024-12-21 19:38:17] Production.INFO: ProcessCDR(1,14072347,1,1,2) [2024-12-21 19:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072347', 'tblTempUsageDetail_20' ) start [2024-12-21 19:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072347', 'tblTempUsageDetail_20' ) end [2024-12-21 19:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:38:20] Production.INFO: ==32583== Releasing lock... [2024-12-21 19:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:38:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:39:05 [end_date_ymd] => 2024-12-21 19:39:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:39:05' and `end` < '2024-12-21 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-21 19:39:17] Production.INFO: count ==1708 [2024-12-21 19:39:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:39:05 - End Time 2024-12-21 19:39:05 [2024-12-21 19:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072352', 'tblTempUsageDetail_20' ) start [2024-12-21 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072352', 'tblTempUsageDetail_20' ) end [2024-12-21 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072352', 'tblTempVendorCDR_20' ) start [2024-12-21 19:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072352', 'tblTempVendorCDR_20' ) end [2024-12-21 19:39:17] Production.INFO: ProcessCDR(1,14072352,1,1,2) [2024-12-21 19:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072352', 'tblTempUsageDetail_20' ) start [2024-12-21 19:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072352', 'tblTempUsageDetail_20' ) end [2024-12-21 19:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:39:20] Production.INFO: ==32656== Releasing lock... [2024-12-21 19:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:39:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:40:05 [end_date_ymd] => 2024-12-21 19:40:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:40:05' and `end` < '2024-12-21 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-21 19:40:17] Production.INFO: count ==1717 [2024-12-21 19:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:40:05 - End Time 2024-12-21 19:40:05 [2024-12-21 19:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072357', 'tblTempUsageDetail_20' ) start [2024-12-21 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072357', 'tblTempUsageDetail_20' ) end [2024-12-21 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072357', 'tblTempVendorCDR_20' ) start [2024-12-21 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072357', 'tblTempVendorCDR_20' ) end [2024-12-21 19:40:18] Production.INFO: ProcessCDR(1,14072357,1,1,2) [2024-12-21 19:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072357', 'tblTempUsageDetail_20' ) start [2024-12-21 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072357', 'tblTempUsageDetail_20' ) end [2024-12-21 19:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:40:21] Production.INFO: ==32736== Releasing lock... [2024-12-21 19:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:40:21] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:41:05 [end_date_ymd] => 2024-12-21 19:41:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:41:05' and `end` < '2024-12-21 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-21 19:41:18] Production.INFO: count ==1751 [2024-12-21 19:41:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:41:05 - End Time 2024-12-21 19:41:05 [2024-12-21 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072363', 'tblTempUsageDetail_20' ) start [2024-12-21 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072363', 'tblTempUsageDetail_20' ) end [2024-12-21 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072363', 'tblTempVendorCDR_20' ) start [2024-12-21 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072363', 'tblTempVendorCDR_20' ) end [2024-12-21 19:41:18] Production.INFO: ProcessCDR(1,14072363,1,1,2) [2024-12-21 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072363', 'tblTempUsageDetail_20' ) start [2024-12-21 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072363', 'tblTempUsageDetail_20' ) end [2024-12-21 19:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:41:22] Production.INFO: ==366== Releasing lock... [2024-12-21 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:41:22] Production.INFO: 40.75 MB #Memory Used# [2024-12-21 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:42:04 [end_date_ymd] => 2024-12-21 19:42:04 [RateCDR] => 1 ) [2024-12-21 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-21 16:42:04' and `end` < '2024-12-21 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-21 19:42:17] Production.INFO: count ==1730 [2024-12-21 19:42:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:42:04 - End Time 2024-12-21 19:42:04 [2024-12-21 19:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072368', 'tblTempUsageDetail_20' ) start [2024-12-21 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072368', 'tblTempUsageDetail_20' ) end [2024-12-21 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072368', 'tblTempVendorCDR_20' ) start [2024-12-21 19:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072368', 'tblTempVendorCDR_20' ) end [2024-12-21 19:42:17] Production.INFO: ProcessCDR(1,14072368,1,1,2) [2024-12-21 19:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072368', 'tblTempUsageDetail_20' ) start [2024-12-21 19:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072368', 'tblTempUsageDetail_20' ) end [2024-12-21 19:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:42:20] Production.INFO: ==435== Releasing lock... [2024-12-21 19:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:42:20] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:43:04 [end_date_ymd] => 2024-12-21 19:43:04 [RateCDR] => 1 ) [2024-12-21 19: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-21 16:43:04' and `end` < '2024-12-21 19: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-21 19:43:18] Production.INFO: count ==1724 [2024-12-21 19:43:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:43:04 - End Time 2024-12-21 19:43:04 [2024-12-21 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072373', 'tblTempUsageDetail_20' ) start [2024-12-21 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072373', 'tblTempUsageDetail_20' ) end [2024-12-21 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072373', 'tblTempVendorCDR_20' ) start [2024-12-21 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072373', 'tblTempVendorCDR_20' ) end [2024-12-21 19:43:18] Production.INFO: ProcessCDR(1,14072373,1,1,2) [2024-12-21 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072373', 'tblTempUsageDetail_20' ) start [2024-12-21 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072373', 'tblTempUsageDetail_20' ) end [2024-12-21 19:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:43:21] Production.INFO: ==512== Releasing lock... [2024-12-21 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:43:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:44:05 [end_date_ymd] => 2024-12-21 19:44:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:44:05' and `end` < '2024-12-21 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-21 19:44:19] Production.INFO: count ==1717 [2024-12-21 19:44:19] Production.ERROR: pbx CDR StartTime 2024-12-21 16:44:05 - End Time 2024-12-21 19:44:05 [2024-12-21 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072378', 'tblTempUsageDetail_20' ) start [2024-12-21 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072378', 'tblTempUsageDetail_20' ) end [2024-12-21 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072378', 'tblTempVendorCDR_20' ) start [2024-12-21 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072378', 'tblTempVendorCDR_20' ) end [2024-12-21 19:44:19] Production.INFO: ProcessCDR(1,14072378,1,1,2) [2024-12-21 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072378', 'tblTempUsageDetail_20' ) start [2024-12-21 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072378', 'tblTempUsageDetail_20' ) end [2024-12-21 19:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:44:23] Production.INFO: ==590== Releasing lock... [2024-12-21 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:44:23] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:45:05 [end_date_ymd] => 2024-12-21 19:45:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:45:05' and `end` < '2024-12-21 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-21 19:45:17] Production.INFO: count ==1700 [2024-12-21 19:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:45:05 - End Time 2024-12-21 19:45:05 [2024-12-21 19:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072383', 'tblTempUsageDetail_20' ) start [2024-12-21 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072383', 'tblTempUsageDetail_20' ) end [2024-12-21 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072383', 'tblTempVendorCDR_20' ) start [2024-12-21 19:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072383', 'tblTempVendorCDR_20' ) end [2024-12-21 19:45:17] Production.INFO: ProcessCDR(1,14072383,1,1,2) [2024-12-21 19:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072383', 'tblTempUsageDetail_20' ) start [2024-12-21 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072383', 'tblTempUsageDetail_20' ) end [2024-12-21 19:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:45:21] Production.INFO: ==681== Releasing lock... [2024-12-21 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:45:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:46:05 [end_date_ymd] => 2024-12-21 19:46:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:46:05' and `end` < '2024-12-21 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-21 19:46:17] Production.INFO: count ==1695 [2024-12-21 19:46:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:46:05 - End Time 2024-12-21 19:46:05 [2024-12-21 19:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072388', 'tblTempUsageDetail_20' ) start [2024-12-21 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072388', 'tblTempUsageDetail_20' ) end [2024-12-21 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072388', 'tblTempVendorCDR_20' ) start [2024-12-21 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072388', 'tblTempVendorCDR_20' ) end [2024-12-21 19:46:17] Production.INFO: ProcessCDR(1,14072388,1,1,2) [2024-12-21 19:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072388', 'tblTempUsageDetail_20' ) start [2024-12-21 19:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072388', 'tblTempUsageDetail_20' ) end [2024-12-21 19:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:46:20] Production.INFO: ==767== Releasing lock... [2024-12-21 19:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:46:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:47:04 [end_date_ymd] => 2024-12-21 19:47:04 [RateCDR] => 1 ) [2024-12-21 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-21 16:47:04' and `end` < '2024-12-21 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-21 19:47:16] Production.INFO: count ==1695 [2024-12-21 19:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:47:04 - End Time 2024-12-21 19:47:04 [2024-12-21 19:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072393', 'tblTempUsageDetail_20' ) start [2024-12-21 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072393', 'tblTempUsageDetail_20' ) end [2024-12-21 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072393', 'tblTempVendorCDR_20' ) start [2024-12-21 19:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072393', 'tblTempVendorCDR_20' ) end [2024-12-21 19:47:17] Production.INFO: ProcessCDR(1,14072393,1,1,2) [2024-12-21 19:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072393', 'tblTempUsageDetail_20' ) start [2024-12-21 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072393', 'tblTempUsageDetail_20' ) end [2024-12-21 19:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:47:21] Production.INFO: ==838== Releasing lock... [2024-12-21 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:47:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:48:05 [end_date_ymd] => 2024-12-21 19:48:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:48:05' and `end` < '2024-12-21 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-21 19:48:17] Production.INFO: count ==1687 [2024-12-21 19:48:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:48:05 - End Time 2024-12-21 19:48:05 [2024-12-21 19:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072398', 'tblTempUsageDetail_20' ) start [2024-12-21 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072398', 'tblTempUsageDetail_20' ) end [2024-12-21 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072398', 'tblTempVendorCDR_20' ) start [2024-12-21 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072398', 'tblTempVendorCDR_20' ) end [2024-12-21 19:48:17] Production.INFO: ProcessCDR(1,14072398,1,1,2) [2024-12-21 19:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072398', 'tblTempUsageDetail_20' ) start [2024-12-21 19:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072398', 'tblTempUsageDetail_20' ) end [2024-12-21 19:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:48:20] Production.INFO: ==911== Releasing lock... [2024-12-21 19:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:48:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:49:04 [end_date_ymd] => 2024-12-21 19:49:04 [RateCDR] => 1 ) [2024-12-21 19:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:49:04' and `end` < '2024-12-21 19:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:49:17] Production.INFO: count ==1683 [2024-12-21 19:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:49:04 - End Time 2024-12-21 19:49:04 [2024-12-21 19:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072403', 'tblTempUsageDetail_20' ) start [2024-12-21 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072403', 'tblTempUsageDetail_20' ) end [2024-12-21 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072403', 'tblTempVendorCDR_20' ) start [2024-12-21 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072403', 'tblTempVendorCDR_20' ) end [2024-12-21 19:49:17] Production.INFO: ProcessCDR(1,14072403,1,1,2) [2024-12-21 19:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072403', 'tblTempUsageDetail_20' ) start [2024-12-21 19:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072403', 'tblTempUsageDetail_20' ) end [2024-12-21 19:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:49:20] Production.INFO: ==985== Releasing lock... [2024-12-21 19:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:49:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:50:05 [end_date_ymd] => 2024-12-21 19:50:05 [RateCDR] => 1 ) [2024-12-21 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:50:05' and `end` < '2024-12-21 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:50:17] Production.INFO: count ==1681 [2024-12-21 19:50:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:50:05 - End Time 2024-12-21 19:50:05 [2024-12-21 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072409', 'tblTempUsageDetail_20' ) start [2024-12-21 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072409', 'tblTempUsageDetail_20' ) end [2024-12-21 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072409', 'tblTempVendorCDR_20' ) start [2024-12-21 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072409', 'tblTempVendorCDR_20' ) end [2024-12-21 19:50:18] Production.INFO: ProcessCDR(1,14072409,1,1,2) [2024-12-21 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072409', 'tblTempUsageDetail_20' ) start [2024-12-21 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072409', 'tblTempUsageDetail_20' ) end [2024-12-21 19:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:50:21] Production.INFO: ==1058== Releasing lock... [2024-12-21 19:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:50:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:51:05 [end_date_ymd] => 2024-12-21 19:51:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:51:05' and `end` < '2024-12-21 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-21 19:51:17] Production.INFO: count ==1686 [2024-12-21 19:51:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:51:05 - End Time 2024-12-21 19:51:05 [2024-12-21 19:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072414', 'tblTempUsageDetail_20' ) start [2024-12-21 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072414', 'tblTempUsageDetail_20' ) end [2024-12-21 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072414', 'tblTempVendorCDR_20' ) start [2024-12-21 19:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072414', 'tblTempVendorCDR_20' ) end [2024-12-21 19:51:17] Production.INFO: ProcessCDR(1,14072414,1,1,2) [2024-12-21 19:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072414', 'tblTempUsageDetail_20' ) start [2024-12-21 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072414', 'tblTempUsageDetail_20' ) end [2024-12-21 19:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:51:22] Production.INFO: ==1135== Releasing lock... [2024-12-21 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:51:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:52:05 [end_date_ymd] => 2024-12-21 19:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:52:05' and `end` < '2024-12-21 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-21 19:52:17] Production.INFO: count ==1683 [2024-12-21 19:52:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:52:05 - End Time 2024-12-21 19:52:05 [2024-12-21 19:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072419', 'tblTempUsageDetail_20' ) start [2024-12-21 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072419', 'tblTempUsageDetail_20' ) end [2024-12-21 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072419', 'tblTempVendorCDR_20' ) start [2024-12-21 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072419', 'tblTempVendorCDR_20' ) end [2024-12-21 19:52:17] Production.INFO: ProcessCDR(1,14072419,1,1,2) [2024-12-21 19:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072419', 'tblTempUsageDetail_20' ) start [2024-12-21 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072419', 'tblTempUsageDetail_20' ) end [2024-12-21 19:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:52:21] Production.INFO: ==1256== Releasing lock... [2024-12-21 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:52:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:53:04 [end_date_ymd] => 2024-12-21 19:53:04 [RateCDR] => 1 ) [2024-12-21 19:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 16:53:04' and `end` < '2024-12-21 19:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 19:53:16] Production.INFO: count ==1680 [2024-12-21 19:53:16] Production.ERROR: pbx CDR StartTime 2024-12-21 16:53:04 - End Time 2024-12-21 19:53:04 [2024-12-21 19:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072424', 'tblTempUsageDetail_20' ) start [2024-12-21 19:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072424', 'tblTempUsageDetail_20' ) end [2024-12-21 19:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072424', 'tblTempVendorCDR_20' ) start [2024-12-21 19:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072424', 'tblTempVendorCDR_20' ) end [2024-12-21 19:53:16] Production.INFO: ProcessCDR(1,14072424,1,1,2) [2024-12-21 19:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072424', 'tblTempUsageDetail_20' ) start [2024-12-21 19:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072424', 'tblTempUsageDetail_20' ) end [2024-12-21 19:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:53:19] Production.INFO: ==1418== Releasing lock... [2024-12-21 19:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:53:19] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:54:05 [end_date_ymd] => 2024-12-21 19:54:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:54:05' and `end` < '2024-12-21 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-21 19:54:18] Production.INFO: count ==1680 [2024-12-21 19:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 16:54:05 - End Time 2024-12-21 19:54:05 [2024-12-21 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072429', 'tblTempUsageDetail_20' ) start [2024-12-21 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072429', 'tblTempUsageDetail_20' ) end [2024-12-21 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072429', 'tblTempVendorCDR_20' ) start [2024-12-21 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072429', 'tblTempVendorCDR_20' ) end [2024-12-21 19:54:18] Production.INFO: ProcessCDR(1,14072429,1,1,2) [2024-12-21 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072429', 'tblTempUsageDetail_20' ) start [2024-12-21 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072429', 'tblTempUsageDetail_20' ) end [2024-12-21 19:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:54:21] Production.INFO: ==1581== Releasing lock... [2024-12-21 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:54:21] Production.INFO: 40.5 MB #Memory Used# [2024-12-21 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:55:05 [end_date_ymd] => 2024-12-21 19:55:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:55:05' and `end` < '2024-12-21 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-21 19:55:17] Production.INFO: count ==1686 [2024-12-21 19:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:55:05 - End Time 2024-12-21 19:55:05 [2024-12-21 19:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072434', 'tblTempUsageDetail_20' ) start [2024-12-21 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072434', 'tblTempUsageDetail_20' ) end [2024-12-21 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072434', 'tblTempVendorCDR_20' ) start [2024-12-21 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072434', 'tblTempVendorCDR_20' ) end [2024-12-21 19:55:17] Production.INFO: ProcessCDR(1,14072434,1,1,2) [2024-12-21 19:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072434', 'tblTempUsageDetail_20' ) start [2024-12-21 19:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072434', 'tblTempUsageDetail_20' ) end [2024-12-21 19:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:55:20] Production.INFO: ==1714== Releasing lock... [2024-12-21 19:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:55:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:56:04 [end_date_ymd] => 2024-12-21 19:56:04 [RateCDR] => 1 ) [2024-12-21 19: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-21 16:56:04' and `end` < '2024-12-21 19: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-21 19:56:17] Production.INFO: count ==1683 [2024-12-21 19:56:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:56:04 - End Time 2024-12-21 19:56:04 [2024-12-21 19:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072439', 'tblTempUsageDetail_20' ) start [2024-12-21 19:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072439', 'tblTempUsageDetail_20' ) end [2024-12-21 19:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072439', 'tblTempVendorCDR_20' ) start [2024-12-21 19:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072439', 'tblTempVendorCDR_20' ) end [2024-12-21 19:56:17] Production.INFO: ProcessCDR(1,14072439,1,1,2) [2024-12-21 19:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072439', 'tblTempUsageDetail_20' ) start [2024-12-21 19:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072439', 'tblTempUsageDetail_20' ) end [2024-12-21 19:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:56:20] Production.INFO: ==1837== Releasing lock... [2024-12-21 19:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:56:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:57:05 [end_date_ymd] => 2024-12-21 19:57:05 [RateCDR] => 1 ) [2024-12-21 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-21 16:57:05' and `end` < '2024-12-21 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-21 19:57:17] Production.INFO: count ==1683 [2024-12-21 19:57:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:57:05 - End Time 2024-12-21 19:57:05 [2024-12-21 19:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072444', 'tblTempUsageDetail_20' ) start [2024-12-21 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072444', 'tblTempUsageDetail_20' ) end [2024-12-21 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072444', 'tblTempVendorCDR_20' ) start [2024-12-21 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072444', 'tblTempVendorCDR_20' ) end [2024-12-21 19:57:17] Production.INFO: ProcessCDR(1,14072444,1,1,2) [2024-12-21 19:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072444', 'tblTempUsageDetail_20' ) start [2024-12-21 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072444', 'tblTempUsageDetail_20' ) end [2024-12-21 19:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:57:22] Production.INFO: ==1955== Releasing lock... [2024-12-21 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:57:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:58:04 [end_date_ymd] => 2024-12-21 19:58:04 [RateCDR] => 1 ) [2024-12-21 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-21 16:58:04' and `end` < '2024-12-21 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-21 19:58:17] Production.INFO: count ==1679 [2024-12-21 19:58:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:58:04 - End Time 2024-12-21 19:58:04 [2024-12-21 19:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072449', 'tblTempUsageDetail_20' ) start [2024-12-21 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072449', 'tblTempUsageDetail_20' ) end [2024-12-21 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072449', 'tblTempVendorCDR_20' ) start [2024-12-21 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072449', 'tblTempVendorCDR_20' ) end [2024-12-21 19:58:17] Production.INFO: ProcessCDR(1,14072449,1,1,2) [2024-12-21 19:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072449', 'tblTempUsageDetail_20' ) start [2024-12-21 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072449', 'tblTempUsageDetail_20' ) end [2024-12-21 19:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:58:21] Production.INFO: ==2077== Releasing lock... [2024-12-21 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:58:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 16:59:04 [end_date_ymd] => 2024-12-21 19:59:04 [RateCDR] => 1 ) [2024-12-21 19: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-21 16:59:04' and `end` < '2024-12-21 19: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-21 19:59:17] Production.INFO: count ==1681 [2024-12-21 19:59:17] Production.ERROR: pbx CDR StartTime 2024-12-21 16:59:04 - End Time 2024-12-21 19:59:04 [2024-12-21 19:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072454', 'tblTempUsageDetail_20' ) start [2024-12-21 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072454', 'tblTempUsageDetail_20' ) end [2024-12-21 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072454', 'tblTempVendorCDR_20' ) start [2024-12-21 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072454', 'tblTempVendorCDR_20' ) end [2024-12-21 19:59:17] Production.INFO: ProcessCDR(1,14072454,1,1,2) [2024-12-21 19:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072454', 'tblTempUsageDetail_20' ) start [2024-12-21 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072454', 'tblTempUsageDetail_20' ) end [2024-12-21 19:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 19:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 19:59:21] Production.INFO: ==2202== Releasing lock... [2024-12-21 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 19:59:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:00:06 [end_date_ymd] => 2024-12-21 20:00:06 [RateCDR] => 1 ) [2024-12-21 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-21 17:00:06' and `end` < '2024-12-21 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-21 20:00:18] Production.INFO: count ==1684 [2024-12-21 20:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:00:06 - End Time 2024-12-21 20:00:06 [2024-12-21 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072459', 'tblTempUsageDetail_20' ) start [2024-12-21 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072459', 'tblTempUsageDetail_20' ) end [2024-12-21 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072459', 'tblTempVendorCDR_20' ) start [2024-12-21 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072459', 'tblTempVendorCDR_20' ) end [2024-12-21 20:00:18] Production.INFO: ProcessCDR(1,14072459,1,1,2) [2024-12-21 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072459', 'tblTempUsageDetail_20' ) start [2024-12-21 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072459', 'tblTempUsageDetail_20' ) end [2024-12-21 20:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:00:21] Production.INFO: ==2328== Releasing lock... [2024-12-21 20:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:00:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:01:04 [end_date_ymd] => 2024-12-21 20:01:04 [RateCDR] => 1 ) [2024-12-21 20:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:01:04' and `end` < '2024-12-21 20:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:01:16] Production.INFO: count ==1676 [2024-12-21 20:01:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:01:04 - End Time 2024-12-21 20:01:04 [2024-12-21 20:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072465', 'tblTempUsageDetail_20' ) start [2024-12-21 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072465', 'tblTempUsageDetail_20' ) end [2024-12-21 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072465', 'tblTempVendorCDR_20' ) start [2024-12-21 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072465', 'tblTempVendorCDR_20' ) end [2024-12-21 20:01:17] Production.INFO: ProcessCDR(1,14072465,1,1,2) [2024-12-21 20:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:01:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:01:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072465', 'tblTempUsageDetail_20' ) start [2024-12-21 20:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072465', 'tblTempUsageDetail_20' ) end [2024-12-21 20:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:01:20] Production.INFO: ==2511== Releasing lock... [2024-12-21 20:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:01:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:02:05 [end_date_ymd] => 2024-12-21 20:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:02:05' and `end` < '2024-12-21 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-21 20:02:18] Production.INFO: count ==1674 [2024-12-21 20:02:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:02:05 - End Time 2024-12-21 20:02:05 [2024-12-21 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072470', 'tblTempUsageDetail_20' ) start [2024-12-21 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072470', 'tblTempUsageDetail_20' ) end [2024-12-21 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072470', 'tblTempVendorCDR_20' ) start [2024-12-21 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072470', 'tblTempVendorCDR_20' ) end [2024-12-21 20:02:18] Production.INFO: ProcessCDR(1,14072470,1,1,2) [2024-12-21 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072470', 'tblTempUsageDetail_20' ) start [2024-12-21 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072470', 'tblTempUsageDetail_20' ) end [2024-12-21 20:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:02:22] Production.INFO: ==2632== Releasing lock... [2024-12-21 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:02:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 20:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:03:04 [end_date_ymd] => 2024-12-21 20:03:04 [RateCDR] => 1 ) [2024-12-21 20: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-21 17:03:04' and `end` < '2024-12-21 20: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-21 20:03:16] Production.INFO: count ==1671 [2024-12-21 20:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:03:04 - End Time 2024-12-21 20:03:04 [2024-12-21 20:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072475', 'tblTempUsageDetail_20' ) start [2024-12-21 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072475', 'tblTempUsageDetail_20' ) end [2024-12-21 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072475', 'tblTempVendorCDR_20' ) start [2024-12-21 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072475', 'tblTempVendorCDR_20' ) end [2024-12-21 20:03:17] Production.INFO: ProcessCDR(1,14072475,1,1,2) [2024-12-21 20:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072475', 'tblTempUsageDetail_20' ) start [2024-12-21 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072475', 'tblTempUsageDetail_20' ) end [2024-12-21 20:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:03:21] Production.INFO: ==2761== Releasing lock... [2024-12-21 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:03:21] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:04:04 [end_date_ymd] => 2024-12-21 20:04:04 [RateCDR] => 1 ) [2024-12-21 20: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-21 17:04:04' and `end` < '2024-12-21 20: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-21 20:04:17] Production.INFO: count ==1671 [2024-12-21 20:04:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:04:04 - End Time 2024-12-21 20:04:04 [2024-12-21 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072480', 'tblTempUsageDetail_20' ) start [2024-12-21 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072480', 'tblTempUsageDetail_20' ) end [2024-12-21 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072480', 'tblTempVendorCDR_20' ) start [2024-12-21 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072480', 'tblTempVendorCDR_20' ) end [2024-12-21 20:04:18] Production.INFO: ProcessCDR(1,14072480,1,1,2) [2024-12-21 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072480', 'tblTempUsageDetail_20' ) start [2024-12-21 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072480', 'tblTempUsageDetail_20' ) end [2024-12-21 20:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:04:22] Production.INFO: ==2883== Releasing lock... [2024-12-21 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:04:22] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:05:05 [end_date_ymd] => 2024-12-21 20:05:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:05:05' and `end` < '2024-12-21 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-21 20:05:17] Production.INFO: count ==1670 [2024-12-21 20:05:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:05:05 - End Time 2024-12-21 20:05:05 [2024-12-21 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072485', 'tblTempUsageDetail_20' ) start [2024-12-21 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072485', 'tblTempUsageDetail_20' ) end [2024-12-21 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072485', 'tblTempVendorCDR_20' ) start [2024-12-21 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072485', 'tblTempVendorCDR_20' ) end [2024-12-21 20:05:18] Production.INFO: ProcessCDR(1,14072485,1,1,2) [2024-12-21 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072485', 'tblTempUsageDetail_20' ) start [2024-12-21 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072485', 'tblTempUsageDetail_20' ) end [2024-12-21 20:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:05:21] Production.INFO: ==3011== Releasing lock... [2024-12-21 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:05:21] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:06:04 [end_date_ymd] => 2024-12-21 20:06:04 [RateCDR] => 1 ) [2024-12-21 20:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:06:04' and `end` < '2024-12-21 20:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:06:17] Production.INFO: count ==1671 [2024-12-21 20:06:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:06:04 - End Time 2024-12-21 20:06:04 [2024-12-21 20:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072490', 'tblTempUsageDetail_20' ) start [2024-12-21 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072490', 'tblTempUsageDetail_20' ) end [2024-12-21 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072490', 'tblTempVendorCDR_20' ) start [2024-12-21 20:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072490', 'tblTempVendorCDR_20' ) end [2024-12-21 20:06:17] Production.INFO: ProcessCDR(1,14072490,1,1,2) [2024-12-21 20:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072490', 'tblTempUsageDetail_20' ) start [2024-12-21 20:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072490', 'tblTempUsageDetail_20' ) end [2024-12-21 20:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:06:20] Production.INFO: ==3140== Releasing lock... [2024-12-21 20:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:06:20] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:07:05 [end_date_ymd] => 2024-12-21 20:07:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:07:05' and `end` < '2024-12-21 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-21 20:07:17] Production.INFO: count ==1671 [2024-12-21 20:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:07:05 - End Time 2024-12-21 20:07:05 [2024-12-21 20:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072495', 'tblTempUsageDetail_20' ) start [2024-12-21 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072495', 'tblTempUsageDetail_20' ) end [2024-12-21 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072495', 'tblTempVendorCDR_20' ) start [2024-12-21 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072495', 'tblTempVendorCDR_20' ) end [2024-12-21 20:07:17] Production.INFO: ProcessCDR(1,14072495,1,1,2) [2024-12-21 20:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072495', 'tblTempUsageDetail_20' ) start [2024-12-21 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072495', 'tblTempUsageDetail_20' ) end [2024-12-21 20:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:07:22] Production.INFO: ==3279== Releasing lock... [2024-12-21 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:07:22] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:08:05 [end_date_ymd] => 2024-12-21 20:08:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:08:05' and `end` < '2024-12-21 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-21 20:08:17] Production.INFO: count ==1674 [2024-12-21 20:08:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:08:05 - End Time 2024-12-21 20:08:05 [2024-12-21 20:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072500', 'tblTempUsageDetail_20' ) start [2024-12-21 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072500', 'tblTempUsageDetail_20' ) end [2024-12-21 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072500', 'tblTempVendorCDR_20' ) start [2024-12-21 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072500', 'tblTempVendorCDR_20' ) end [2024-12-21 20:08:17] Production.INFO: ProcessCDR(1,14072500,1,1,2) [2024-12-21 20:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072500', 'tblTempUsageDetail_20' ) start [2024-12-21 20:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072500', 'tblTempUsageDetail_20' ) end [2024-12-21 20:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:08:20] Production.INFO: ==3445== Releasing lock... [2024-12-21 20:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:08:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:09:04 [end_date_ymd] => 2024-12-21 20:09:04 [RateCDR] => 1 ) [2024-12-21 20: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-21 17:09:04' and `end` < '2024-12-21 20: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-21 20:09:17] Production.INFO: count ==1673 [2024-12-21 20:09:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:09:04 - End Time 2024-12-21 20:09:04 [2024-12-21 20:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072505', 'tblTempUsageDetail_20' ) start [2024-12-21 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072505', 'tblTempUsageDetail_20' ) end [2024-12-21 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072505', 'tblTempVendorCDR_20' ) start [2024-12-21 20:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072505', 'tblTempVendorCDR_20' ) end [2024-12-21 20:09:17] Production.INFO: ProcessCDR(1,14072505,1,1,2) [2024-12-21 20:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072505', 'tblTempUsageDetail_20' ) start [2024-12-21 20:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072505', 'tblTempUsageDetail_20' ) end [2024-12-21 20:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:09:20] Production.INFO: ==3546== Releasing lock... [2024-12-21 20:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:09:20] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:10:06 [end_date_ymd] => 2024-12-21 20:10:06 [RateCDR] => 1 ) [2024-12-21 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:10:06' and `end` < '2024-12-21 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:10:18] Production.INFO: count ==1672 [2024-12-21 20:10:19] Production.ERROR: pbx CDR StartTime 2024-12-21 17:10:06 - End Time 2024-12-21 20:10:06 [2024-12-21 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072511', 'tblTempUsageDetail_20' ) start [2024-12-21 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072511', 'tblTempUsageDetail_20' ) end [2024-12-21 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072511', 'tblTempVendorCDR_20' ) start [2024-12-21 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072511', 'tblTempVendorCDR_20' ) end [2024-12-21 20:10:19] Production.INFO: ProcessCDR(1,14072511,1,1,2) [2024-12-21 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072511', 'tblTempUsageDetail_20' ) start [2024-12-21 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072511', 'tblTempUsageDetail_20' ) end [2024-12-21 20:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:10:22] Production.INFO: ==3640== Releasing lock... [2024-12-21 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:10:22] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:11:05 [end_date_ymd] => 2024-12-21 20:11:05 [RateCDR] => 1 ) [2024-12-21 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:11:05' and `end` < '2024-12-21 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:11:17] Production.INFO: count ==1670 [2024-12-21 20:11:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:11:05 - End Time 2024-12-21 20:11:05 [2024-12-21 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072516', 'tblTempUsageDetail_20' ) start [2024-12-21 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072516', 'tblTempUsageDetail_20' ) end [2024-12-21 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072516', 'tblTempVendorCDR_20' ) start [2024-12-21 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072516', 'tblTempVendorCDR_20' ) end [2024-12-21 20:11:18] Production.INFO: ProcessCDR(1,14072516,1,1,2) [2024-12-21 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072516', 'tblTempUsageDetail_20' ) start [2024-12-21 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072516', 'tblTempUsageDetail_20' ) end [2024-12-21 20:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:11:21] Production.INFO: ==3723== Releasing lock... [2024-12-21 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:11:21] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:12:05 [end_date_ymd] => 2024-12-21 20:12:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:12:05' and `end` < '2024-12-21 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-21 20:12:17] Production.INFO: count ==1670 [2024-12-21 20:12:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:12:05 - End Time 2024-12-21 20:12:05 [2024-12-21 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072521', 'tblTempUsageDetail_20' ) start [2024-12-21 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072521', 'tblTempUsageDetail_20' ) end [2024-12-21 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072521', 'tblTempVendorCDR_20' ) start [2024-12-21 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072521', 'tblTempVendorCDR_20' ) end [2024-12-21 20:12:18] Production.INFO: ProcessCDR(1,14072521,1,1,2) [2024-12-21 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072521', 'tblTempUsageDetail_20' ) start [2024-12-21 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072521', 'tblTempUsageDetail_20' ) end [2024-12-21 20:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:12:21] Production.INFO: ==3809== Releasing lock... [2024-12-21 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:12:21] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:13:04 [end_date_ymd] => 2024-12-21 20:13:04 [RateCDR] => 1 ) [2024-12-21 20: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-21 17:13:04' and `end` < '2024-12-21 20: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-21 20:13:16] Production.INFO: count ==1669 [2024-12-21 20:13:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:13:04 - End Time 2024-12-21 20:13:04 [2024-12-21 20:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072526', 'tblTempUsageDetail_20' ) start [2024-12-21 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072526', 'tblTempUsageDetail_20' ) end [2024-12-21 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072526', 'tblTempVendorCDR_20' ) start [2024-12-21 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072526', 'tblTempVendorCDR_20' ) end [2024-12-21 20:13:17] Production.INFO: ProcessCDR(1,14072526,1,1,2) [2024-12-21 20:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072526', 'tblTempUsageDetail_20' ) start [2024-12-21 20:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072526', 'tblTempUsageDetail_20' ) end [2024-12-21 20:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:13:20] Production.INFO: ==3896== Releasing lock... [2024-12-21 20:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:13:20] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:14:05 [end_date_ymd] => 2024-12-21 20:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:14:05' and `end` < '2024-12-21 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-21 20:14:17] Production.INFO: count ==1668 [2024-12-21 20:14:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:14:05 - End Time 2024-12-21 20:14:05 [2024-12-21 20:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072531', 'tblTempUsageDetail_20' ) start [2024-12-21 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072531', 'tblTempUsageDetail_20' ) end [2024-12-21 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072531', 'tblTempVendorCDR_20' ) start [2024-12-21 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072531', 'tblTempVendorCDR_20' ) end [2024-12-21 20:14:17] Production.INFO: ProcessCDR(1,14072531,1,1,2) [2024-12-21 20:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072531', 'tblTempUsageDetail_20' ) start [2024-12-21 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072531', 'tblTempUsageDetail_20' ) end [2024-12-21 20:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:14:21] Production.INFO: ==3987== Releasing lock... [2024-12-21 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:14:21] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:15:04 [end_date_ymd] => 2024-12-21 20:15:04 [RateCDR] => 1 ) [2024-12-21 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-21 17:15:04' and `end` < '2024-12-21 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-21 20:15:17] Production.INFO: count ==1669 [2024-12-21 20:15:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:15:04 - End Time 2024-12-21 20:15:04 [2024-12-21 20:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072536', 'tblTempUsageDetail_20' ) start [2024-12-21 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072536', 'tblTempUsageDetail_20' ) end [2024-12-21 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072536', 'tblTempVendorCDR_20' ) start [2024-12-21 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072536', 'tblTempVendorCDR_20' ) end [2024-12-21 20:15:17] Production.INFO: ProcessCDR(1,14072536,1,1,2) [2024-12-21 20:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072536', 'tblTempUsageDetail_20' ) start [2024-12-21 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072536', 'tblTempUsageDetail_20' ) end [2024-12-21 20:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:15:21] Production.INFO: ==4073== Releasing lock... [2024-12-21 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:15:21] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:16:05 [end_date_ymd] => 2024-12-21 20:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:16:05' and `end` < '2024-12-21 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-21 20:16:17] Production.INFO: count ==1669 [2024-12-21 20:16:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:16:05 - End Time 2024-12-21 20:16:05 [2024-12-21 20:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072541', 'tblTempUsageDetail_20' ) start [2024-12-21 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072541', 'tblTempUsageDetail_20' ) end [2024-12-21 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072541', 'tblTempVendorCDR_20' ) start [2024-12-21 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072541', 'tblTempVendorCDR_20' ) end [2024-12-21 20:16:17] Production.INFO: ProcessCDR(1,14072541,1,1,2) [2024-12-21 20:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072541', 'tblTempUsageDetail_20' ) start [2024-12-21 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072541', 'tblTempUsageDetail_20' ) end [2024-12-21 20:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:16:21] Production.INFO: ==4165== Releasing lock... [2024-12-21 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:16:21] Production.INFO: 40.25 MB #Memory Used# [2024-12-21 20:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:17:04 [end_date_ymd] => 2024-12-21 20:17:04 [RateCDR] => 1 ) [2024-12-21 20: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-21 17:17:04' and `end` < '2024-12-21 20: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-21 20:17:17] Production.INFO: count ==1664 [2024-12-21 20:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:17:04 - End Time 2024-12-21 20:17:04 [2024-12-21 20:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072546', 'tblTempUsageDetail_20' ) start [2024-12-21 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072546', 'tblTempUsageDetail_20' ) end [2024-12-21 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072546', 'tblTempVendorCDR_20' ) start [2024-12-21 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072546', 'tblTempVendorCDR_20' ) end [2024-12-21 20:17:17] Production.INFO: ProcessCDR(1,14072546,1,1,2) [2024-12-21 20:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072546', 'tblTempUsageDetail_20' ) start [2024-12-21 20:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072546', 'tblTempUsageDetail_20' ) end [2024-12-21 20:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:17:20] Production.INFO: ==4257== Releasing lock... [2024-12-21 20:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:17:20] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:18:05 [end_date_ymd] => 2024-12-21 20:18:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:18:05' and `end` < '2024-12-21 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-21 20:18:18] Production.INFO: count ==1661 [2024-12-21 20:18:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:18:05 - End Time 2024-12-21 20:18:05 [2024-12-21 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072551', 'tblTempUsageDetail_20' ) start [2024-12-21 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072551', 'tblTempUsageDetail_20' ) end [2024-12-21 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072551', 'tblTempVendorCDR_20' ) start [2024-12-21 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072551', 'tblTempVendorCDR_20' ) end [2024-12-21 20:18:18] Production.INFO: ProcessCDR(1,14072551,1,1,2) [2024-12-21 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072551', 'tblTempUsageDetail_20' ) start [2024-12-21 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072551', 'tblTempUsageDetail_20' ) end [2024-12-21 20:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:18:22] Production.INFO: ==4339== Releasing lock... [2024-12-21 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:18:22] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:19:04 [end_date_ymd] => 2024-12-21 20:19:04 [RateCDR] => 1 ) [2024-12-21 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-21 17:19:04' and `end` < '2024-12-21 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-21 20:19:16] Production.INFO: count ==1660 [2024-12-21 20:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:19:04 - End Time 2024-12-21 20:19:04 [2024-12-21 20:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072556', 'tblTempUsageDetail_20' ) start [2024-12-21 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072556', 'tblTempUsageDetail_20' ) end [2024-12-21 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072556', 'tblTempVendorCDR_20' ) start [2024-12-21 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072556', 'tblTempVendorCDR_20' ) end [2024-12-21 20:19:17] Production.INFO: ProcessCDR(1,14072556,1,1,2) [2024-12-21 20:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072556', 'tblTempUsageDetail_20' ) start [2024-12-21 20:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072556', 'tblTempUsageDetail_20' ) end [2024-12-21 20:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:19:20] Production.INFO: ==4415== Releasing lock... [2024-12-21 20:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:19:20] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:20:05 [end_date_ymd] => 2024-12-21 20:20:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:20:05' and `end` < '2024-12-21 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-21 20:20:18] Production.INFO: count ==1658 [2024-12-21 20:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:20:05 - End Time 2024-12-21 20:20:05 [2024-12-21 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072562', 'tblTempUsageDetail_20' ) start [2024-12-21 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072562', 'tblTempUsageDetail_20' ) end [2024-12-21 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072562', 'tblTempVendorCDR_20' ) start [2024-12-21 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072562', 'tblTempVendorCDR_20' ) end [2024-12-21 20:20:18] Production.INFO: ProcessCDR(1,14072562,1,1,2) [2024-12-21 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072562', 'tblTempUsageDetail_20' ) start [2024-12-21 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072562', 'tblTempUsageDetail_20' ) end [2024-12-21 20:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:20:21] Production.INFO: ==4494== Releasing lock... [2024-12-21 20:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:20:21] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:21:05 [end_date_ymd] => 2024-12-21 20:21:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:21:05' and `end` < '2024-12-21 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-21 20:21:17] Production.INFO: count ==1639 [2024-12-21 20:21:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:21:05 - End Time 2024-12-21 20:21:05 [2024-12-21 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072567', 'tblTempUsageDetail_20' ) start [2024-12-21 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072567', 'tblTempUsageDetail_20' ) end [2024-12-21 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072567', 'tblTempVendorCDR_20' ) start [2024-12-21 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072567', 'tblTempVendorCDR_20' ) end [2024-12-21 20:21:18] Production.INFO: ProcessCDR(1,14072567,1,1,2) [2024-12-21 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072567', 'tblTempUsageDetail_20' ) start [2024-12-21 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072567', 'tblTempUsageDetail_20' ) end [2024-12-21 20:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:21:22] Production.INFO: ==4585== Releasing lock... [2024-12-21 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:21:22] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:22:05 [end_date_ymd] => 2024-12-21 20:22:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:22:05' and `end` < '2024-12-21 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-21 20:22:17] Production.INFO: count ==1638 [2024-12-21 20:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:22:05 - End Time 2024-12-21 20:22:05 [2024-12-21 20:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072572', 'tblTempUsageDetail_20' ) start [2024-12-21 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072572', 'tblTempUsageDetail_20' ) end [2024-12-21 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072572', 'tblTempVendorCDR_20' ) start [2024-12-21 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072572', 'tblTempVendorCDR_20' ) end [2024-12-21 20:22:17] Production.INFO: ProcessCDR(1,14072572,1,1,2) [2024-12-21 20:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072572', 'tblTempUsageDetail_20' ) start [2024-12-21 20:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072572', 'tblTempUsageDetail_20' ) end [2024-12-21 20:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:22:20] Production.INFO: ==4663== Releasing lock... [2024-12-21 20:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:22:20] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:23:05 [end_date_ymd] => 2024-12-21 20:23:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:23:05' and `end` < '2024-12-21 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-21 20:23:17] Production.INFO: count ==1637 [2024-12-21 20:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:23:05 - End Time 2024-12-21 20:23:05 [2024-12-21 20:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072577', 'tblTempUsageDetail_20' ) start [2024-12-21 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072577', 'tblTempUsageDetail_20' ) end [2024-12-21 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072577', 'tblTempVendorCDR_20' ) start [2024-12-21 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072577', 'tblTempVendorCDR_20' ) end [2024-12-21 20:23:17] Production.INFO: ProcessCDR(1,14072577,1,1,2) [2024-12-21 20:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072577', 'tblTempUsageDetail_20' ) start [2024-12-21 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072577', 'tblTempUsageDetail_20' ) end [2024-12-21 20:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:23:21] Production.INFO: ==4772== Releasing lock... [2024-12-21 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:23:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-21 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:24:05 [end_date_ymd] => 2024-12-21 20:24:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:24:05' and `end` < '2024-12-21 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-21 20:24:17] Production.INFO: count ==1636 [2024-12-21 20:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:24:05 - End Time 2024-12-21 20:24:05 [2024-12-21 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072582', 'tblTempUsageDetail_20' ) start [2024-12-21 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072582', 'tblTempUsageDetail_20' ) end [2024-12-21 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072582', 'tblTempVendorCDR_20' ) start [2024-12-21 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072582', 'tblTempVendorCDR_20' ) end [2024-12-21 20:24:18] Production.INFO: ProcessCDR(1,14072582,1,1,2) [2024-12-21 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072582', 'tblTempUsageDetail_20' ) start [2024-12-21 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072582', 'tblTempUsageDetail_20' ) end [2024-12-21 20:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:24:21] Production.INFO: ==4911== Releasing lock... [2024-12-21 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:24:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-21 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:25:04 [end_date_ymd] => 2024-12-21 20:25:04 [RateCDR] => 1 ) [2024-12-21 20:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:25:04' and `end` < '2024-12-21 20:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:25:16] Production.INFO: count ==1637 [2024-12-21 20:25:16] Production.ERROR: pbx CDR StartTime 2024-12-21 17:25:04 - End Time 2024-12-21 20:25:04 [2024-12-21 20:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072587', 'tblTempUsageDetail_20' ) start [2024-12-21 20:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072587', 'tblTempUsageDetail_20' ) end [2024-12-21 20:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072587', 'tblTempVendorCDR_20' ) start [2024-12-21 20:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072587', 'tblTempVendorCDR_20' ) end [2024-12-21 20:25:16] Production.INFO: ProcessCDR(1,14072587,1,1,2) [2024-12-21 20:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072587', 'tblTempUsageDetail_20' ) start [2024-12-21 20:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072587', 'tblTempUsageDetail_20' ) end [2024-12-21 20:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:25:20] Production.INFO: ==5003== Releasing lock... [2024-12-21 20:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:25:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-21 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:26:05 [end_date_ymd] => 2024-12-21 20:26:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:26:05' and `end` < '2024-12-21 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-21 20:26:17] Production.INFO: count ==1640 [2024-12-21 20:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:26:05 - End Time 2024-12-21 20:26:05 [2024-12-21 20:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072592', 'tblTempUsageDetail_20' ) start [2024-12-21 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072592', 'tblTempUsageDetail_20' ) end [2024-12-21 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072592', 'tblTempVendorCDR_20' ) start [2024-12-21 20:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072592', 'tblTempVendorCDR_20' ) end [2024-12-21 20:26:17] Production.INFO: ProcessCDR(1,14072592,1,1,2) [2024-12-21 20:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072592', 'tblTempUsageDetail_20' ) start [2024-12-21 20:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072592', 'tblTempUsageDetail_20' ) end [2024-12-21 20:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:26:20] Production.INFO: ==5090== Releasing lock... [2024-12-21 20:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:26:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-21 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:27:05 [end_date_ymd] => 2024-12-21 20:27:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:27:05' and `end` < '2024-12-21 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-21 20:27:17] Production.INFO: count ==1640 [2024-12-21 20:27:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:27:05 - End Time 2024-12-21 20:27:05 [2024-12-21 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072597', 'tblTempUsageDetail_20' ) start [2024-12-21 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072597', 'tblTempUsageDetail_20' ) end [2024-12-21 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072597', 'tblTempVendorCDR_20' ) start [2024-12-21 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072597', 'tblTempVendorCDR_20' ) end [2024-12-21 20:27:18] Production.INFO: ProcessCDR(1,14072597,1,1,2) [2024-12-21 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072597', 'tblTempUsageDetail_20' ) start [2024-12-21 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072597', 'tblTempUsageDetail_20' ) end [2024-12-21 20:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:27:21] Production.INFO: ==5169== Releasing lock... [2024-12-21 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:27:21] Production.INFO: 40 MB #Memory Used# [2024-12-21 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:28:05 [end_date_ymd] => 2024-12-21 20:28:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:28:05' and `end` < '2024-12-21 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-21 20:28:17] Production.INFO: count ==1639 [2024-12-21 20:28:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:28:05 - End Time 2024-12-21 20:28:05 [2024-12-21 20:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072602', 'tblTempUsageDetail_20' ) start [2024-12-21 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072602', 'tblTempUsageDetail_20' ) end [2024-12-21 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072602', 'tblTempVendorCDR_20' ) start [2024-12-21 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072602', 'tblTempVendorCDR_20' ) end [2024-12-21 20:28:17] Production.INFO: ProcessCDR(1,14072602,1,1,2) [2024-12-21 20:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072602', 'tblTempUsageDetail_20' ) start [2024-12-21 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072602', 'tblTempUsageDetail_20' ) end [2024-12-21 20:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:28:20] Production.INFO: ==5255== Releasing lock... [2024-12-21 20:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:28:20] Production.INFO: 39.75 MB #Memory Used# [2024-12-21 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:29:05 [end_date_ymd] => 2024-12-21 20:29:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:29:05' and `end` < '2024-12-21 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-21 20:29:18] Production.INFO: count ==1637 [2024-12-21 20:29:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:29:05 - End Time 2024-12-21 20:29:05 [2024-12-21 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072607', 'tblTempUsageDetail_20' ) start [2024-12-21 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072607', 'tblTempUsageDetail_20' ) end [2024-12-21 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072607', 'tblTempVendorCDR_20' ) start [2024-12-21 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072607', 'tblTempVendorCDR_20' ) end [2024-12-21 20:29:18] Production.INFO: ProcessCDR(1,14072607,1,1,2) [2024-12-21 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072607', 'tblTempUsageDetail_20' ) start [2024-12-21 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072607', 'tblTempUsageDetail_20' ) end [2024-12-21 20:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:29:23] Production.INFO: ==5332== Releasing lock... [2024-12-21 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:29:23] Production.INFO: 39.75 MB #Memory Used# [2024-12-21 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:30:05 [end_date_ymd] => 2024-12-21 20:30:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:30:05' and `end` < '2024-12-21 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-21 20:30:17] Production.INFO: count ==1636 [2024-12-21 20:30:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:30:05 - End Time 2024-12-21 20:30:05 [2024-12-21 20:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072612', 'tblTempUsageDetail_20' ) start [2024-12-21 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072612', 'tblTempUsageDetail_20' ) end [2024-12-21 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072612', 'tblTempVendorCDR_20' ) start [2024-12-21 20:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072612', 'tblTempVendorCDR_20' ) end [2024-12-21 20:30:17] Production.INFO: ProcessCDR(1,14072612,1,1,2) [2024-12-21 20:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072612', 'tblTempUsageDetail_20' ) start [2024-12-21 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072612', 'tblTempUsageDetail_20' ) end [2024-12-21 20:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:30:22] Production.INFO: ==5412== Releasing lock... [2024-12-21 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:30:22] Production.INFO: 39.75 MB #Memory Used# [2024-12-21 20:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:31:04 [end_date_ymd] => 2024-12-21 20:31:04 [RateCDR] => 1 ) [2024-12-21 20:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:31:04' and `end` < '2024-12-21 20:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:31:18] Production.INFO: count ==1601 [2024-12-21 20:31:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:31:04 - End Time 2024-12-21 20:31:04 [2024-12-21 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072618', 'tblTempUsageDetail_20' ) start [2024-12-21 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072618', 'tblTempUsageDetail_20' ) end [2024-12-21 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072618', 'tblTempVendorCDR_20' ) start [2024-12-21 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072618', 'tblTempVendorCDR_20' ) end [2024-12-21 20:31:18] Production.INFO: ProcessCDR(1,14072618,1,1,2) [2024-12-21 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072618', 'tblTempUsageDetail_20' ) start [2024-12-21 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072618', 'tblTempUsageDetail_20' ) end [2024-12-21 20:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:31:21] Production.INFO: ==5493== Releasing lock... [2024-12-21 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:31:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-21 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:32:05 [end_date_ymd] => 2024-12-21 20:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:32:05' and `end` < '2024-12-21 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-21 20:32:18] Production.INFO: count ==1600 [2024-12-21 20:32:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:32:05 - End Time 2024-12-21 20:32:05 [2024-12-21 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072623', 'tblTempUsageDetail_20' ) start [2024-12-21 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072623', 'tblTempUsageDetail_20' ) end [2024-12-21 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072623', 'tblTempVendorCDR_20' ) start [2024-12-21 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072623', 'tblTempVendorCDR_20' ) end [2024-12-21 20:32:18] Production.INFO: ProcessCDR(1,14072623,1,1,2) [2024-12-21 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072623', 'tblTempUsageDetail_20' ) start [2024-12-21 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072623', 'tblTempUsageDetail_20' ) end [2024-12-21 20:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:32:21] Production.INFO: ==5574== Releasing lock... [2024-12-21 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:32:21] Production.INFO: 39.75 MB #Memory Used# [2024-12-21 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:33:04 [end_date_ymd] => 2024-12-21 20:33:04 [RateCDR] => 1 ) [2024-12-21 20:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:33:04' and `end` < '2024-12-21 20:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:33:17] Production.INFO: count ==1599 [2024-12-21 20:33:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:33:04 - End Time 2024-12-21 20:33:04 [2024-12-21 20:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072628', 'tblTempUsageDetail_20' ) start [2024-12-21 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072628', 'tblTempUsageDetail_20' ) end [2024-12-21 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072628', 'tblTempVendorCDR_20' ) start [2024-12-21 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072628', 'tblTempVendorCDR_20' ) end [2024-12-21 20:33:17] Production.INFO: ProcessCDR(1,14072628,1,1,2) [2024-12-21 20:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072628', 'tblTempUsageDetail_20' ) start [2024-12-21 20:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072628', 'tblTempUsageDetail_20' ) end [2024-12-21 20:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:33:20] Production.INFO: ==5650== Releasing lock... [2024-12-21 20:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:33:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-21 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:34:05 [end_date_ymd] => 2024-12-21 20:34:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:34:05' and `end` < '2024-12-21 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-21 20:34:18] Production.INFO: count ==1599 [2024-12-21 20:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:34:05 - End Time 2024-12-21 20:34:05 [2024-12-21 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072633', 'tblTempUsageDetail_20' ) start [2024-12-21 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072633', 'tblTempUsageDetail_20' ) end [2024-12-21 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072633', 'tblTempVendorCDR_20' ) start [2024-12-21 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072633', 'tblTempVendorCDR_20' ) end [2024-12-21 20:34:18] Production.INFO: ProcessCDR(1,14072633,1,1,2) [2024-12-21 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072633', 'tblTempUsageDetail_20' ) start [2024-12-21 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072633', 'tblTempUsageDetail_20' ) end [2024-12-21 20:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:34:21] Production.INFO: ==5730== Releasing lock... [2024-12-21 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:34:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-21 20:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:35:04 [end_date_ymd] => 2024-12-21 20:35:04 [RateCDR] => 1 ) [2024-12-21 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-21 17:35:04' and `end` < '2024-12-21 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-21 20:35:16] Production.INFO: count ==1598 [2024-12-21 20:35:16] Production.ERROR: pbx CDR StartTime 2024-12-21 17:35:04 - End Time 2024-12-21 20:35:04 [2024-12-21 20:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072638', 'tblTempUsageDetail_20' ) start [2024-12-21 20:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072638', 'tblTempUsageDetail_20' ) end [2024-12-21 20:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072638', 'tblTempVendorCDR_20' ) start [2024-12-21 20:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072638', 'tblTempVendorCDR_20' ) end [2024-12-21 20:35:16] Production.INFO: ProcessCDR(1,14072638,1,1,2) [2024-12-21 20:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072638', 'tblTempUsageDetail_20' ) start [2024-12-21 20:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072638', 'tblTempUsageDetail_20' ) end [2024-12-21 20:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:35:19] Production.INFO: ==5808== Releasing lock... [2024-12-21 20:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:35:19] Production.INFO: 39.5 MB #Memory Used# [2024-12-21 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:36:05 [end_date_ymd] => 2024-12-21 20:36:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:36:05' and `end` < '2024-12-21 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-21 20:36:17] Production.INFO: count ==1595 [2024-12-21 20:36:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:36:05 - End Time 2024-12-21 20:36:05 [2024-12-21 20:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072643', 'tblTempUsageDetail_20' ) start [2024-12-21 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072643', 'tblTempUsageDetail_20' ) end [2024-12-21 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072643', 'tblTempVendorCDR_20' ) start [2024-12-21 20:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072643', 'tblTempVendorCDR_20' ) end [2024-12-21 20:36:17] Production.INFO: ProcessCDR(1,14072643,1,1,2) [2024-12-21 20:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072643', 'tblTempUsageDetail_20' ) start [2024-12-21 20:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072643', 'tblTempUsageDetail_20' ) end [2024-12-21 20:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:36:20] Production.INFO: ==5883== Releasing lock... [2024-12-21 20:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:36:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-21 20:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:37:04 [end_date_ymd] => 2024-12-21 20:37:04 [RateCDR] => 1 ) [2024-12-21 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-21 17:37:04' and `end` < '2024-12-21 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-21 20:37:17] Production.INFO: count ==1596 [2024-12-21 20:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:37:04 - End Time 2024-12-21 20:37:04 [2024-12-21 20:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072648', 'tblTempUsageDetail_20' ) start [2024-12-21 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072648', 'tblTempUsageDetail_20' ) end [2024-12-21 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072648', 'tblTempVendorCDR_20' ) start [2024-12-21 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072648', 'tblTempVendorCDR_20' ) end [2024-12-21 20:37:17] Production.INFO: ProcessCDR(1,14072648,1,1,2) [2024-12-21 20:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072648', 'tblTempUsageDetail_20' ) start [2024-12-21 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072648', 'tblTempUsageDetail_20' ) end [2024-12-21 20:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:37:21] Production.INFO: ==5967== Releasing lock... [2024-12-21 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:37:21] Production.INFO: 39.5 MB #Memory Used# [2024-12-21 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:38:05 [end_date_ymd] => 2024-12-21 20:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:38:05' and `end` < '2024-12-21 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-21 20:38:18] Production.INFO: count ==1591 [2024-12-21 20:38:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:38:05 - End Time 2024-12-21 20:38:05 [2024-12-21 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072653', 'tblTempUsageDetail_20' ) start [2024-12-21 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072653', 'tblTempUsageDetail_20' ) end [2024-12-21 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072653', 'tblTempVendorCDR_20' ) start [2024-12-21 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072653', 'tblTempVendorCDR_20' ) end [2024-12-21 20:38:18] Production.INFO: ProcessCDR(1,14072653,1,1,2) [2024-12-21 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072653', 'tblTempUsageDetail_20' ) start [2024-12-21 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072653', 'tblTempUsageDetail_20' ) end [2024-12-21 20:38:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:38:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:38:23] Production.INFO: ==6050== Releasing lock... [2024-12-21 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:38:23] Production.INFO: 39.5 MB #Memory Used# [2024-12-21 20:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:39:04 [end_date_ymd] => 2024-12-21 20:39:04 [RateCDR] => 1 ) [2024-12-21 20:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:39:04' and `end` < '2024-12-21 20:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:39:16] Production.INFO: count ==1590 [2024-12-21 20:39:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:39:04 - End Time 2024-12-21 20:39:04 [2024-12-21 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072658', 'tblTempUsageDetail_20' ) start [2024-12-21 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072658', 'tblTempUsageDetail_20' ) end [2024-12-21 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072658', 'tblTempVendorCDR_20' ) start [2024-12-21 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072658', 'tblTempVendorCDR_20' ) end [2024-12-21 20:39:17] Production.INFO: ProcessCDR(1,14072658,1,1,2) [2024-12-21 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072658', 'tblTempUsageDetail_20' ) start [2024-12-21 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072658', 'tblTempUsageDetail_20' ) end [2024-12-21 20:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:39:20] Production.INFO: ==6126== Releasing lock... [2024-12-21 20:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:39:20] Production.INFO: 39.5 MB #Memory Used# [2024-12-21 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:40:05 [end_date_ymd] => 2024-12-21 20:40:05 [RateCDR] => 1 ) [2024-12-21 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:40:05' and `end` < '2024-12-21 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:40:17] Production.INFO: count ==1541 [2024-12-21 20:40:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:40:05 - End Time 2024-12-21 20:40:05 [2024-12-21 20:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072664', 'tblTempUsageDetail_20' ) start [2024-12-21 20:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072664', 'tblTempUsageDetail_20' ) end [2024-12-21 20:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072664', 'tblTempVendorCDR_20' ) start [2024-12-21 20:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072664', 'tblTempVendorCDR_20' ) end [2024-12-21 20:40:17] Production.INFO: ProcessCDR(1,14072664,1,1,2) [2024-12-21 20:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072664', 'tblTempUsageDetail_20' ) start [2024-12-21 20:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072664', 'tblTempUsageDetail_20' ) end [2024-12-21 20:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:40:20] Production.INFO: ==6248== Releasing lock... [2024-12-21 20:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:40:20] Production.INFO: 39.25 MB #Memory Used# [2024-12-21 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:41:05 [end_date_ymd] => 2024-12-21 20:41:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:41:05' and `end` < '2024-12-21 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-21 20:41:18] Production.INFO: count ==1511 [2024-12-21 20:41:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:41:05 - End Time 2024-12-21 20:41:05 [2024-12-21 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072669', 'tblTempUsageDetail_20' ) start [2024-12-21 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072669', 'tblTempUsageDetail_20' ) end [2024-12-21 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072669', 'tblTempVendorCDR_20' ) start [2024-12-21 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072669', 'tblTempVendorCDR_20' ) end [2024-12-21 20:41:18] Production.INFO: ProcessCDR(1,14072669,1,1,2) [2024-12-21 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072669', 'tblTempUsageDetail_20' ) start [2024-12-21 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072669', 'tblTempUsageDetail_20' ) end [2024-12-21 20:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:41:22] Production.INFO: ==6328== Releasing lock... [2024-12-21 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:41:22] Production.INFO: 39 MB #Memory Used# [2024-12-21 20:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:42:04 [end_date_ymd] => 2024-12-21 20:42:04 [RateCDR] => 1 ) [2024-12-21 20:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:42:04' and `end` < '2024-12-21 20:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:42:16] Production.INFO: count ==1512 [2024-12-21 20:42:16] Production.ERROR: pbx CDR StartTime 2024-12-21 17:42:04 - End Time 2024-12-21 20:42:04 [2024-12-21 20:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072674', 'tblTempUsageDetail_20' ) start [2024-12-21 20:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072674', 'tblTempUsageDetail_20' ) end [2024-12-21 20:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072674', 'tblTempVendorCDR_20' ) start [2024-12-21 20:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072674', 'tblTempVendorCDR_20' ) end [2024-12-21 20:42:16] Production.INFO: ProcessCDR(1,14072674,1,1,2) [2024-12-21 20:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072674', 'tblTempUsageDetail_20' ) start [2024-12-21 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072674', 'tblTempUsageDetail_20' ) end [2024-12-21 20:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:42:21] Production.INFO: ==6405== Releasing lock... [2024-12-21 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:42:21] Production.INFO: 39 MB #Memory Used# [2024-12-21 20:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:43:04 [end_date_ymd] => 2024-12-21 20:43:04 [RateCDR] => 1 ) [2024-12-21 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-21 17:43:04' and `end` < '2024-12-21 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-21 20:43:18] Production.INFO: count ==1512 [2024-12-21 20:43:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:43:04 - End Time 2024-12-21 20:43:04 [2024-12-21 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072679', 'tblTempUsageDetail_20' ) start [2024-12-21 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072679', 'tblTempUsageDetail_20' ) end [2024-12-21 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072679', 'tblTempVendorCDR_20' ) start [2024-12-21 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072679', 'tblTempVendorCDR_20' ) end [2024-12-21 20:43:18] Production.INFO: ProcessCDR(1,14072679,1,1,2) [2024-12-21 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072679', 'tblTempUsageDetail_20' ) start [2024-12-21 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072679', 'tblTempUsageDetail_20' ) end [2024-12-21 20:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:43:21] Production.INFO: ==6485== Releasing lock... [2024-12-21 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:43:21] Production.INFO: 39 MB #Memory Used# [2024-12-21 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:44:05 [end_date_ymd] => 2024-12-21 20:44:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:44:05' and `end` < '2024-12-21 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-21 20:44:17] Production.INFO: count ==1510 [2024-12-21 20:44:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:44:05 - End Time 2024-12-21 20:44:05 [2024-12-21 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072684', 'tblTempUsageDetail_20' ) start [2024-12-21 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072684', 'tblTempUsageDetail_20' ) end [2024-12-21 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072684', 'tblTempVendorCDR_20' ) start [2024-12-21 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072684', 'tblTempVendorCDR_20' ) end [2024-12-21 20:44:17] Production.INFO: ProcessCDR(1,14072684,1,1,2) [2024-12-21 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072684', 'tblTempUsageDetail_20' ) start [2024-12-21 20:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072684', 'tblTempUsageDetail_20' ) end [2024-12-21 20:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:44:20] Production.INFO: ==6569== Releasing lock... [2024-12-21 20:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:44:20] Production.INFO: 39 MB #Memory Used# [2024-12-21 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:45:04 [end_date_ymd] => 2024-12-21 20:45:04 [RateCDR] => 1 ) [2024-12-21 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-21 17:45:04' and `end` < '2024-12-21 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-21 20:45:17] Production.INFO: count ==1509 [2024-12-21 20:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:45:04 - End Time 2024-12-21 20:45:04 [2024-12-21 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072689', 'tblTempUsageDetail_20' ) start [2024-12-21 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072689', 'tblTempUsageDetail_20' ) end [2024-12-21 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072689', 'tblTempVendorCDR_20' ) start [2024-12-21 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072689', 'tblTempVendorCDR_20' ) end [2024-12-21 20:45:17] Production.INFO: ProcessCDR(1,14072689,1,1,2) [2024-12-21 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072689', 'tblTempUsageDetail_20' ) start [2024-12-21 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072689', 'tblTempUsageDetail_20' ) end [2024-12-21 20:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:45:21] Production.INFO: ==6648== Releasing lock... [2024-12-21 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:45:21] Production.INFO: 39 MB #Memory Used# [2024-12-21 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:46:05 [end_date_ymd] => 2024-12-21 20:46:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:46:05' and `end` < '2024-12-21 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-21 20:46:17] Production.INFO: count ==1509 [2024-12-21 20:46:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:46:05 - End Time 2024-12-21 20:46:05 [2024-12-21 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072694', 'tblTempUsageDetail_20' ) start [2024-12-21 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072694', 'tblTempUsageDetail_20' ) end [2024-12-21 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072694', 'tblTempVendorCDR_20' ) start [2024-12-21 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072694', 'tblTempVendorCDR_20' ) end [2024-12-21 20:46:17] Production.INFO: ProcessCDR(1,14072694,1,1,2) [2024-12-21 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072694', 'tblTempUsageDetail_20' ) start [2024-12-21 20:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072694', 'tblTempUsageDetail_20' ) end [2024-12-21 20:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:46:20] Production.INFO: ==6723== Releasing lock... [2024-12-21 20:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:46:20] Production.INFO: 39 MB #Memory Used# [2024-12-21 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:47:05 [end_date_ymd] => 2024-12-21 20:47:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:47:05' and `end` < '2024-12-21 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-21 20:47:17] Production.INFO: count ==1509 [2024-12-21 20:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:47:05 - End Time 2024-12-21 20:47:05 [2024-12-21 20:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072699', 'tblTempUsageDetail_20' ) start [2024-12-21 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072699', 'tblTempUsageDetail_20' ) end [2024-12-21 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072699', 'tblTempVendorCDR_20' ) start [2024-12-21 20:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072699', 'tblTempVendorCDR_20' ) end [2024-12-21 20:47:17] Production.INFO: ProcessCDR(1,14072699,1,1,2) [2024-12-21 20:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072699', 'tblTempUsageDetail_20' ) start [2024-12-21 20:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072699', 'tblTempUsageDetail_20' ) end [2024-12-21 20:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:47:20] Production.INFO: ==6808== Releasing lock... [2024-12-21 20:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:47:20] Production.INFO: 39 MB #Memory Used# [2024-12-21 20:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:48:04 [end_date_ymd] => 2024-12-21 20:48:04 [RateCDR] => 1 ) [2024-12-21 20: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-21 17:48:04' and `end` < '2024-12-21 20: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-21 20:48:17] Production.INFO: count ==1509 [2024-12-21 20:48:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:48:04 - End Time 2024-12-21 20:48:04 [2024-12-21 20:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072704', 'tblTempUsageDetail_20' ) start [2024-12-21 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072704', 'tblTempUsageDetail_20' ) end [2024-12-21 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072704', 'tblTempVendorCDR_20' ) start [2024-12-21 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072704', 'tblTempVendorCDR_20' ) end [2024-12-21 20:48:17] Production.INFO: ProcessCDR(1,14072704,1,1,2) [2024-12-21 20:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072704', 'tblTempUsageDetail_20' ) start [2024-12-21 20:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072704', 'tblTempUsageDetail_20' ) end [2024-12-21 20:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:48:20] Production.INFO: ==6878== Releasing lock... [2024-12-21 20:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:48:20] Production.INFO: 39 MB #Memory Used# [2024-12-21 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:49:05 [end_date_ymd] => 2024-12-21 20:49:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:49:05' and `end` < '2024-12-21 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-21 20:49:17] Production.INFO: count ==1510 [2024-12-21 20:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:49:05 - End Time 2024-12-21 20:49:05 [2024-12-21 20:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072709', 'tblTempUsageDetail_20' ) start [2024-12-21 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072709', 'tblTempUsageDetail_20' ) end [2024-12-21 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072709', 'tblTempVendorCDR_20' ) start [2024-12-21 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072709', 'tblTempVendorCDR_20' ) end [2024-12-21 20:49:17] Production.INFO: ProcessCDR(1,14072709,1,1,2) [2024-12-21 20:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072709', 'tblTempUsageDetail_20' ) start [2024-12-21 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072709', 'tblTempUsageDetail_20' ) end [2024-12-21 20:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:49:22] Production.INFO: ==6960== Releasing lock... [2024-12-21 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:49:22] Production.INFO: 39 MB #Memory Used# [2024-12-21 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:50:06 [end_date_ymd] => 2024-12-21 20:50:06 [RateCDR] => 1 ) [2024-12-21 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:50:06' and `end` < '2024-12-21 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:50:18] Production.INFO: count ==1496 [2024-12-21 20:50:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:50:06 - End Time 2024-12-21 20:50:06 [2024-12-21 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072715', 'tblTempUsageDetail_20' ) start [2024-12-21 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072715', 'tblTempUsageDetail_20' ) end [2024-12-21 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072715', 'tblTempVendorCDR_20' ) start [2024-12-21 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072715', 'tblTempVendorCDR_20' ) end [2024-12-21 20:50:18] Production.INFO: ProcessCDR(1,14072715,1,1,2) [2024-12-21 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072715', 'tblTempUsageDetail_20' ) start [2024-12-21 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072715', 'tblTempUsageDetail_20' ) end [2024-12-21 20:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:50:23] Production.INFO: ==7045== Releasing lock... [2024-12-21 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:50:23] Production.INFO: 38.75 MB #Memory Used# [2024-12-21 20:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:51:04 [end_date_ymd] => 2024-12-21 20:51:04 [RateCDR] => 1 ) [2024-12-21 20:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:51:04' and `end` < '2024-12-21 20:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:51:16] Production.INFO: count ==1477 [2024-12-21 20:51:16] Production.ERROR: pbx CDR StartTime 2024-12-21 17:51:04 - End Time 2024-12-21 20:51:04 [2024-12-21 20:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072720', 'tblTempUsageDetail_20' ) start [2024-12-21 20:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072720', 'tblTempUsageDetail_20' ) end [2024-12-21 20:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072720', 'tblTempVendorCDR_20' ) start [2024-12-21 20:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072720', 'tblTempVendorCDR_20' ) end [2024-12-21 20:51:16] Production.INFO: ProcessCDR(1,14072720,1,1,2) [2024-12-21 20:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:51:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072720', 'tblTempUsageDetail_20' ) start [2024-12-21 20:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072720', 'tblTempUsageDetail_20' ) end [2024-12-21 20:51:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:51:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:51:19] Production.INFO: ==7123== Releasing lock... [2024-12-21 20:51:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:51:19] Production.INFO: 38.75 MB #Memory Used# [2024-12-21 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:52:05 [end_date_ymd] => 2024-12-21 20:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:52:05' and `end` < '2024-12-21 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-21 20:52:17] Production.INFO: count ==1468 [2024-12-21 20:52:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:52:05 - End Time 2024-12-21 20:52:05 [2024-12-21 20:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072725', 'tblTempUsageDetail_20' ) start [2024-12-21 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072725', 'tblTempUsageDetail_20' ) end [2024-12-21 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072725', 'tblTempVendorCDR_20' ) start [2024-12-21 20:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072725', 'tblTempVendorCDR_20' ) end [2024-12-21 20:52:17] Production.INFO: ProcessCDR(1,14072725,1,1,2) [2024-12-21 20:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072725', 'tblTempUsageDetail_20' ) start [2024-12-21 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072725', 'tblTempUsageDetail_20' ) end [2024-12-21 20:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:52:21] Production.INFO: ==7204== Releasing lock... [2024-12-21 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:52:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 20:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:53:04 [end_date_ymd] => 2024-12-21 20:53:04 [RateCDR] => 1 ) [2024-12-21 20: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-21 17:53:04' and `end` < '2024-12-21 20: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-21 20:53:17] Production.INFO: count ==1455 [2024-12-21 20:53:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:53:04 - End Time 2024-12-21 20:53:04 [2024-12-21 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072730', 'tblTempUsageDetail_20' ) start [2024-12-21 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072730', 'tblTempUsageDetail_20' ) end [2024-12-21 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072730', 'tblTempVendorCDR_20' ) start [2024-12-21 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072730', 'tblTempVendorCDR_20' ) end [2024-12-21 20:53:18] Production.INFO: ProcessCDR(1,14072730,1,1,2) [2024-12-21 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072730', 'tblTempUsageDetail_20' ) start [2024-12-21 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072730', 'tblTempUsageDetail_20' ) end [2024-12-21 20:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:53:21] Production.INFO: ==7291== Releasing lock... [2024-12-21 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:53:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:54:05 [end_date_ymd] => 2024-12-21 20:54:05 [RateCDR] => 1 ) [2024-12-21 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:54:05' and `end` < '2024-12-21 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:54:17] Production.INFO: count ==1445 [2024-12-21 20:54:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:54:05 - End Time 2024-12-21 20:54:05 [2024-12-21 20:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072735', 'tblTempUsageDetail_20' ) start [2024-12-21 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072735', 'tblTempUsageDetail_20' ) end [2024-12-21 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072735', 'tblTempVendorCDR_20' ) start [2024-12-21 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072735', 'tblTempVendorCDR_20' ) end [2024-12-21 20:54:17] Production.INFO: ProcessCDR(1,14072735,1,1,2) [2024-12-21 20:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072735', 'tblTempUsageDetail_20' ) start [2024-12-21 20:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072735', 'tblTempUsageDetail_20' ) end [2024-12-21 20:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:54:20] Production.INFO: ==7377== Releasing lock... [2024-12-21 20:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:54:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 20:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:55:04 [end_date_ymd] => 2024-12-21 20:55:04 [RateCDR] => 1 ) [2024-12-21 20:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:55:04' and `end` < '2024-12-21 20:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:55:16] Production.INFO: count ==1443 [2024-12-21 20:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:55:04 - End Time 2024-12-21 20:55:04 [2024-12-21 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072740', 'tblTempUsageDetail_20' ) start [2024-12-21 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072740', 'tblTempUsageDetail_20' ) end [2024-12-21 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072740', 'tblTempVendorCDR_20' ) start [2024-12-21 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072740', 'tblTempVendorCDR_20' ) end [2024-12-21 20:55:17] Production.INFO: ProcessCDR(1,14072740,1,1,2) [2024-12-21 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072740', 'tblTempUsageDetail_20' ) start [2024-12-21 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072740', 'tblTempUsageDetail_20' ) end [2024-12-21 20:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:55:20] Production.INFO: ==7455== Releasing lock... [2024-12-21 20:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:55:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:56:05 [end_date_ymd] => 2024-12-21 20:56:05 [RateCDR] => 1 ) [2024-12-21 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:56:05' and `end` < '2024-12-21 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:56:17] Production.INFO: count ==1441 [2024-12-21 20:56:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:56:05 - End Time 2024-12-21 20:56:05 [2024-12-21 20:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072745', 'tblTempUsageDetail_20' ) start [2024-12-21 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072745', 'tblTempUsageDetail_20' ) end [2024-12-21 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072745', 'tblTempVendorCDR_20' ) start [2024-12-21 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072745', 'tblTempVendorCDR_20' ) end [2024-12-21 20:56:17] Production.INFO: ProcessCDR(1,14072745,1,1,2) [2024-12-21 20:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072745', 'tblTempUsageDetail_20' ) start [2024-12-21 20:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072745', 'tblTempUsageDetail_20' ) end [2024-12-21 20:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:56:20] Production.INFO: ==7577== Releasing lock... [2024-12-21 20:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:56:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:57:05 [end_date_ymd] => 2024-12-21 20:57:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:57:05' and `end` < '2024-12-21 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-21 20:57:18] Production.INFO: count ==1441 [2024-12-21 20:57:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:57:05 - End Time 2024-12-21 20:57:05 [2024-12-21 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072750', 'tblTempUsageDetail_20' ) start [2024-12-21 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072750', 'tblTempUsageDetail_20' ) end [2024-12-21 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072750', 'tblTempVendorCDR_20' ) start [2024-12-21 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072750', 'tblTempVendorCDR_20' ) end [2024-12-21 20:57:18] Production.INFO: ProcessCDR(1,14072750,1,1,2) [2024-12-21 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072750', 'tblTempUsageDetail_20' ) start [2024-12-21 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072750', 'tblTempUsageDetail_20' ) end [2024-12-21 20:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:57:21] Production.INFO: ==7658== Releasing lock... [2024-12-21 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:57:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 20:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:58:04 [end_date_ymd] => 2024-12-21 20:58:04 [RateCDR] => 1 ) [2024-12-21 20:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 17:58:04' and `end` < '2024-12-21 20:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 20:58:17] Production.INFO: count ==1440 [2024-12-21 20:58:17] Production.ERROR: pbx CDR StartTime 2024-12-21 17:58:04 - End Time 2024-12-21 20:58:04 [2024-12-21 20:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072755', 'tblTempUsageDetail_20' ) start [2024-12-21 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072755', 'tblTempUsageDetail_20' ) end [2024-12-21 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072755', 'tblTempVendorCDR_20' ) start [2024-12-21 20:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072755', 'tblTempVendorCDR_20' ) end [2024-12-21 20:58:17] Production.INFO: ProcessCDR(1,14072755,1,1,2) [2024-12-21 20:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072755', 'tblTempUsageDetail_20' ) start [2024-12-21 20:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072755', 'tblTempUsageDetail_20' ) end [2024-12-21 20:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:58:20] Production.INFO: ==7736== Releasing lock... [2024-12-21 20:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:58:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 17:59:05 [end_date_ymd] => 2024-12-21 20:59:05 [RateCDR] => 1 ) [2024-12-21 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-21 17:59:05' and `end` < '2024-12-21 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-21 20:59:18] Production.INFO: count ==1439 [2024-12-21 20:59:18] Production.ERROR: pbx CDR StartTime 2024-12-21 17:59:05 - End Time 2024-12-21 20:59:05 [2024-12-21 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072760', 'tblTempUsageDetail_20' ) start [2024-12-21 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072760', 'tblTempUsageDetail_20' ) end [2024-12-21 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072760', 'tblTempVendorCDR_20' ) start [2024-12-21 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072760', 'tblTempVendorCDR_20' ) end [2024-12-21 20:59:18] Production.INFO: ProcessCDR(1,14072760,1,1,2) [2024-12-21 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072760', 'tblTempUsageDetail_20' ) start [2024-12-21 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072760', 'tblTempUsageDetail_20' ) end [2024-12-21 20:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 20:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 20:59:21] Production.INFO: ==7820== Releasing lock... [2024-12-21 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 20:59:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-21 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:00:05 [end_date_ymd] => 2024-12-21 21:00:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:00:05' and `end` < '2024-12-21 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-21 21:00:17] Production.INFO: count ==1438 [2024-12-21 21:00:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:00:05 - End Time 2024-12-21 21:00:05 [2024-12-21 21:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072766', 'tblTempUsageDetail_20' ) start [2024-12-21 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072766', 'tblTempUsageDetail_20' ) end [2024-12-21 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072766', 'tblTempVendorCDR_20' ) start [2024-12-21 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072766', 'tblTempVendorCDR_20' ) end [2024-12-21 21:00:17] Production.INFO: ProcessCDR(1,14072766,1,1,2) [2024-12-21 21:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072766', 'tblTempUsageDetail_20' ) start [2024-12-21 21:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072766', 'tblTempUsageDetail_20' ) end [2024-12-21 21:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:00:20] Production.INFO: ==7905== Releasing lock... [2024-12-21 21:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:00:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-21 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:01:05 [end_date_ymd] => 2024-12-21 21:01:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:01:05' and `end` < '2024-12-21 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-21 21:01:17] Production.INFO: count ==1388 [2024-12-21 21:01:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:01:05 - End Time 2024-12-21 21:01:05 [2024-12-21 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072771', 'tblTempUsageDetail_20' ) start [2024-12-21 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072771', 'tblTempUsageDetail_20' ) end [2024-12-21 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072771', 'tblTempVendorCDR_20' ) start [2024-12-21 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072771', 'tblTempVendorCDR_20' ) end [2024-12-21 21:01:17] Production.INFO: ProcessCDR(1,14072771,1,1,2) [2024-12-21 21:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072771', 'tblTempUsageDetail_20' ) start [2024-12-21 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072771', 'tblTempUsageDetail_20' ) end [2024-12-21 21:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:01:22] Production.INFO: ==8004== Releasing lock... [2024-12-21 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:01:22] Production.INFO: 38 MB #Memory Used# [2024-12-21 21:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:02:04 [end_date_ymd] => 2024-12-21 21:02:04 [RateCDR] => 1 ) [2024-12-21 21: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-21 18:02:04' and `end` < '2024-12-21 21: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-21 21:02:16] Production.INFO: count ==1387 [2024-12-21 21:02:16] Production.ERROR: pbx CDR StartTime 2024-12-21 18:02:04 - End Time 2024-12-21 21:02:04 [2024-12-21 21:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072776', 'tblTempUsageDetail_20' ) start [2024-12-21 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072776', 'tblTempUsageDetail_20' ) end [2024-12-21 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072776', 'tblTempVendorCDR_20' ) start [2024-12-21 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072776', 'tblTempVendorCDR_20' ) end [2024-12-21 21:02:17] Production.INFO: ProcessCDR(1,14072776,1,1,2) [2024-12-21 21:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072776', 'tblTempUsageDetail_20' ) start [2024-12-21 21:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072776', 'tblTempUsageDetail_20' ) end [2024-12-21 21:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:02:20] Production.INFO: ==8082== Releasing lock... [2024-12-21 21:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:02:20] Production.INFO: 38 MB #Memory Used# [2024-12-21 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:03:05 [end_date_ymd] => 2024-12-21 21:03:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:03:05' and `end` < '2024-12-21 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-21 21:03:19] Production.INFO: count ==1387 [2024-12-21 21:03:19] Production.ERROR: pbx CDR StartTime 2024-12-21 18:03:05 - End Time 2024-12-21 21:03:05 [2024-12-21 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072781', 'tblTempUsageDetail_20' ) start [2024-12-21 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072781', 'tblTempUsageDetail_20' ) end [2024-12-21 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072781', 'tblTempVendorCDR_20' ) start [2024-12-21 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072781', 'tblTempVendorCDR_20' ) end [2024-12-21 21:03:19] Production.INFO: ProcessCDR(1,14072781,1,1,2) [2024-12-21 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072781', 'tblTempUsageDetail_20' ) start [2024-12-21 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072781', 'tblTempUsageDetail_20' ) end [2024-12-21 21:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:03:22] Production.INFO: ==8166== Releasing lock... [2024-12-21 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:03:22] Production.INFO: 38 MB #Memory Used# [2024-12-21 21:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:04:04 [end_date_ymd] => 2024-12-21 21:04:04 [RateCDR] => 1 ) [2024-12-21 21: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-21 18:04:04' and `end` < '2024-12-21 21: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-21 21:04:16] Production.INFO: count ==1391 [2024-12-21 21:04:16] Production.ERROR: pbx CDR StartTime 2024-12-21 18:04:04 - End Time 2024-12-21 21:04:04 [2024-12-21 21:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072786', 'tblTempUsageDetail_20' ) start [2024-12-21 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072786', 'tblTempUsageDetail_20' ) end [2024-12-21 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072786', 'tblTempVendorCDR_20' ) start [2024-12-21 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072786', 'tblTempVendorCDR_20' ) end [2024-12-21 21:04:17] Production.INFO: ProcessCDR(1,14072786,1,1,2) [2024-12-21 21:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072786', 'tblTempUsageDetail_20' ) start [2024-12-21 21:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072786', 'tblTempUsageDetail_20' ) end [2024-12-21 21:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:04:21] Production.INFO: ==8239== Releasing lock... [2024-12-21 21:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:04:21] Production.INFO: 38 MB #Memory Used# [2024-12-21 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:05:05 [end_date_ymd] => 2024-12-21 21:05:05 [RateCDR] => 1 ) [2024-12-21 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:05:05' and `end` < '2024-12-21 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:05:17] Production.INFO: count ==1394 [2024-12-21 21:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:05:05 - End Time 2024-12-21 21:05:05 [2024-12-21 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072791', 'tblTempUsageDetail_20' ) start [2024-12-21 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072791', 'tblTempUsageDetail_20' ) end [2024-12-21 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072791', 'tblTempVendorCDR_20' ) start [2024-12-21 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072791', 'tblTempVendorCDR_20' ) end [2024-12-21 21:05:17] Production.INFO: ProcessCDR(1,14072791,1,1,2) [2024-12-21 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072791', 'tblTempUsageDetail_20' ) start [2024-12-21 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072791', 'tblTempUsageDetail_20' ) end [2024-12-21 21:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:05:20] Production.INFO: ==8319== Releasing lock... [2024-12-21 21:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:05:20] Production.INFO: 38 MB #Memory Used# [2024-12-21 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:06:05 [end_date_ymd] => 2024-12-21 21:06:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:06:05' and `end` < '2024-12-21 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-21 21:06:17] Production.INFO: count ==1397 [2024-12-21 21:06:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:06:05 - End Time 2024-12-21 21:06:05 [2024-12-21 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072796', 'tblTempUsageDetail_20' ) start [2024-12-21 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072796', 'tblTempUsageDetail_20' ) end [2024-12-21 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072796', 'tblTempVendorCDR_20' ) start [2024-12-21 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072796', 'tblTempVendorCDR_20' ) end [2024-12-21 21:06:17] Production.INFO: ProcessCDR(1,14072796,1,1,2) [2024-12-21 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072796', 'tblTempUsageDetail_20' ) start [2024-12-21 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072796', 'tblTempUsageDetail_20' ) end [2024-12-21 21:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:06:20] Production.INFO: ==8399== Releasing lock... [2024-12-21 21:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:06:20] Production.INFO: 38 MB #Memory Used# [2024-12-21 21:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:07:04 [end_date_ymd] => 2024-12-21 21:07:04 [RateCDR] => 1 ) [2024-12-21 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-21 18:07:04' and `end` < '2024-12-21 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-21 21:07:16] Production.INFO: count ==1395 [2024-12-21 21:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:07:04 - End Time 2024-12-21 21:07:04 [2024-12-21 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072801', 'tblTempUsageDetail_20' ) start [2024-12-21 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072801', 'tblTempUsageDetail_20' ) end [2024-12-21 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072801', 'tblTempVendorCDR_20' ) start [2024-12-21 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072801', 'tblTempVendorCDR_20' ) end [2024-12-21 21:07:17] Production.INFO: ProcessCDR(1,14072801,1,1,2) [2024-12-21 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072801', 'tblTempUsageDetail_20' ) start [2024-12-21 21:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072801', 'tblTempUsageDetail_20' ) end [2024-12-21 21:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:07:20] Production.INFO: ==8480== Releasing lock... [2024-12-21 21:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:07:20] Production.INFO: 38 MB #Memory Used# [2024-12-21 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:08:05 [end_date_ymd] => 2024-12-21 21:08:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:08:05' and `end` < '2024-12-21 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-21 21:08:19] Production.INFO: count ==1394 [2024-12-21 21:08:19] Production.ERROR: pbx CDR StartTime 2024-12-21 18:08:05 - End Time 2024-12-21 21:08:05 [2024-12-21 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072806', 'tblTempUsageDetail_20' ) start [2024-12-21 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072806', 'tblTempUsageDetail_20' ) end [2024-12-21 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072806', 'tblTempVendorCDR_20' ) start [2024-12-21 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072806', 'tblTempVendorCDR_20' ) end [2024-12-21 21:08:19] Production.INFO: ProcessCDR(1,14072806,1,1,2) [2024-12-21 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072806', 'tblTempUsageDetail_20' ) start [2024-12-21 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072806', 'tblTempUsageDetail_20' ) end [2024-12-21 21:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:08:22] Production.INFO: ==8561== Releasing lock... [2024-12-21 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:08:22] Production.INFO: 38 MB #Memory Used# [2024-12-21 21:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:09:04 [end_date_ymd] => 2024-12-21 21:09:04 [RateCDR] => 1 ) [2024-12-21 21: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-21 18:09:04' and `end` < '2024-12-21 21: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-21 21:09:17] Production.INFO: count ==1393 [2024-12-21 21:09:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:09:04 - End Time 2024-12-21 21:09:04 [2024-12-21 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072811', 'tblTempUsageDetail_20' ) start [2024-12-21 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072811', 'tblTempUsageDetail_20' ) end [2024-12-21 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072811', 'tblTempVendorCDR_20' ) start [2024-12-21 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072811', 'tblTempVendorCDR_20' ) end [2024-12-21 21:09:17] Production.INFO: ProcessCDR(1,14072811,1,1,2) [2024-12-21 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072811', 'tblTempUsageDetail_20' ) start [2024-12-21 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072811', 'tblTempUsageDetail_20' ) end [2024-12-21 21:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:09:21] Production.INFO: ==8634== Releasing lock... [2024-12-21 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:09:21] Production.INFO: 38 MB #Memory Used# [2024-12-21 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:10:05 [end_date_ymd] => 2024-12-21 21:10:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:10:05' and `end` < '2024-12-21 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-21 21:10:18] Production.INFO: count ==1388 [2024-12-21 21:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:10:05 - End Time 2024-12-21 21:10:05 [2024-12-21 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072817', 'tblTempUsageDetail_20' ) start [2024-12-21 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072817', 'tblTempUsageDetail_20' ) end [2024-12-21 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072817', 'tblTempVendorCDR_20' ) start [2024-12-21 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072817', 'tblTempVendorCDR_20' ) end [2024-12-21 21:10:18] Production.INFO: ProcessCDR(1,14072817,1,1,2) [2024-12-21 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072817', 'tblTempUsageDetail_20' ) start [2024-12-21 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072817', 'tblTempUsageDetail_20' ) end [2024-12-21 21:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:10:21] Production.INFO: ==8709== Releasing lock... [2024-12-21 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:10:21] Production.INFO: 38 MB #Memory Used# [2024-12-21 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:11:04 [end_date_ymd] => 2024-12-21 21:11:04 [RateCDR] => 1 ) [2024-12-21 21: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-21 18:11:04' and `end` < '2024-12-21 21: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-21 21:11:17] Production.INFO: count ==1345 [2024-12-21 21:11:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:11:04 - End Time 2024-12-21 21:11:04 [2024-12-21 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072821', 'tblTempUsageDetail_20' ) start [2024-12-21 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072821', 'tblTempUsageDetail_20' ) end [2024-12-21 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072821', 'tblTempVendorCDR_20' ) start [2024-12-21 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072821', 'tblTempVendorCDR_20' ) end [2024-12-21 21:11:18] Production.INFO: ProcessCDR(1,14072821,1,1,2) [2024-12-21 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072821', 'tblTempUsageDetail_20' ) start [2024-12-21 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072821', 'tblTempUsageDetail_20' ) end [2024-12-21 21:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:11:21] Production.INFO: ==8828== Releasing lock... [2024-12-21 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:11:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:12:05 [end_date_ymd] => 2024-12-21 21:12:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:12:05' and `end` < '2024-12-21 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-21 21:12:17] Production.INFO: count ==1341 [2024-12-21 21:12:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:12:05 - End Time 2024-12-21 21:12:05 [2024-12-21 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072827', 'tblTempUsageDetail_20' ) start [2024-12-21 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072827', 'tblTempUsageDetail_20' ) end [2024-12-21 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072827', 'tblTempVendorCDR_20' ) start [2024-12-21 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072827', 'tblTempVendorCDR_20' ) end [2024-12-21 21:12:17] Production.INFO: ProcessCDR(1,14072827,1,1,2) [2024-12-21 21:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072827', 'tblTempUsageDetail_20' ) start [2024-12-21 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072827', 'tblTempUsageDetail_20' ) end [2024-12-21 21:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:12:20] Production.INFO: ==8904== Releasing lock... [2024-12-21 21:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:12:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 21:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:13:04 [end_date_ymd] => 2024-12-21 21:13:04 [RateCDR] => 1 ) [2024-12-21 21:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:13:04' and `end` < '2024-12-21 21:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:13:18] Production.INFO: count ==1341 [2024-12-21 21:13:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:13:04 - End Time 2024-12-21 21:13:04 [2024-12-21 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072832', 'tblTempUsageDetail_20' ) start [2024-12-21 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072832', 'tblTempUsageDetail_20' ) end [2024-12-21 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072832', 'tblTempVendorCDR_20' ) start [2024-12-21 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072832', 'tblTempVendorCDR_20' ) end [2024-12-21 21:13:18] Production.INFO: ProcessCDR(1,14072832,1,1,2) [2024-12-21 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072832', 'tblTempUsageDetail_20' ) start [2024-12-21 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072832', 'tblTempUsageDetail_20' ) end [2024-12-21 21:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:13:21] Production.INFO: ==8981== Releasing lock... [2024-12-21 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:13:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:14:04 [end_date_ymd] => 2024-12-21 21:14:04 [RateCDR] => 1 ) [2024-12-21 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-21 18:14:04' and `end` < '2024-12-21 21: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-21 21:14:17] Production.INFO: count ==1338 [2024-12-21 21:14:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:14:04 - End Time 2024-12-21 21:14:04 [2024-12-21 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072837', 'tblTempUsageDetail_20' ) start [2024-12-21 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072837', 'tblTempUsageDetail_20' ) end [2024-12-21 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072837', 'tblTempVendorCDR_20' ) start [2024-12-21 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072837', 'tblTempVendorCDR_20' ) end [2024-12-21 21:14:17] Production.INFO: ProcessCDR(1,14072837,1,1,2) [2024-12-21 21:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072837', 'tblTempUsageDetail_20' ) start [2024-12-21 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072837', 'tblTempUsageDetail_20' ) end [2024-12-21 21:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:14:20] Production.INFO: ==9082== Releasing lock... [2024-12-21 21:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:14:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:15:05 [end_date_ymd] => 2024-12-21 21:15:05 [RateCDR] => 1 ) [2024-12-21 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:15:05' and `end` < '2024-12-21 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:15:17] Production.INFO: count ==1340 [2024-12-21 21:15:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:15:05 - End Time 2024-12-21 21:15:05 [2024-12-21 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072842', 'tblTempUsageDetail_20' ) start [2024-12-21 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072842', 'tblTempUsageDetail_20' ) end [2024-12-21 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072842', 'tblTempVendorCDR_20' ) start [2024-12-21 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072842', 'tblTempVendorCDR_20' ) end [2024-12-21 21:15:18] Production.INFO: ProcessCDR(1,14072842,1,1,2) [2024-12-21 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072842', 'tblTempUsageDetail_20' ) start [2024-12-21 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072842', 'tblTempUsageDetail_20' ) end [2024-12-21 21:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:15:21] Production.INFO: ==9177== Releasing lock... [2024-12-21 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:15:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:16:05 [end_date_ymd] => 2024-12-21 21:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:16:05' and `end` < '2024-12-21 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-21 21:16:17] Production.INFO: count ==1339 [2024-12-21 21:16:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:16:05 - End Time 2024-12-21 21:16:05 [2024-12-21 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072847', 'tblTempUsageDetail_20' ) start [2024-12-21 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072847', 'tblTempUsageDetail_20' ) end [2024-12-21 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072847', 'tblTempVendorCDR_20' ) start [2024-12-21 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072847', 'tblTempVendorCDR_20' ) end [2024-12-21 21:16:18] Production.INFO: ProcessCDR(1,14072847,1,1,2) [2024-12-21 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072847', 'tblTempUsageDetail_20' ) start [2024-12-21 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072847', 'tblTempUsageDetail_20' ) end [2024-12-21 21:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:16:21] Production.INFO: ==9269== Releasing lock... [2024-12-21 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:16:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:17:06 [end_date_ymd] => 2024-12-21 21:17:06 [RateCDR] => 1 ) [2024-12-21 21:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:17:06' and `end` < '2024-12-21 21:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:17:18] Production.INFO: count ==1338 [2024-12-21 21:17:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:17:06 - End Time 2024-12-21 21:17:06 [2024-12-21 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072852', 'tblTempUsageDetail_20' ) start [2024-12-21 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072852', 'tblTempUsageDetail_20' ) end [2024-12-21 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072852', 'tblTempVendorCDR_20' ) start [2024-12-21 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072852', 'tblTempVendorCDR_20' ) end [2024-12-21 21:17:18] Production.INFO: ProcessCDR(1,14072852,1,1,2) [2024-12-21 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072852', 'tblTempUsageDetail_20' ) start [2024-12-21 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072852', 'tblTempUsageDetail_20' ) end [2024-12-21 21:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:17:21] Production.INFO: ==9370== Releasing lock... [2024-12-21 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:17:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:18:05 [end_date_ymd] => 2024-12-21 21:18:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:18:05' and `end` < '2024-12-21 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-21 21:18:17] Production.INFO: count ==1338 [2024-12-21 21:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:18:05 - End Time 2024-12-21 21:18:05 [2024-12-21 21:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072857', 'tblTempUsageDetail_20' ) start [2024-12-21 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072857', 'tblTempUsageDetail_20' ) end [2024-12-21 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072857', 'tblTempVendorCDR_20' ) start [2024-12-21 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072857', 'tblTempVendorCDR_20' ) end [2024-12-21 21:18:17] Production.INFO: ProcessCDR(1,14072857,1,1,2) [2024-12-21 21:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072857', 'tblTempUsageDetail_20' ) start [2024-12-21 21:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072857', 'tblTempUsageDetail_20' ) end [2024-12-21 21:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:18:21] Production.INFO: ==9470== Releasing lock... [2024-12-21 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:18:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:19:05 [end_date_ymd] => 2024-12-21 21:19:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:19:05' and `end` < '2024-12-21 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-21 21:19:17] Production.INFO: count ==1343 [2024-12-21 21:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:19:05 - End Time 2024-12-21 21:19:05 [2024-12-21 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072862', 'tblTempUsageDetail_20' ) start [2024-12-21 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072862', 'tblTempUsageDetail_20' ) end [2024-12-21 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072862', 'tblTempVendorCDR_20' ) start [2024-12-21 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072862', 'tblTempVendorCDR_20' ) end [2024-12-21 21:19:17] Production.INFO: ProcessCDR(1,14072862,1,1,2) [2024-12-21 21:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072862', 'tblTempUsageDetail_20' ) start [2024-12-21 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072862', 'tblTempUsageDetail_20' ) end [2024-12-21 21:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:19:22] Production.INFO: ==9553== Releasing lock... [2024-12-21 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:19:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:20:05 [end_date_ymd] => 2024-12-21 21:20:05 [RateCDR] => 1 ) [2024-12-21 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:20:05' and `end` < '2024-12-21 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:20:18] Production.INFO: count ==1344 [2024-12-21 21:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:20:05 - End Time 2024-12-21 21:20:05 [2024-12-21 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072868', 'tblTempUsageDetail_20' ) start [2024-12-21 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072868', 'tblTempUsageDetail_20' ) end [2024-12-21 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072868', 'tblTempVendorCDR_20' ) start [2024-12-21 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072868', 'tblTempVendorCDR_20' ) end [2024-12-21 21:20:18] Production.INFO: ProcessCDR(1,14072868,1,1,2) [2024-12-21 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072868', 'tblTempUsageDetail_20' ) start [2024-12-21 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072868', 'tblTempUsageDetail_20' ) end [2024-12-21 21:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:20:22] Production.INFO: ==9632== Releasing lock... [2024-12-21 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:20:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:21:04 [end_date_ymd] => 2024-12-21 21:21:04 [RateCDR] => 1 ) [2024-12-21 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-21 18:21:04' and `end` < '2024-12-21 21:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:21:17] Production.INFO: count ==1331 [2024-12-21 21:21:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:21:04 - End Time 2024-12-21 21:21:04 [2024-12-21 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072873', 'tblTempUsageDetail_20' ) start [2024-12-21 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072873', 'tblTempUsageDetail_20' ) end [2024-12-21 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072873', 'tblTempVendorCDR_20' ) start [2024-12-21 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072873', 'tblTempVendorCDR_20' ) end [2024-12-21 21:21:17] Production.INFO: ProcessCDR(1,14072873,1,1,2) [2024-12-21 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072873', 'tblTempUsageDetail_20' ) start [2024-12-21 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072873', 'tblTempUsageDetail_20' ) end [2024-12-21 21:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:21:20] Production.INFO: ==9708== Releasing lock... [2024-12-21 21:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:21:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-21 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:22:05 [end_date_ymd] => 2024-12-21 21:22:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:22:05' and `end` < '2024-12-21 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-21 21:22:17] Production.INFO: count ==1329 [2024-12-21 21:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:22:05 - End Time 2024-12-21 21:22:05 [2024-12-21 21:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072878', 'tblTempUsageDetail_20' ) start [2024-12-21 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072878', 'tblTempUsageDetail_20' ) end [2024-12-21 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072878', 'tblTempVendorCDR_20' ) start [2024-12-21 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072878', 'tblTempVendorCDR_20' ) end [2024-12-21 21:22:17] Production.INFO: ProcessCDR(1,14072878,1,1,2) [2024-12-21 21:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072878', 'tblTempUsageDetail_20' ) start [2024-12-21 21:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072878', 'tblTempUsageDetail_20' ) end [2024-12-21 21:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:22:20] Production.INFO: ==9786== Releasing lock... [2024-12-21 21:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:22:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-21 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:23:05 [end_date_ymd] => 2024-12-21 21:23:05 [RateCDR] => 1 ) [2024-12-21 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:23:05' and `end` < '2024-12-21 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:23:17] Production.INFO: count ==1335 [2024-12-21 21:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:23:05 - End Time 2024-12-21 21:23:05 [2024-12-21 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072883', 'tblTempUsageDetail_20' ) start [2024-12-21 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072883', 'tblTempUsageDetail_20' ) end [2024-12-21 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072883', 'tblTempVendorCDR_20' ) start [2024-12-21 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072883', 'tblTempVendorCDR_20' ) end [2024-12-21 21:23:17] Production.INFO: ProcessCDR(1,14072883,1,1,2) [2024-12-21 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072883', 'tblTempUsageDetail_20' ) start [2024-12-21 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072883', 'tblTempUsageDetail_20' ) end [2024-12-21 21:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:23:22] Production.INFO: ==9864== Releasing lock... [2024-12-21 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:23:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-21 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:24:06 [end_date_ymd] => 2024-12-21 21:24:06 [RateCDR] => 1 ) [2024-12-21 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:24:06' and `end` < '2024-12-21 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:24:18] Production.INFO: count ==1334 [2024-12-21 21:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:24:06 - End Time 2024-12-21 21:24:06 [2024-12-21 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072888', 'tblTempUsageDetail_20' ) start [2024-12-21 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072888', 'tblTempUsageDetail_20' ) end [2024-12-21 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072888', 'tblTempVendorCDR_20' ) start [2024-12-21 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072888', 'tblTempVendorCDR_20' ) end [2024-12-21 21:24:18] Production.INFO: ProcessCDR(1,14072888,1,1,2) [2024-12-21 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072888', 'tblTempUsageDetail_20' ) start [2024-12-21 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072888', 'tblTempUsageDetail_20' ) end [2024-12-21 21:24:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:24:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:24:23] Production.INFO: ==9937== Releasing lock... [2024-12-21 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:24:23] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:25:05 [end_date_ymd] => 2024-12-21 21:25:05 [RateCDR] => 1 ) [2024-12-21 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:25:05' and `end` < '2024-12-21 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:25:17] Production.INFO: count ==1336 [2024-12-21 21:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:25:05 - End Time 2024-12-21 21:25:05 [2024-12-21 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072893', 'tblTempUsageDetail_20' ) start [2024-12-21 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072893', 'tblTempUsageDetail_20' ) end [2024-12-21 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072893', 'tblTempVendorCDR_20' ) start [2024-12-21 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072893', 'tblTempVendorCDR_20' ) end [2024-12-21 21:25:17] Production.INFO: ProcessCDR(1,14072893,1,1,2) [2024-12-21 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072893', 'tblTempUsageDetail_20' ) start [2024-12-21 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072893', 'tblTempUsageDetail_20' ) end [2024-12-21 21:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:25:20] Production.INFO: ==10010== Releasing lock... [2024-12-21 21:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:25:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-21 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:26:05 [end_date_ymd] => 2024-12-21 21:26:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:26:05' and `end` < '2024-12-21 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-21 21:26:17] Production.INFO: count ==1336 [2024-12-21 21:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:26:05 - End Time 2024-12-21 21:26:05 [2024-12-21 21:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072898', 'tblTempUsageDetail_20' ) start [2024-12-21 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072898', 'tblTempUsageDetail_20' ) end [2024-12-21 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072898', 'tblTempVendorCDR_20' ) start [2024-12-21 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072898', 'tblTempVendorCDR_20' ) end [2024-12-21 21:26:17] Production.INFO: ProcessCDR(1,14072898,1,1,2) [2024-12-21 21:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072898', 'tblTempUsageDetail_20' ) start [2024-12-21 21:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072898', 'tblTempUsageDetail_20' ) end [2024-12-21 21:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:26:20] Production.INFO: ==10083== Releasing lock... [2024-12-21 21:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:26:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-21 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:27:05 [end_date_ymd] => 2024-12-21 21:27:05 [RateCDR] => 1 ) [2024-12-21 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:27:05' and `end` < '2024-12-21 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:27:18] Production.INFO: count ==1334 [2024-12-21 21:27:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:27:05 - End Time 2024-12-21 21:27:05 [2024-12-21 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072903', 'tblTempUsageDetail_20' ) start [2024-12-21 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072903', 'tblTempUsageDetail_20' ) end [2024-12-21 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072903', 'tblTempVendorCDR_20' ) start [2024-12-21 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072903', 'tblTempVendorCDR_20' ) end [2024-12-21 21:27:18] Production.INFO: ProcessCDR(1,14072903,1,1,2) [2024-12-21 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072903', 'tblTempUsageDetail_20' ) start [2024-12-21 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072903', 'tblTempUsageDetail_20' ) end [2024-12-21 21:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:27:22] Production.INFO: ==10199== Releasing lock... [2024-12-21 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:27:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-21 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:28:05 [end_date_ymd] => 2024-12-21 21:28:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:28:05' and `end` < '2024-12-21 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-21 21:28:17] Production.INFO: count ==1333 [2024-12-21 21:28:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:28:05 - End Time 2024-12-21 21:28:05 [2024-12-21 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072908', 'tblTempUsageDetail_20' ) start [2024-12-21 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072908', 'tblTempUsageDetail_20' ) end [2024-12-21 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072908', 'tblTempVendorCDR_20' ) start [2024-12-21 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072908', 'tblTempVendorCDR_20' ) end [2024-12-21 21:28:17] Production.INFO: ProcessCDR(1,14072908,1,1,2) [2024-12-21 21:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072908', 'tblTempUsageDetail_20' ) start [2024-12-21 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072908', 'tblTempUsageDetail_20' ) end [2024-12-21 21:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:28:20] Production.INFO: ==10278== Releasing lock... [2024-12-21 21:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:28:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-21 21:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:29:04 [end_date_ymd] => 2024-12-21 21:29:04 [RateCDR] => 1 ) [2024-12-21 21:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:29:04' and `end` < '2024-12-21 21:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:29:16] Production.INFO: count ==1331 [2024-12-21 21:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:29:04 - End Time 2024-12-21 21:29:04 [2024-12-21 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072913', 'tblTempUsageDetail_20' ) start [2024-12-21 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072913', 'tblTempUsageDetail_20' ) end [2024-12-21 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072913', 'tblTempVendorCDR_20' ) start [2024-12-21 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072913', 'tblTempVendorCDR_20' ) end [2024-12-21 21:29:17] Production.INFO: ProcessCDR(1,14072913,1,1,2) [2024-12-21 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072913', 'tblTempUsageDetail_20' ) start [2024-12-21 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072913', 'tblTempUsageDetail_20' ) end [2024-12-21 21:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:29:21] Production.INFO: ==10351== Releasing lock... [2024-12-21 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:29:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-21 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:30:05 [end_date_ymd] => 2024-12-21 21:30:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:30:05' and `end` < '2024-12-21 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-21 21:30:17] Production.INFO: count ==1330 [2024-12-21 21:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:30:05 - End Time 2024-12-21 21:30:05 [2024-12-21 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072919', 'tblTempUsageDetail_20' ) start [2024-12-21 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072919', 'tblTempUsageDetail_20' ) end [2024-12-21 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072919', 'tblTempVendorCDR_20' ) start [2024-12-21 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072919', 'tblTempVendorCDR_20' ) end [2024-12-21 21:30:18] Production.INFO: ProcessCDR(1,14072919,1,1,2) [2024-12-21 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072919', 'tblTempUsageDetail_20' ) start [2024-12-21 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072919', 'tblTempUsageDetail_20' ) end [2024-12-21 21:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:30:21] Production.INFO: ==10428== Releasing lock... [2024-12-21 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:30:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-21 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:31:05 [end_date_ymd] => 2024-12-21 21:31:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:31:05' and `end` < '2024-12-21 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-21 21:31:18] Production.INFO: count ==1300 [2024-12-21 21:31:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:31:05 - End Time 2024-12-21 21:31:05 [2024-12-21 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072924', 'tblTempUsageDetail_20' ) start [2024-12-21 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072924', 'tblTempUsageDetail_20' ) end [2024-12-21 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072924', 'tblTempVendorCDR_20' ) start [2024-12-21 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072924', 'tblTempVendorCDR_20' ) end [2024-12-21 21:31:18] Production.INFO: ProcessCDR(1,14072924,1,1,2) [2024-12-21 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072924', 'tblTempUsageDetail_20' ) start [2024-12-21 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072924', 'tblTempUsageDetail_20' ) end [2024-12-21 21:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:31:21] Production.INFO: ==10506== Releasing lock... [2024-12-21 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:31:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:32:05 [end_date_ymd] => 2024-12-21 21:32:05 [RateCDR] => 1 ) [2024-12-21 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:32:05' and `end` < '2024-12-21 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:32:17] Production.INFO: count ==1295 [2024-12-21 21:32:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:32:05 - End Time 2024-12-21 21:32:05 [2024-12-21 21:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072929', 'tblTempUsageDetail_20' ) start [2024-12-21 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072929', 'tblTempUsageDetail_20' ) end [2024-12-21 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072929', 'tblTempVendorCDR_20' ) start [2024-12-21 21:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072929', 'tblTempVendorCDR_20' ) end [2024-12-21 21:32:17] Production.INFO: ProcessCDR(1,14072929,1,1,2) [2024-12-21 21:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072929', 'tblTempUsageDetail_20' ) start [2024-12-21 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072929', 'tblTempUsageDetail_20' ) end [2024-12-21 21:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:32:21] Production.INFO: ==10578== Releasing lock... [2024-12-21 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:32:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:33:05 [end_date_ymd] => 2024-12-21 21:33:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:33:05' and `end` < '2024-12-21 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-21 21:33:19] Production.INFO: count ==1295 [2024-12-21 21:33:19] Production.ERROR: pbx CDR StartTime 2024-12-21 18:33:05 - End Time 2024-12-21 21:33:05 [2024-12-21 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072934', 'tblTempUsageDetail_20' ) start [2024-12-21 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072934', 'tblTempUsageDetail_20' ) end [2024-12-21 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072934', 'tblTempVendorCDR_20' ) start [2024-12-21 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072934', 'tblTempVendorCDR_20' ) end [2024-12-21 21:33:19] Production.INFO: ProcessCDR(1,14072934,1,1,2) [2024-12-21 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072934', 'tblTempUsageDetail_20' ) start [2024-12-21 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072934', 'tblTempUsageDetail_20' ) end [2024-12-21 21:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:33:22] Production.INFO: ==10657== Releasing lock... [2024-12-21 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:33:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:34:04 [end_date_ymd] => 2024-12-21 21:34:04 [RateCDR] => 1 ) [2024-12-21 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-21 18:34:04' and `end` < '2024-12-21 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-21 21:34:17] Production.INFO: count ==1295 [2024-12-21 21:34:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:34:04 - End Time 2024-12-21 21:34:04 [2024-12-21 21:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072939', 'tblTempUsageDetail_20' ) start [2024-12-21 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072939', 'tblTempUsageDetail_20' ) end [2024-12-21 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072939', 'tblTempVendorCDR_20' ) start [2024-12-21 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072939', 'tblTempVendorCDR_20' ) end [2024-12-21 21:34:17] Production.INFO: ProcessCDR(1,14072939,1,1,2) [2024-12-21 21:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072939', 'tblTempUsageDetail_20' ) start [2024-12-21 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072939', 'tblTempUsageDetail_20' ) end [2024-12-21 21:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:34:22] Production.INFO: ==10730== Releasing lock... [2024-12-21 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:34:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:35:05 [end_date_ymd] => 2024-12-21 21:35:05 [RateCDR] => 1 ) [2024-12-21 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:35:05' and `end` < '2024-12-21 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:35:17] Production.INFO: count ==1294 [2024-12-21 21:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:35:05 - End Time 2024-12-21 21:35:05 [2024-12-21 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072944', 'tblTempUsageDetail_20' ) start [2024-12-21 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072944', 'tblTempUsageDetail_20' ) end [2024-12-21 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072944', 'tblTempVendorCDR_20' ) start [2024-12-21 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072944', 'tblTempVendorCDR_20' ) end [2024-12-21 21:35:17] Production.INFO: ProcessCDR(1,14072944,1,1,2) [2024-12-21 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072944', 'tblTempUsageDetail_20' ) start [2024-12-21 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072944', 'tblTempUsageDetail_20' ) end [2024-12-21 21:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:35:20] Production.INFO: ==10804== Releasing lock... [2024-12-21 21:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:35:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:36:05 [end_date_ymd] => 2024-12-21 21:36:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:36:05' and `end` < '2024-12-21 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-21 21:36:18] Production.INFO: count ==1289 [2024-12-21 21:36:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:36:05 - End Time 2024-12-21 21:36:05 [2024-12-21 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072949', 'tblTempUsageDetail_20' ) start [2024-12-21 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072949', 'tblTempUsageDetail_20' ) end [2024-12-21 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072949', 'tblTempVendorCDR_20' ) start [2024-12-21 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072949', 'tblTempVendorCDR_20' ) end [2024-12-21 21:36:18] Production.INFO: ProcessCDR(1,14072949,1,1,2) [2024-12-21 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072949', 'tblTempUsageDetail_20' ) start [2024-12-21 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072949', 'tblTempUsageDetail_20' ) end [2024-12-21 21:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:36:21] Production.INFO: ==10880== Releasing lock... [2024-12-21 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:36:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:37:04 [end_date_ymd] => 2024-12-21 21:37:04 [RateCDR] => 1 ) [2024-12-21 21:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:37:04' and `end` < '2024-12-21 21:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:37:18] Production.INFO: count ==1288 [2024-12-21 21:37:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:37:04 - End Time 2024-12-21 21:37:04 [2024-12-21 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072954', 'tblTempUsageDetail_20' ) start [2024-12-21 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072954', 'tblTempUsageDetail_20' ) end [2024-12-21 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072954', 'tblTempVendorCDR_20' ) start [2024-12-21 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072954', 'tblTempVendorCDR_20' ) end [2024-12-21 21:37:18] Production.INFO: ProcessCDR(1,14072954,1,1,2) [2024-12-21 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072954', 'tblTempUsageDetail_20' ) start [2024-12-21 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072954', 'tblTempUsageDetail_20' ) end [2024-12-21 21:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:37:21] Production.INFO: ==10953== Releasing lock... [2024-12-21 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:37:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:38:05 [end_date_ymd] => 2024-12-21 21:38:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:38:05' and `end` < '2024-12-21 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-21 21:38:17] Production.INFO: count ==1288 [2024-12-21 21:38:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:38:05 - End Time 2024-12-21 21:38:05 [2024-12-21 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072959', 'tblTempUsageDetail_20' ) start [2024-12-21 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072959', 'tblTempUsageDetail_20' ) end [2024-12-21 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072959', 'tblTempVendorCDR_20' ) start [2024-12-21 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072959', 'tblTempVendorCDR_20' ) end [2024-12-21 21:38:17] Production.INFO: ProcessCDR(1,14072959,1,1,2) [2024-12-21 21:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072959', 'tblTempUsageDetail_20' ) start [2024-12-21 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072959', 'tblTempUsageDetail_20' ) end [2024-12-21 21:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:38:21] Production.INFO: ==11028== Releasing lock... [2024-12-21 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:38:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:39:05 [end_date_ymd] => 2024-12-21 21:39:05 [RateCDR] => 1 ) [2024-12-21 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:39:05' and `end` < '2024-12-21 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:39:17] Production.INFO: count ==1286 [2024-12-21 21:39:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:39:05 - End Time 2024-12-21 21:39:05 [2024-12-21 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072964', 'tblTempUsageDetail_20' ) start [2024-12-21 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072964', 'tblTempUsageDetail_20' ) end [2024-12-21 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072964', 'tblTempVendorCDR_20' ) start [2024-12-21 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072964', 'tblTempVendorCDR_20' ) end [2024-12-21 21:39:17] Production.INFO: ProcessCDR(1,14072964,1,1,2) [2024-12-21 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072964', 'tblTempUsageDetail_20' ) start [2024-12-21 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072964', 'tblTempUsageDetail_20' ) end [2024-12-21 21:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:39:21] Production.INFO: ==11104== Releasing lock... [2024-12-21 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:39:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:40:05 [end_date_ymd] => 2024-12-21 21:40:05 [RateCDR] => 1 ) [2024-12-21 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:40:05' and `end` < '2024-12-21 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:40:17] Production.INFO: count ==1289 [2024-12-21 21:40:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:40:05 - End Time 2024-12-21 21:40:05 [2024-12-21 21:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072970', 'tblTempUsageDetail_20' ) start [2024-12-21 21:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072970', 'tblTempUsageDetail_20' ) end [2024-12-21 21:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072970', 'tblTempVendorCDR_20' ) start [2024-12-21 21:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072970', 'tblTempVendorCDR_20' ) end [2024-12-21 21:40:17] Production.INFO: ProcessCDR(1,14072970,1,1,2) [2024-12-21 21:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072970', 'tblTempUsageDetail_20' ) start [2024-12-21 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072970', 'tblTempUsageDetail_20' ) end [2024-12-21 21:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:40:22] Production.INFO: ==11204== Releasing lock... [2024-12-21 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:40:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:41:04 [end_date_ymd] => 2024-12-21 21:41:04 [RateCDR] => 1 ) [2024-12-21 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-21 18:41:04' and `end` < '2024-12-21 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-21 21:41:16] Production.INFO: count ==1287 [2024-12-21 21:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:41:04 - End Time 2024-12-21 21:41:04 [2024-12-21 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072975', 'tblTempUsageDetail_20' ) start [2024-12-21 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072975', 'tblTempUsageDetail_20' ) end [2024-12-21 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072975', 'tblTempVendorCDR_20' ) start [2024-12-21 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072975', 'tblTempVendorCDR_20' ) end [2024-12-21 21:41:17] Production.INFO: ProcessCDR(1,14072975,1,1,2) [2024-12-21 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072975', 'tblTempUsageDetail_20' ) start [2024-12-21 21:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072975', 'tblTempUsageDetail_20' ) end [2024-12-21 21:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:41:20] Production.INFO: ==11308== Releasing lock... [2024-12-21 21:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:41:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:42:05 [end_date_ymd] => 2024-12-21 21:42:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:42:05' and `end` < '2024-12-21 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-21 21:42:17] Production.INFO: count ==1287 [2024-12-21 21:42:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:42:05 - End Time 2024-12-21 21:42:05 [2024-12-21 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072980', 'tblTempUsageDetail_20' ) start [2024-12-21 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072980', 'tblTempUsageDetail_20' ) end [2024-12-21 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072980', 'tblTempVendorCDR_20' ) start [2024-12-21 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072980', 'tblTempVendorCDR_20' ) end [2024-12-21 21:42:18] Production.INFO: ProcessCDR(1,14072980,1,1,2) [2024-12-21 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072980', 'tblTempUsageDetail_20' ) start [2024-12-21 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072980', 'tblTempUsageDetail_20' ) end [2024-12-21 21:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:42:21] Production.INFO: ==11410== Releasing lock... [2024-12-21 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:42:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:43:04 [end_date_ymd] => 2024-12-21 21:43:04 [RateCDR] => 1 ) [2024-12-21 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-21 18:43:04' and `end` < '2024-12-21 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-21 21:43:17] Production.INFO: count ==1282 [2024-12-21 21:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:43:04 - End Time 2024-12-21 21:43:04 [2024-12-21 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072985', 'tblTempUsageDetail_20' ) start [2024-12-21 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072985', 'tblTempUsageDetail_20' ) end [2024-12-21 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072985', 'tblTempVendorCDR_20' ) start [2024-12-21 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072985', 'tblTempVendorCDR_20' ) end [2024-12-21 21:43:17] Production.INFO: ProcessCDR(1,14072985,1,1,2) [2024-12-21 21:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072985', 'tblTempUsageDetail_20' ) start [2024-12-21 21:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072985', 'tblTempUsageDetail_20' ) end [2024-12-21 21:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:43:20] Production.INFO: ==11552== Releasing lock... [2024-12-21 21:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:43:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:44:05 [end_date_ymd] => 2024-12-21 21:44:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:44:05' and `end` < '2024-12-21 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-21 21:44:17] Production.INFO: count ==1281 [2024-12-21 21:44:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:44:05 - End Time 2024-12-21 21:44:05 [2024-12-21 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072990', 'tblTempUsageDetail_20' ) start [2024-12-21 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072990', 'tblTempUsageDetail_20' ) end [2024-12-21 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072990', 'tblTempVendorCDR_20' ) start [2024-12-21 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072990', 'tblTempVendorCDR_20' ) end [2024-12-21 21:44:17] Production.INFO: ProcessCDR(1,14072990,1,1,2) [2024-12-21 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072990', 'tblTempUsageDetail_20' ) start [2024-12-21 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072990', 'tblTempUsageDetail_20' ) end [2024-12-21 21:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:44:22] Production.INFO: ==11657== Releasing lock... [2024-12-21 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:44:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:45:04 [end_date_ymd] => 2024-12-21 21:45:04 [RateCDR] => 1 ) [2024-12-21 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-21 18:45:04' and `end` < '2024-12-21 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-21 21:45:16] Production.INFO: count ==1280 [2024-12-21 21:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:45:04 - End Time 2024-12-21 21:45:04 [2024-12-21 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072995', 'tblTempUsageDetail_20' ) start [2024-12-21 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14072995', 'tblTempUsageDetail_20' ) end [2024-12-21 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072995', 'tblTempVendorCDR_20' ) start [2024-12-21 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14072995', 'tblTempVendorCDR_20' ) end [2024-12-21 21:45:17] Production.INFO: ProcessCDR(1,14072995,1,1,2) [2024-12-21 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14072995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14072995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14072995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14072995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072995', 'tblTempUsageDetail_20' ) start [2024-12-21 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14072995', 'tblTempUsageDetail_20' ) end [2024-12-21 21:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:45:20] Production.INFO: ==11759== Releasing lock... [2024-12-21 21:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:45:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:46:05 [end_date_ymd] => 2024-12-21 21:46:05 [RateCDR] => 1 ) [2024-12-21 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:46:05' and `end` < '2024-12-21 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:46:18] Production.INFO: count ==1277 [2024-12-21 21:46:19] Production.ERROR: pbx CDR StartTime 2024-12-21 18:46:05 - End Time 2024-12-21 21:46:05 [2024-12-21 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073000', 'tblTempUsageDetail_20' ) start [2024-12-21 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073000', 'tblTempUsageDetail_20' ) end [2024-12-21 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073000', 'tblTempVendorCDR_20' ) start [2024-12-21 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073000', 'tblTempVendorCDR_20' ) end [2024-12-21 21:46:19] Production.INFO: ProcessCDR(1,14073000,1,1,2) [2024-12-21 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073000', 'tblTempUsageDetail_20' ) start [2024-12-21 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073000', 'tblTempUsageDetail_20' ) end [2024-12-21 21:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:46:22] Production.INFO: ==11869== Releasing lock... [2024-12-21 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:46:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:47:05 [end_date_ymd] => 2024-12-21 21:47:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:47:05' and `end` < '2024-12-21 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-21 21:47:17] Production.INFO: count ==1274 [2024-12-21 21:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:47:05 - End Time 2024-12-21 21:47:05 [2024-12-21 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073005', 'tblTempUsageDetail_20' ) start [2024-12-21 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073005', 'tblTempUsageDetail_20' ) end [2024-12-21 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073005', 'tblTempVendorCDR_20' ) start [2024-12-21 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073005', 'tblTempVendorCDR_20' ) end [2024-12-21 21:47:17] Production.INFO: ProcessCDR(1,14073005,1,1,2) [2024-12-21 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073005', 'tblTempUsageDetail_20' ) start [2024-12-21 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073005', 'tblTempUsageDetail_20' ) end [2024-12-21 21:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:47:22] Production.INFO: ==11975== Releasing lock... [2024-12-21 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:47:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-21 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:48:05 [end_date_ymd] => 2024-12-21 21:48:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:48:05' and `end` < '2024-12-21 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-21 21:48:17] Production.INFO: count ==1268 [2024-12-21 21:48:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:48:05 - End Time 2024-12-21 21:48:05 [2024-12-21 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073010', 'tblTempUsageDetail_20' ) start [2024-12-21 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073010', 'tblTempUsageDetail_20' ) end [2024-12-21 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073010', 'tblTempVendorCDR_20' ) start [2024-12-21 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073010', 'tblTempVendorCDR_20' ) end [2024-12-21 21:48:17] Production.INFO: ProcessCDR(1,14073010,1,1,2) [2024-12-21 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073010', 'tblTempUsageDetail_20' ) start [2024-12-21 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073010', 'tblTempUsageDetail_20' ) end [2024-12-21 21:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:48:20] Production.INFO: ==12078== Releasing lock... [2024-12-21 21:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:48:20] Production.INFO: 37 MB #Memory Used# [2024-12-21 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:49:05 [end_date_ymd] => 2024-12-21 21:49:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:49:05' and `end` < '2024-12-21 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-21 21:49:18] Production.INFO: count ==1266 [2024-12-21 21:49:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:49:05 - End Time 2024-12-21 21:49:05 [2024-12-21 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073015', 'tblTempUsageDetail_20' ) start [2024-12-21 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073015', 'tblTempUsageDetail_20' ) end [2024-12-21 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073015', 'tblTempVendorCDR_20' ) start [2024-12-21 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073015', 'tblTempVendorCDR_20' ) end [2024-12-21 21:49:18] Production.INFO: ProcessCDR(1,14073015,1,1,2) [2024-12-21 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073015', 'tblTempUsageDetail_20' ) start [2024-12-21 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073015', 'tblTempUsageDetail_20' ) end [2024-12-21 21:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:49:21] Production.INFO: ==12182== Releasing lock... [2024-12-21 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:49:21] Production.INFO: 37 MB #Memory Used# [2024-12-21 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:50:06 [end_date_ymd] => 2024-12-21 21:50:06 [RateCDR] => 1 ) [2024-12-21 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:50:06' and `end` < '2024-12-21 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:50:18] Production.INFO: count ==1266 [2024-12-21 21:50:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:50:06 - End Time 2024-12-21 21:50:06 [2024-12-21 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073021', 'tblTempUsageDetail_20' ) start [2024-12-21 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073021', 'tblTempUsageDetail_20' ) end [2024-12-21 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073021', 'tblTempVendorCDR_20' ) start [2024-12-21 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073021', 'tblTempVendorCDR_20' ) end [2024-12-21 21:50:18] Production.INFO: ProcessCDR(1,14073021,1,1,2) [2024-12-21 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073021', 'tblTempUsageDetail_20' ) start [2024-12-21 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073021', 'tblTempUsageDetail_20' ) end [2024-12-21 21:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:50:21] Production.INFO: ==12289== Releasing lock... [2024-12-21 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:50:21] Production.INFO: 37 MB #Memory Used# [2024-12-21 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:51:05 [end_date_ymd] => 2024-12-21 21:51:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:51:05' and `end` < '2024-12-21 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-21 21:51:17] Production.INFO: count ==1205 [2024-12-21 21:51:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:51:05 - End Time 2024-12-21 21:51:05 [2024-12-21 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073026', 'tblTempUsageDetail_20' ) start [2024-12-21 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073026', 'tblTempUsageDetail_20' ) end [2024-12-21 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073026', 'tblTempVendorCDR_20' ) start [2024-12-21 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073026', 'tblTempVendorCDR_20' ) end [2024-12-21 21:51:17] Production.INFO: ProcessCDR(1,14073026,1,1,2) [2024-12-21 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073026', 'tblTempUsageDetail_20' ) start [2024-12-21 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073026', 'tblTempUsageDetail_20' ) end [2024-12-21 21:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:51:20] Production.INFO: ==12399== Releasing lock... [2024-12-21 21:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:51:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-21 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:52:05 [end_date_ymd] => 2024-12-21 21:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:52:05' and `end` < '2024-12-21 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-21 21:52:19] Production.INFO: count ==1205 [2024-12-21 21:52:19] Production.ERROR: pbx CDR StartTime 2024-12-21 18:52:05 - End Time 2024-12-21 21:52:05 [2024-12-21 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073031', 'tblTempUsageDetail_20' ) start [2024-12-21 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073031', 'tblTempUsageDetail_20' ) end [2024-12-21 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073031', 'tblTempVendorCDR_20' ) start [2024-12-21 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073031', 'tblTempVendorCDR_20' ) end [2024-12-21 21:52:19] Production.INFO: ProcessCDR(1,14073031,1,1,2) [2024-12-21 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073031', 'tblTempUsageDetail_20' ) start [2024-12-21 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073031', 'tblTempUsageDetail_20' ) end [2024-12-21 21:52:24] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:52:24] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:52:24] Production.INFO: ==12504== Releasing lock... [2024-12-21 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:52:24] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:53:05 [end_date_ymd] => 2024-12-21 21:53:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:53:05' and `end` < '2024-12-21 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-21 21:53:18] Production.INFO: count ==1204 [2024-12-21 21:53:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:53:05 - End Time 2024-12-21 21:53:05 [2024-12-21 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073036', 'tblTempUsageDetail_20' ) start [2024-12-21 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073036', 'tblTempUsageDetail_20' ) end [2024-12-21 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073036', 'tblTempVendorCDR_20' ) start [2024-12-21 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073036', 'tblTempVendorCDR_20' ) end [2024-12-21 21:53:18] Production.INFO: ProcessCDR(1,14073036,1,1,2) [2024-12-21 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073036', 'tblTempUsageDetail_20' ) start [2024-12-21 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073036', 'tblTempUsageDetail_20' ) end [2024-12-21 21:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:53:22] Production.INFO: ==12608== Releasing lock... [2024-12-21 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:53:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:54:04 [end_date_ymd] => 2024-12-21 21:54:04 [RateCDR] => 1 ) [2024-12-21 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-21 18:54:04' and `end` < '2024-12-21 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-21 21:54:16] Production.INFO: count ==1202 [2024-12-21 21:54:16] Production.ERROR: pbx CDR StartTime 2024-12-21 18:54:04 - End Time 2024-12-21 21:54:04 [2024-12-21 21:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073041', 'tblTempUsageDetail_20' ) start [2024-12-21 21:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073041', 'tblTempUsageDetail_20' ) end [2024-12-21 21:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073041', 'tblTempVendorCDR_20' ) start [2024-12-21 21:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073041', 'tblTempVendorCDR_20' ) end [2024-12-21 21:54:16] Production.INFO: ProcessCDR(1,14073041,1,1,2) [2024-12-21 21:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073041', 'tblTempUsageDetail_20' ) start [2024-12-21 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073041', 'tblTempUsageDetail_20' ) end [2024-12-21 21:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:54:21] Production.INFO: ==12715== Releasing lock... [2024-12-21 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:54:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 21:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:55:04 [end_date_ymd] => 2024-12-21 21:55:04 [RateCDR] => 1 ) [2024-12-21 21: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-21 18:55:04' and `end` < '2024-12-21 21: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-21 21:55:16] Production.INFO: count ==1197 [2024-12-21 21:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:55:04 - End Time 2024-12-21 21:55:04 [2024-12-21 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073046', 'tblTempUsageDetail_20' ) start [2024-12-21 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073046', 'tblTempUsageDetail_20' ) end [2024-12-21 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073046', 'tblTempVendorCDR_20' ) start [2024-12-21 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073046', 'tblTempVendorCDR_20' ) end [2024-12-21 21:55:17] Production.INFO: ProcessCDR(1,14073046,1,1,2) [2024-12-21 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073046', 'tblTempUsageDetail_20' ) start [2024-12-21 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073046', 'tblTempUsageDetail_20' ) end [2024-12-21 21:55:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:55:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:55:21] Production.INFO: ==12823== Releasing lock... [2024-12-21 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:55:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:56:05 [end_date_ymd] => 2024-12-21 21:56:05 [RateCDR] => 1 ) [2024-12-21 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:56:05' and `end` < '2024-12-21 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:56:19] Production.INFO: count ==1196 [2024-12-21 21:56:19] Production.ERROR: pbx CDR StartTime 2024-12-21 18:56:05 - End Time 2024-12-21 21:56:05 [2024-12-21 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073051', 'tblTempUsageDetail_20' ) start [2024-12-21 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073051', 'tblTempUsageDetail_20' ) end [2024-12-21 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073051', 'tblTempVendorCDR_20' ) start [2024-12-21 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073051', 'tblTempVendorCDR_20' ) end [2024-12-21 21:56:19] Production.INFO: ProcessCDR(1,14073051,1,1,2) [2024-12-21 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073051', 'tblTempUsageDetail_20' ) start [2024-12-21 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073051', 'tblTempUsageDetail_20' ) end [2024-12-21 21:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:56:22] Production.INFO: ==12920== Releasing lock... [2024-12-21 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:56:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:57:04 [end_date_ymd] => 2024-12-21 21:57:04 [RateCDR] => 1 ) [2024-12-21 21:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:57:04' and `end` < '2024-12-21 21:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:57:16] Production.INFO: count ==1195 [2024-12-21 21:57:16] Production.ERROR: pbx CDR StartTime 2024-12-21 18:57:04 - End Time 2024-12-21 21:57:04 [2024-12-21 21:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073056', 'tblTempUsageDetail_20' ) start [2024-12-21 21:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073056', 'tblTempUsageDetail_20' ) end [2024-12-21 21:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073056', 'tblTempVendorCDR_20' ) start [2024-12-21 21:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073056', 'tblTempVendorCDR_20' ) end [2024-12-21 21:57:16] Production.INFO: ProcessCDR(1,14073056,1,1,2) [2024-12-21 21:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073056', 'tblTempUsageDetail_20' ) start [2024-12-21 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073056', 'tblTempUsageDetail_20' ) end [2024-12-21 21:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:57:21] Production.INFO: ==12989== Releasing lock... [2024-12-21 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:57:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:58:05 [end_date_ymd] => 2024-12-21 21:58:05 [RateCDR] => 1 ) [2024-12-21 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-21 18:58:05' and `end` < '2024-12-21 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-21 21:58:18] Production.INFO: count ==1193 [2024-12-21 21:58:18] Production.ERROR: pbx CDR StartTime 2024-12-21 18:58:05 - End Time 2024-12-21 21:58:05 [2024-12-21 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073061', 'tblTempUsageDetail_20' ) start [2024-12-21 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073061', 'tblTempUsageDetail_20' ) end [2024-12-21 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073061', 'tblTempVendorCDR_20' ) start [2024-12-21 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073061', 'tblTempVendorCDR_20' ) end [2024-12-21 21:58:18] Production.INFO: ProcessCDR(1,14073061,1,1,2) [2024-12-21 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073061', 'tblTempUsageDetail_20' ) start [2024-12-21 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073061', 'tblTempUsageDetail_20' ) end [2024-12-21 21:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:58:21] Production.INFO: ==13103== Releasing lock... [2024-12-21 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:58:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 18:59:04 [end_date_ymd] => 2024-12-21 21:59:04 [RateCDR] => 1 ) [2024-12-21 21:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 18:59:04' and `end` < '2024-12-21 21:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 21:59:16] Production.INFO: count ==1186 [2024-12-21 21:59:17] Production.ERROR: pbx CDR StartTime 2024-12-21 18:59:04 - End Time 2024-12-21 21:59:04 [2024-12-21 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073066', 'tblTempUsageDetail_20' ) start [2024-12-21 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073066', 'tblTempUsageDetail_20' ) end [2024-12-21 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073066', 'tblTempVendorCDR_20' ) start [2024-12-21 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073066', 'tblTempVendorCDR_20' ) end [2024-12-21 21:59:17] Production.INFO: ProcessCDR(1,14073066,1,1,2) [2024-12-21 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073066', 'tblTempUsageDetail_20' ) start [2024-12-21 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073066', 'tblTempUsageDetail_20' ) end [2024-12-21 21:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 21:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 21:59:20] Production.INFO: ==13177== Releasing lock... [2024-12-21 21:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 21:59:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:00:06 [end_date_ymd] => 2024-12-21 22:00:06 [RateCDR] => 1 ) [2024-12-21 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-21 19:00:06' and `end` < '2024-12-21 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-21 22:00:18] Production.INFO: count ==1176 [2024-12-21 22:00:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:00:06 - End Time 2024-12-21 22:00:06 [2024-12-21 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073072', 'tblTempUsageDetail_20' ) start [2024-12-21 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073072', 'tblTempUsageDetail_20' ) end [2024-12-21 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073072', 'tblTempVendorCDR_20' ) start [2024-12-21 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073072', 'tblTempVendorCDR_20' ) end [2024-12-21 22:00:18] Production.INFO: ProcessCDR(1,14073072,1,1,2) [2024-12-21 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073072', 'tblTempUsageDetail_20' ) start [2024-12-21 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073072', 'tblTempUsageDetail_20' ) end [2024-12-21 22:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:00:21] Production.INFO: ==13259== Releasing lock... [2024-12-21 22:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:00:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-21 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:01:05 [end_date_ymd] => 2024-12-21 22:01:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:01:05' and `end` < '2024-12-21 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-21 22:01:18] Production.INFO: count ==1143 [2024-12-21 22:01:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:01:05 - End Time 2024-12-21 22:01:05 [2024-12-21 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073077', 'tblTempUsageDetail_20' ) start [2024-12-21 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073077', 'tblTempUsageDetail_20' ) end [2024-12-21 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073077', 'tblTempVendorCDR_20' ) start [2024-12-21 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073077', 'tblTempVendorCDR_20' ) end [2024-12-21 22:01:18] Production.INFO: ProcessCDR(1,14073077,1,1,2) [2024-12-21 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073077', 'tblTempUsageDetail_20' ) start [2024-12-21 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073077', 'tblTempUsageDetail_20' ) end [2024-12-21 22:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:01:21] Production.INFO: ==13350== Releasing lock... [2024-12-21 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:01:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-21 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:02:05 [end_date_ymd] => 2024-12-21 22:02:05 [RateCDR] => 1 ) [2024-12-21 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:02:05' and `end` < '2024-12-21 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:02:17] Production.INFO: count ==1133 [2024-12-21 22:02:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:02:05 - End Time 2024-12-21 22:02:05 [2024-12-21 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073082', 'tblTempUsageDetail_20' ) start [2024-12-21 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073082', 'tblTempUsageDetail_20' ) end [2024-12-21 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073082', 'tblTempVendorCDR_20' ) start [2024-12-21 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073082', 'tblTempVendorCDR_20' ) end [2024-12-21 22:02:17] Production.INFO: ProcessCDR(1,14073082,1,1,2) [2024-12-21 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073082', 'tblTempUsageDetail_20' ) start [2024-12-21 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073082', 'tblTempUsageDetail_20' ) end [2024-12-21 22:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:02:20] Production.INFO: ==13425== Releasing lock... [2024-12-21 22:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:02:20] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:03:04 [end_date_ymd] => 2024-12-21 22:03:04 [RateCDR] => 1 ) [2024-12-21 22:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:03:04' and `end` < '2024-12-21 22:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:03:16] Production.INFO: count ==1129 [2024-12-21 22:03:16] Production.ERROR: pbx CDR StartTime 2024-12-21 19:03:04 - End Time 2024-12-21 22:03:04 [2024-12-21 22:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073087', 'tblTempUsageDetail_20' ) start [2024-12-21 22:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073087', 'tblTempUsageDetail_20' ) end [2024-12-21 22:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073087', 'tblTempVendorCDR_20' ) start [2024-12-21 22:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073087', 'tblTempVendorCDR_20' ) end [2024-12-21 22:03:16] Production.INFO: ProcessCDR(1,14073087,1,1,2) [2024-12-21 22:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:03:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073087', 'tblTempUsageDetail_20' ) start [2024-12-21 22:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073087', 'tblTempUsageDetail_20' ) end [2024-12-21 22:03:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:03:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:03:19] Production.INFO: ==13498== Releasing lock... [2024-12-21 22:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:03:19] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:04:05 [end_date_ymd] => 2024-12-21 22:04:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:04:05' and `end` < '2024-12-21 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-21 22:04:18] Production.INFO: count ==1126 [2024-12-21 22:04:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:04:05 - End Time 2024-12-21 22:04:05 [2024-12-21 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073092', 'tblTempUsageDetail_20' ) start [2024-12-21 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073092', 'tblTempUsageDetail_20' ) end [2024-12-21 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073092', 'tblTempVendorCDR_20' ) start [2024-12-21 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073092', 'tblTempVendorCDR_20' ) end [2024-12-21 22:04:18] Production.INFO: ProcessCDR(1,14073092,1,1,2) [2024-12-21 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073092', 'tblTempUsageDetail_20' ) start [2024-12-21 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073092', 'tblTempUsageDetail_20' ) end [2024-12-21 22:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:04:21] Production.INFO: ==13572== Releasing lock... [2024-12-21 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:04:21] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:05:05 [end_date_ymd] => 2024-12-21 22:05:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:05:05' and `end` < '2024-12-21 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-21 22:05:17] Production.INFO: count ==1122 [2024-12-21 22:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:05:05 - End Time 2024-12-21 22:05:05 [2024-12-21 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073097', 'tblTempUsageDetail_20' ) start [2024-12-21 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073097', 'tblTempUsageDetail_20' ) end [2024-12-21 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073097', 'tblTempVendorCDR_20' ) start [2024-12-21 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073097', 'tblTempVendorCDR_20' ) end [2024-12-21 22:05:17] Production.INFO: ProcessCDR(1,14073097,1,1,2) [2024-12-21 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073097', 'tblTempUsageDetail_20' ) start [2024-12-21 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073097', 'tblTempUsageDetail_20' ) end [2024-12-21 22:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:05:20] Production.INFO: ==13648== Releasing lock... [2024-12-21 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:05:20] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:06:04 [end_date_ymd] => 2024-12-21 22:06:04 [RateCDR] => 1 ) [2024-12-21 22: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-21 19:06:04' and `end` < '2024-12-21 22: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-21 22:06:17] Production.INFO: count ==1119 [2024-12-21 22:06:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:06:04 - End Time 2024-12-21 22:06:04 [2024-12-21 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073098', 'tblTempUsageDetail_20' ) start [2024-12-21 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073098', 'tblTempUsageDetail_20' ) end [2024-12-21 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073098', 'tblTempVendorCDR_20' ) start [2024-12-21 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073098', 'tblTempVendorCDR_20' ) end [2024-12-21 22:06:18] Production.INFO: ProcessCDR(1,14073098,1,1,2) [2024-12-21 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073098', 'tblTempUsageDetail_20' ) start [2024-12-21 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073098', 'tblTempUsageDetail_20' ) end [2024-12-21 22:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:06:21] Production.INFO: ==13724== Releasing lock... [2024-12-21 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:06:21] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:07:05 [end_date_ymd] => 2024-12-21 22:07:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:07:05' and `end` < '2024-12-21 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-21 22:07:18] Production.INFO: count ==1119 [2024-12-21 22:07:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:07:05 - End Time 2024-12-21 22:07:05 [2024-12-21 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073107', 'tblTempUsageDetail_20' ) start [2024-12-21 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073107', 'tblTempUsageDetail_20' ) end [2024-12-21 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073107', 'tblTempVendorCDR_20' ) start [2024-12-21 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073107', 'tblTempVendorCDR_20' ) end [2024-12-21 22:07:18] Production.INFO: ProcessCDR(1,14073107,1,1,2) [2024-12-21 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073107', 'tblTempUsageDetail_20' ) start [2024-12-21 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073107', 'tblTempUsageDetail_20' ) end [2024-12-21 22:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:07:21] Production.INFO: ==13802== Releasing lock... [2024-12-21 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:07:21] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:08:04 [end_date_ymd] => 2024-12-21 22:08:04 [RateCDR] => 1 ) [2024-12-21 22: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-21 19:08:04' and `end` < '2024-12-21 22: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-21 22:08:17] Production.INFO: count ==1116 [2024-12-21 22:08:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:08:04 - End Time 2024-12-21 22:08:04 [2024-12-21 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073112', 'tblTempUsageDetail_20' ) start [2024-12-21 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073112', 'tblTempUsageDetail_20' ) end [2024-12-21 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073112', 'tblTempVendorCDR_20' ) start [2024-12-21 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073112', 'tblTempVendorCDR_20' ) end [2024-12-21 22:08:17] Production.INFO: ProcessCDR(1,14073112,1,1,2) [2024-12-21 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073112', 'tblTempUsageDetail_20' ) start [2024-12-21 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073112', 'tblTempUsageDetail_20' ) end [2024-12-21 22:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:08:20] Production.INFO: ==13876== Releasing lock... [2024-12-21 22:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:08:20] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:09:04 [end_date_ymd] => 2024-12-21 22:09:04 [RateCDR] => 1 ) [2024-12-21 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-21 19:09:04' and `end` < '2024-12-21 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-21 22:09:17] Production.INFO: count ==1115 [2024-12-21 22:09:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:09:04 - End Time 2024-12-21 22:09:04 [2024-12-21 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073117', 'tblTempUsageDetail_20' ) start [2024-12-21 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073117', 'tblTempUsageDetail_20' ) end [2024-12-21 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073117', 'tblTempVendorCDR_20' ) start [2024-12-21 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073117', 'tblTempVendorCDR_20' ) end [2024-12-21 22:09:17] Production.INFO: ProcessCDR(1,14073117,1,1,2) [2024-12-21 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073117', 'tblTempUsageDetail_20' ) start [2024-12-21 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073117', 'tblTempUsageDetail_20' ) end [2024-12-21 22:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:09:21] Production.INFO: ==13953== Releasing lock... [2024-12-21 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:09:21] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:10:06 [end_date_ymd] => 2024-12-21 22:10:06 [RateCDR] => 1 ) [2024-12-21 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:10:06' and `end` < '2024-12-21 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:10:18] Production.INFO: count ==1111 [2024-12-21 22:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:10:06 - End Time 2024-12-21 22:10:06 [2024-12-21 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073123', 'tblTempUsageDetail_20' ) start [2024-12-21 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073123', 'tblTempUsageDetail_20' ) end [2024-12-21 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073123', 'tblTempVendorCDR_20' ) start [2024-12-21 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073123', 'tblTempVendorCDR_20' ) end [2024-12-21 22:10:19] Production.INFO: ProcessCDR(1,14073123,1,1,2) [2024-12-21 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073123', 'tblTempUsageDetail_20' ) start [2024-12-21 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073123', 'tblTempUsageDetail_20' ) end [2024-12-21 22:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:10:22] Production.INFO: ==14027== Releasing lock... [2024-12-21 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:10:22] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:11:04 [end_date_ymd] => 2024-12-21 22:11:04 [RateCDR] => 1 ) [2024-12-21 22: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-21 19:11:04' and `end` < '2024-12-21 22: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-21 22:11:16] Production.INFO: count ==1110 [2024-12-21 22:11:16] Production.ERROR: pbx CDR StartTime 2024-12-21 19:11:04 - End Time 2024-12-21 22:11:04 [2024-12-21 22:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073128', 'tblTempUsageDetail_20' ) start [2024-12-21 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073128', 'tblTempUsageDetail_20' ) end [2024-12-21 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073128', 'tblTempVendorCDR_20' ) start [2024-12-21 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073128', 'tblTempVendorCDR_20' ) end [2024-12-21 22:11:16] Production.INFO: ProcessCDR(1,14073128,1,1,2) [2024-12-21 22:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073128', 'tblTempUsageDetail_20' ) start [2024-12-21 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073128', 'tblTempUsageDetail_20' ) end [2024-12-21 22:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:11:21] Production.INFO: ==14099== Releasing lock... [2024-12-21 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:11:21] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:12:04 [end_date_ymd] => 2024-12-21 22:12:04 [RateCDR] => 1 ) [2024-12-21 22:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:12:04' and `end` < '2024-12-21 22:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:12:18] Production.INFO: count ==1110 [2024-12-21 22:12:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:12:04 - End Time 2024-12-21 22:12:04 [2024-12-21 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073133', 'tblTempUsageDetail_20' ) start [2024-12-21 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073133', 'tblTempUsageDetail_20' ) end [2024-12-21 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073133', 'tblTempVendorCDR_20' ) start [2024-12-21 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073133', 'tblTempVendorCDR_20' ) end [2024-12-21 22:12:18] Production.INFO: ProcessCDR(1,14073133,1,1,2) [2024-12-21 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073133', 'tblTempUsageDetail_20' ) start [2024-12-21 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073133', 'tblTempUsageDetail_20' ) end [2024-12-21 22:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:12:23] Production.INFO: ==14179== Releasing lock... [2024-12-21 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:12:23] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:13:04 [end_date_ymd] => 2024-12-21 22:13:04 [RateCDR] => 1 ) [2024-12-21 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-21 19:13:04' and `end` < '2024-12-21 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-21 22:13:18] Production.INFO: count ==1110 [2024-12-21 22:13:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:13:04 - End Time 2024-12-21 22:13:04 [2024-12-21 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073138', 'tblTempUsageDetail_20' ) start [2024-12-21 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073138', 'tblTempUsageDetail_20' ) end [2024-12-21 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073138', 'tblTempVendorCDR_20' ) start [2024-12-21 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073138', 'tblTempVendorCDR_20' ) end [2024-12-21 22:13:18] Production.INFO: ProcessCDR(1,14073138,1,1,2) [2024-12-21 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073138', 'tblTempUsageDetail_20' ) start [2024-12-21 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073138', 'tblTempUsageDetail_20' ) end [2024-12-21 22:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:13:23] Production.INFO: ==14251== Releasing lock... [2024-12-21 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:13:23] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:14:05 [end_date_ymd] => 2024-12-21 22:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:14:05' and `end` < '2024-12-21 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-21 22:14:17] Production.INFO: count ==1109 [2024-12-21 22:14:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:14:05 - End Time 2024-12-21 22:14:05 [2024-12-21 22:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073143', 'tblTempUsageDetail_20' ) start [2024-12-21 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073143', 'tblTempUsageDetail_20' ) end [2024-12-21 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073143', 'tblTempVendorCDR_20' ) start [2024-12-21 22:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073143', 'tblTempVendorCDR_20' ) end [2024-12-21 22:14:17] Production.INFO: ProcessCDR(1,14073143,1,1,2) [2024-12-21 22:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073143', 'tblTempUsageDetail_20' ) start [2024-12-21 22:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073143', 'tblTempUsageDetail_20' ) end [2024-12-21 22:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:14:20] Production.INFO: ==14364== Releasing lock... [2024-12-21 22:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:14:20] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:15:04 [end_date_ymd] => 2024-12-21 22:15:04 [RateCDR] => 1 ) [2024-12-21 22: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-21 19:15:04' and `end` < '2024-12-21 22: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-21 22:15:16] Production.INFO: count ==1107 [2024-12-21 22:15:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:15:04 - End Time 2024-12-21 22:15:04 [2024-12-21 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073148', 'tblTempUsageDetail_20' ) start [2024-12-21 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073148', 'tblTempUsageDetail_20' ) end [2024-12-21 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073148', 'tblTempVendorCDR_20' ) start [2024-12-21 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073148', 'tblTempVendorCDR_20' ) end [2024-12-21 22:15:17] Production.INFO: ProcessCDR(1,14073148,1,1,2) [2024-12-21 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073148', 'tblTempUsageDetail_20' ) start [2024-12-21 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073148', 'tblTempUsageDetail_20' ) end [2024-12-21 22:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:15:20] Production.INFO: ==14446== Releasing lock... [2024-12-21 22:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:15:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:16:05 [end_date_ymd] => 2024-12-21 22:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:16:05' and `end` < '2024-12-21 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-21 22:16:17] Production.INFO: count ==1106 [2024-12-21 22:16:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:16:05 - End Time 2024-12-21 22:16:05 [2024-12-21 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073153', 'tblTempUsageDetail_20' ) start [2024-12-21 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073153', 'tblTempUsageDetail_20' ) end [2024-12-21 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073153', 'tblTempVendorCDR_20' ) start [2024-12-21 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073153', 'tblTempVendorCDR_20' ) end [2024-12-21 22:16:17] Production.INFO: ProcessCDR(1,14073153,1,1,2) [2024-12-21 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073153', 'tblTempUsageDetail_20' ) start [2024-12-21 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073153', 'tblTempUsageDetail_20' ) end [2024-12-21 22:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:16:20] Production.INFO: ==14550== Releasing lock... [2024-12-21 22:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:16:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:17:04 [end_date_ymd] => 2024-12-21 22:17:04 [RateCDR] => 1 ) [2024-12-21 22: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-21 19:17:04' and `end` < '2024-12-21 22: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-21 22:17:16] Production.INFO: count ==1108 [2024-12-21 22:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:17:04 - End Time 2024-12-21 22:17:04 [2024-12-21 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073158', 'tblTempUsageDetail_20' ) start [2024-12-21 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073158', 'tblTempUsageDetail_20' ) end [2024-12-21 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073158', 'tblTempVendorCDR_20' ) start [2024-12-21 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073158', 'tblTempVendorCDR_20' ) end [2024-12-21 22:17:17] Production.INFO: ProcessCDR(1,14073158,1,1,2) [2024-12-21 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073158', 'tblTempUsageDetail_20' ) start [2024-12-21 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073158', 'tblTempUsageDetail_20' ) end [2024-12-21 22:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:17:20] Production.INFO: ==14650== Releasing lock... [2024-12-21 22:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:17:20] Production.INFO: 36 MB #Memory Used# [2024-12-21 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:18:04 [end_date_ymd] => 2024-12-21 22:18:04 [RateCDR] => 1 ) [2024-12-21 22:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:18:04' and `end` < '2024-12-21 22:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:18:17] Production.INFO: count ==1106 [2024-12-21 22:18:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:18:04 - End Time 2024-12-21 22:18:04 [2024-12-21 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073163', 'tblTempUsageDetail_20' ) start [2024-12-21 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073163', 'tblTempUsageDetail_20' ) end [2024-12-21 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073163', 'tblTempVendorCDR_20' ) start [2024-12-21 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073163', 'tblTempVendorCDR_20' ) end [2024-12-21 22:18:18] Production.INFO: ProcessCDR(1,14073163,1,1,2) [2024-12-21 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073163', 'tblTempUsageDetail_20' ) start [2024-12-21 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073163', 'tblTempUsageDetail_20' ) end [2024-12-21 22:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:18:21] Production.INFO: ==14742== Releasing lock... [2024-12-21 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:18:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:19:05 [end_date_ymd] => 2024-12-21 22:19:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:19:05' and `end` < '2024-12-21 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-21 22:19:18] Production.INFO: count ==1103 [2024-12-21 22:19:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:19:05 - End Time 2024-12-21 22:19:05 [2024-12-21 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073168', 'tblTempUsageDetail_20' ) start [2024-12-21 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073168', 'tblTempUsageDetail_20' ) end [2024-12-21 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073168', 'tblTempVendorCDR_20' ) start [2024-12-21 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073168', 'tblTempVendorCDR_20' ) end [2024-12-21 22:19:18] Production.INFO: ProcessCDR(1,14073168,1,1,2) [2024-12-21 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073168', 'tblTempUsageDetail_20' ) start [2024-12-21 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073168', 'tblTempUsageDetail_20' ) end [2024-12-21 22:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:19:22] Production.INFO: ==14820== Releasing lock... [2024-12-21 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:19:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:20:05 [end_date_ymd] => 2024-12-21 22:20:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:20:05' and `end` < '2024-12-21 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-21 22:20:17] Production.INFO: count ==1106 [2024-12-21 22:20:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:20:05 - End Time 2024-12-21 22:20:05 [2024-12-21 22:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073173', 'tblTempUsageDetail_20' ) start [2024-12-21 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073173', 'tblTempUsageDetail_20' ) end [2024-12-21 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073173', 'tblTempVendorCDR_20' ) start [2024-12-21 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073173', 'tblTempVendorCDR_20' ) end [2024-12-21 22:20:17] Production.INFO: ProcessCDR(1,14073173,1,1,2) [2024-12-21 22:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073173', 'tblTempUsageDetail_20' ) start [2024-12-21 22:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073173', 'tblTempUsageDetail_20' ) end [2024-12-21 22:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:20:20] Production.INFO: ==14902== Releasing lock... [2024-12-21 22:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:20:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:21:05 [end_date_ymd] => 2024-12-21 22:21:05 [RateCDR] => 1 ) [2024-12-21 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:21:05' and `end` < '2024-12-21 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:21:17] Production.INFO: count ==1076 [2024-12-21 22:21:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:21:05 - End Time 2024-12-21 22:21:05 [2024-12-21 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073179', 'tblTempUsageDetail_20' ) start [2024-12-21 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073179', 'tblTempUsageDetail_20' ) end [2024-12-21 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073179', 'tblTempVendorCDR_20' ) start [2024-12-21 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073179', 'tblTempVendorCDR_20' ) end [2024-12-21 22:21:17] Production.INFO: ProcessCDR(1,14073179,1,1,2) [2024-12-21 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073179', 'tblTempUsageDetail_20' ) start [2024-12-21 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073179', 'tblTempUsageDetail_20' ) end [2024-12-21 22:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:21:20] Production.INFO: ==14978== Releasing lock... [2024-12-21 22:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:21:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 22:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:22:04 [end_date_ymd] => 2024-12-21 22:22:04 [RateCDR] => 1 ) [2024-12-21 22:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:22:04' and `end` < '2024-12-21 22:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:22:17] Production.INFO: count ==1076 [2024-12-21 22:22:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:22:04 - End Time 2024-12-21 22:22:04 [2024-12-21 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073184', 'tblTempUsageDetail_20' ) start [2024-12-21 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073184', 'tblTempUsageDetail_20' ) end [2024-12-21 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073184', 'tblTempVendorCDR_20' ) start [2024-12-21 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073184', 'tblTempVendorCDR_20' ) end [2024-12-21 22:22:18] Production.INFO: ProcessCDR(1,14073184,1,1,2) [2024-12-21 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073184', 'tblTempUsageDetail_20' ) start [2024-12-21 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073184', 'tblTempUsageDetail_20' ) end [2024-12-21 22:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:22:21] Production.INFO: ==15056== Releasing lock... [2024-12-21 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:22:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:23:05 [end_date_ymd] => 2024-12-21 22:23:05 [RateCDR] => 1 ) [2024-12-21 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:23:05' and `end` < '2024-12-21 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:23:18] Production.INFO: count ==1074 [2024-12-21 22:23:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:23:05 - End Time 2024-12-21 22:23:05 [2024-12-21 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073189', 'tblTempUsageDetail_20' ) start [2024-12-21 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073189', 'tblTempUsageDetail_20' ) end [2024-12-21 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073189', 'tblTempVendorCDR_20' ) start [2024-12-21 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073189', 'tblTempVendorCDR_20' ) end [2024-12-21 22:23:18] Production.INFO: ProcessCDR(1,14073189,1,1,2) [2024-12-21 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073189', 'tblTempUsageDetail_20' ) start [2024-12-21 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073189', 'tblTempUsageDetail_20' ) end [2024-12-21 22:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:23:21] Production.INFO: ==15128== Releasing lock... [2024-12-21 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:23:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 22:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:24:04 [end_date_ymd] => 2024-12-21 22:24:04 [RateCDR] => 1 ) [2024-12-21 22: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-21 19:24:04' and `end` < '2024-12-21 22: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-21 22:24:18] Production.INFO: count ==1074 [2024-12-21 22:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:24:04 - End Time 2024-12-21 22:24:04 [2024-12-21 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073194', 'tblTempUsageDetail_20' ) start [2024-12-21 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073194', 'tblTempUsageDetail_20' ) end [2024-12-21 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073194', 'tblTempVendorCDR_20' ) start [2024-12-21 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073194', 'tblTempVendorCDR_20' ) end [2024-12-21 22:24:18] Production.INFO: ProcessCDR(1,14073194,1,1,2) [2024-12-21 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073194', 'tblTempUsageDetail_20' ) start [2024-12-21 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073194', 'tblTempUsageDetail_20' ) end [2024-12-21 22:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:24:21] Production.INFO: ==15208== Releasing lock... [2024-12-21 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:24:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:25:05 [end_date_ymd] => 2024-12-21 22:25:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:25:05' and `end` < '2024-12-21 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-21 22:25:17] Production.INFO: count ==1074 [2024-12-21 22:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:25:05 - End Time 2024-12-21 22:25:05 [2024-12-21 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073199', 'tblTempUsageDetail_20' ) start [2024-12-21 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073199', 'tblTempUsageDetail_20' ) end [2024-12-21 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073199', 'tblTempVendorCDR_20' ) start [2024-12-21 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073199', 'tblTempVendorCDR_20' ) end [2024-12-21 22:25:17] Production.INFO: ProcessCDR(1,14073199,1,1,2) [2024-12-21 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073199', 'tblTempUsageDetail_20' ) start [2024-12-21 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073199', 'tblTempUsageDetail_20' ) end [2024-12-21 22:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:25:20] Production.INFO: ==15284== Releasing lock... [2024-12-21 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:25:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 22:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:26:04 [end_date_ymd] => 2024-12-21 22:26:04 [RateCDR] => 1 ) [2024-12-21 22:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:26:04' and `end` < '2024-12-21 22:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:26:16] Production.INFO: count ==1074 [2024-12-21 22:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:26:04 - End Time 2024-12-21 22:26:04 [2024-12-21 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073204', 'tblTempUsageDetail_20' ) start [2024-12-21 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073204', 'tblTempUsageDetail_20' ) end [2024-12-21 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073204', 'tblTempVendorCDR_20' ) start [2024-12-21 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073204', 'tblTempVendorCDR_20' ) end [2024-12-21 22:26:17] Production.INFO: ProcessCDR(1,14073204,1,1,2) [2024-12-21 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073204', 'tblTempUsageDetail_20' ) start [2024-12-21 22:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073204', 'tblTempUsageDetail_20' ) end [2024-12-21 22:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:26:20] Production.INFO: ==15356== Releasing lock... [2024-12-21 22:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:26:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:27:04 [end_date_ymd] => 2024-12-21 22:27:04 [RateCDR] => 1 ) [2024-12-21 22:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:27:04' and `end` < '2024-12-21 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-21 22:27:16] Production.INFO: count ==1072 [2024-12-21 22:27:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:27:04 - End Time 2024-12-21 22:27:04 [2024-12-21 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073209', 'tblTempUsageDetail_20' ) start [2024-12-21 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073209', 'tblTempUsageDetail_20' ) end [2024-12-21 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073209', 'tblTempVendorCDR_20' ) start [2024-12-21 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073209', 'tblTempVendorCDR_20' ) end [2024-12-21 22:27:17] Production.INFO: ProcessCDR(1,14073209,1,1,2) [2024-12-21 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073209', 'tblTempUsageDetail_20' ) start [2024-12-21 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073209', 'tblTempUsageDetail_20' ) end [2024-12-21 22:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:27:20] Production.INFO: ==15429== Releasing lock... [2024-12-21 22:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:27:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-21 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:28:05 [end_date_ymd] => 2024-12-21 22:28:05 [RateCDR] => 1 ) [2024-12-21 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:28:05' and `end` < '2024-12-21 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:28:18] Production.INFO: count ==1072 [2024-12-21 22:28:19] Production.ERROR: pbx CDR StartTime 2024-12-21 19:28:05 - End Time 2024-12-21 22:28:05 [2024-12-21 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073214', 'tblTempUsageDetail_20' ) start [2024-12-21 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073214', 'tblTempUsageDetail_20' ) end [2024-12-21 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073214', 'tblTempVendorCDR_20' ) start [2024-12-21 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073214', 'tblTempVendorCDR_20' ) end [2024-12-21 22:28:19] Production.INFO: ProcessCDR(1,14073214,1,1,2) [2024-12-21 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073214', 'tblTempUsageDetail_20' ) start [2024-12-21 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073214', 'tblTempUsageDetail_20' ) end [2024-12-21 22:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:28:22] Production.INFO: ==15505== Releasing lock... [2024-12-21 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:28:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-21 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:29:05 [end_date_ymd] => 2024-12-21 22:29:05 [RateCDR] => 1 ) [2024-12-21 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:29:05' and `end` < '2024-12-21 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:29:19] Production.INFO: count ==1072 [2024-12-21 22:29:19] Production.ERROR: pbx CDR StartTime 2024-12-21 19:29:05 - End Time 2024-12-21 22:29:05 [2024-12-21 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073219', 'tblTempUsageDetail_20' ) start [2024-12-21 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073219', 'tblTempUsageDetail_20' ) end [2024-12-21 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073219', 'tblTempVendorCDR_20' ) start [2024-12-21 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073219', 'tblTempVendorCDR_20' ) end [2024-12-21 22:29:19] Production.INFO: ProcessCDR(1,14073219,1,1,2) [2024-12-21 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073219', 'tblTempUsageDetail_20' ) start [2024-12-21 22:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073219', 'tblTempUsageDetail_20' ) end [2024-12-21 22:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:29:23] Production.INFO: ==15578== Releasing lock... [2024-12-21 22:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:29:23] Production.INFO: 35.5 MB #Memory Used# [2024-12-21 22:30:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:30:04 [end_date_ymd] => 2024-12-21 22:30:04 [RateCDR] => 1 ) [2024-12-21 22:30:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:30:04' and `end` < '2024-12-21 22:30:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:30:17] Production.INFO: count ==1075 [2024-12-21 22:30:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:30:04 - End Time 2024-12-21 22:30:04 [2024-12-21 22:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073224', 'tblTempUsageDetail_20' ) start [2024-12-21 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073224', 'tblTempUsageDetail_20' ) end [2024-12-21 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073224', 'tblTempVendorCDR_20' ) start [2024-12-21 22:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073224', 'tblTempVendorCDR_20' ) end [2024-12-21 22:30:17] Production.INFO: ProcessCDR(1,14073224,1,1,2) [2024-12-21 22:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073224', 'tblTempUsageDetail_20' ) start [2024-12-21 22:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073224', 'tblTempUsageDetail_20' ) end [2024-12-21 22:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:30:20] Production.INFO: ==15693== Releasing lock... [2024-12-21 22:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:30:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-21 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:31:04 [end_date_ymd] => 2024-12-21 22:31:04 [RateCDR] => 1 ) [2024-12-21 22: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-21 19:31:04' and `end` < '2024-12-21 22: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-21 22:31:18] Production.INFO: count ==1044 [2024-12-21 22:31:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:31:04 - End Time 2024-12-21 22:31:04 [2024-12-21 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073230', 'tblTempUsageDetail_20' ) start [2024-12-21 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073230', 'tblTempUsageDetail_20' ) end [2024-12-21 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073230', 'tblTempVendorCDR_20' ) start [2024-12-21 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073230', 'tblTempVendorCDR_20' ) end [2024-12-21 22:31:18] Production.INFO: ProcessCDR(1,14073230,1,1,2) [2024-12-21 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073230', 'tblTempUsageDetail_20' ) start [2024-12-21 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073230', 'tblTempUsageDetail_20' ) end [2024-12-21 22:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:31:21] Production.INFO: ==15768== Releasing lock... [2024-12-21 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:31:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-21 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:32:05 [end_date_ymd] => 2024-12-21 22:32:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:32:05' and `end` < '2024-12-21 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-21 22:32:17] Production.INFO: count ==1035 [2024-12-21 22:32:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:32:05 - End Time 2024-12-21 22:32:05 [2024-12-21 22:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073235', 'tblTempUsageDetail_20' ) start [2024-12-21 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073235', 'tblTempUsageDetail_20' ) end [2024-12-21 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073235', 'tblTempVendorCDR_20' ) start [2024-12-21 22:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073235', 'tblTempVendorCDR_20' ) end [2024-12-21 22:32:17] Production.INFO: ProcessCDR(1,14073235,1,1,2) [2024-12-21 22:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073235', 'tblTempUsageDetail_20' ) start [2024-12-21 22:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073235', 'tblTempUsageDetail_20' ) end [2024-12-21 22:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:32:20] Production.INFO: ==15843== Releasing lock... [2024-12-21 22:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:32:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-21 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:33:05 [end_date_ymd] => 2024-12-21 22:33:05 [RateCDR] => 1 ) [2024-12-21 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:33:05' and `end` < '2024-12-21 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:33:18] Production.INFO: count ==1030 [2024-12-21 22:33:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:33:05 - End Time 2024-12-21 22:33:05 [2024-12-21 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073240', 'tblTempUsageDetail_20' ) start [2024-12-21 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073240', 'tblTempUsageDetail_20' ) end [2024-12-21 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073240', 'tblTempVendorCDR_20' ) start [2024-12-21 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073240', 'tblTempVendorCDR_20' ) end [2024-12-21 22:33:18] Production.INFO: ProcessCDR(1,14073240,1,1,2) [2024-12-21 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073240', 'tblTempUsageDetail_20' ) start [2024-12-21 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073240', 'tblTempUsageDetail_20' ) end [2024-12-21 22:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:33:21] Production.INFO: ==15917== Releasing lock... [2024-12-21 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:33:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-21 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:34:05 [end_date_ymd] => 2024-12-21 22:34:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:34:05' and `end` < '2024-12-21 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-21 22:34:18] Production.INFO: count ==1023 [2024-12-21 22:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:34:05 - End Time 2024-12-21 22:34:05 [2024-12-21 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073245', 'tblTempUsageDetail_20' ) start [2024-12-21 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073245', 'tblTempUsageDetail_20' ) end [2024-12-21 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073245', 'tblTempVendorCDR_20' ) start [2024-12-21 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073245', 'tblTempVendorCDR_20' ) end [2024-12-21 22:34:18] Production.INFO: ProcessCDR(1,14073245,1,1,2) [2024-12-21 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073245', 'tblTempUsageDetail_20' ) start [2024-12-21 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073245', 'tblTempUsageDetail_20' ) end [2024-12-21 22:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:34:21] Production.INFO: ==15992== Releasing lock... [2024-12-21 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:34:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-21 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:35:05 [end_date_ymd] => 2024-12-21 22:35:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:35:05' and `end` < '2024-12-21 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-21 22:35:17] Production.INFO: count ==1019 [2024-12-21 22:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:35:05 - End Time 2024-12-21 22:35:05 [2024-12-21 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073250', 'tblTempUsageDetail_20' ) start [2024-12-21 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073250', 'tblTempUsageDetail_20' ) end [2024-12-21 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073250', 'tblTempVendorCDR_20' ) start [2024-12-21 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073250', 'tblTempVendorCDR_20' ) end [2024-12-21 22:35:17] Production.INFO: ProcessCDR(1,14073250,1,1,2) [2024-12-21 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073250', 'tblTempUsageDetail_20' ) start [2024-12-21 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073250', 'tblTempUsageDetail_20' ) end [2024-12-21 22:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:35:20] Production.INFO: ==16064== Releasing lock... [2024-12-21 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:35:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-21 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:36:05 [end_date_ymd] => 2024-12-21 22:36:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:36:05' and `end` < '2024-12-21 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-21 22:36:20] Production.INFO: count ==1014 [2024-12-21 22:36:20] Production.ERROR: pbx CDR StartTime 2024-12-21 19:36:05 - End Time 2024-12-21 22:36:05 [2024-12-21 22:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073255', 'tblTempUsageDetail_20' ) start [2024-12-21 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073255', 'tblTempUsageDetail_20' ) end [2024-12-21 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073255', 'tblTempVendorCDR_20' ) start [2024-12-21 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073255', 'tblTempVendorCDR_20' ) end [2024-12-21 22:36:20] Production.INFO: ProcessCDR(1,14073255,1,1,2) [2024-12-21 22:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073255', 'tblTempUsageDetail_20' ) start [2024-12-21 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073255', 'tblTempUsageDetail_20' ) end [2024-12-21 22:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:36:23] Production.INFO: ==16136== Releasing lock... [2024-12-21 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:36:23] Production.INFO: 35.25 MB #Memory Used# [2024-12-21 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:37:04 [end_date_ymd] => 2024-12-21 22:37:04 [RateCDR] => 1 ) [2024-12-21 22:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:37:04' and `end` < '2024-12-21 22:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:37:16] Production.INFO: count ==1007 [2024-12-21 22:37:16] Production.ERROR: pbx CDR StartTime 2024-12-21 19:37:04 - End Time 2024-12-21 22:37:04 [2024-12-21 22:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073260', 'tblTempUsageDetail_20' ) start [2024-12-21 22:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073260', 'tblTempUsageDetail_20' ) end [2024-12-21 22:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073260', 'tblTempVendorCDR_20' ) start [2024-12-21 22:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073260', 'tblTempVendorCDR_20' ) end [2024-12-21 22:37:16] Production.INFO: ProcessCDR(1,14073260,1,1,2) [2024-12-21 22:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073260', 'tblTempUsageDetail_20' ) start [2024-12-21 22:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073260', 'tblTempUsageDetail_20' ) end [2024-12-21 22:37:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:37:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:37:19] Production.INFO: ==16208== Releasing lock... [2024-12-21 22:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:37:19] Production.INFO: 35 MB #Memory Used# [2024-12-21 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:38:04 [end_date_ymd] => 2024-12-21 22:38:04 [RateCDR] => 1 ) [2024-12-21 22: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-21 19:38:04' and `end` < '2024-12-21 22: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-21 22:38:17] Production.INFO: count ==996 [2024-12-21 22:38:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:38:04 - End Time 2024-12-21 22:38:04 [2024-12-21 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073265', 'tblTempUsageDetail_20' ) start [2024-12-21 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073265', 'tblTempUsageDetail_20' ) end [2024-12-21 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073265', 'tblTempVendorCDR_20' ) start [2024-12-21 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073265', 'tblTempVendorCDR_20' ) end [2024-12-21 22:38:17] Production.INFO: ProcessCDR(1,14073265,1,1,2) [2024-12-21 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073265', 'tblTempUsageDetail_20' ) start [2024-12-21 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073265', 'tblTempUsageDetail_20' ) end [2024-12-21 22:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:38:20] Production.INFO: ==16285== Releasing lock... [2024-12-21 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:38:20] Production.INFO: 35 MB #Memory Used# [2024-12-21 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:39:05 [end_date_ymd] => 2024-12-21 22:39:05 [RateCDR] => 1 ) [2024-12-21 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:39:05' and `end` < '2024-12-21 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:39:18] Production.INFO: count ==988 [2024-12-21 22:39:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:39:05 - End Time 2024-12-21 22:39:05 [2024-12-21 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073270', 'tblTempUsageDetail_20' ) start [2024-12-21 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073270', 'tblTempUsageDetail_20' ) end [2024-12-21 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073270', 'tblTempVendorCDR_20' ) start [2024-12-21 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073270', 'tblTempVendorCDR_20' ) end [2024-12-21 22:39:18] Production.INFO: ProcessCDR(1,14073270,1,1,2) [2024-12-21 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073270', 'tblTempUsageDetail_20' ) start [2024-12-21 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073270', 'tblTempUsageDetail_20' ) end [2024-12-21 22:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:39:21] Production.INFO: ==16360== Releasing lock... [2024-12-21 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:39:21] Production.INFO: 35 MB #Memory Used# [2024-12-21 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:40:05 [end_date_ymd] => 2024-12-21 22:40:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:40:05' and `end` < '2024-12-21 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-21 22:40:17] Production.INFO: count ==974 [2024-12-21 22:40:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:40:05 - End Time 2024-12-21 22:40:05 [2024-12-21 22:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073275', 'tblTempUsageDetail_20' ) start [2024-12-21 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073275', 'tblTempUsageDetail_20' ) end [2024-12-21 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073275', 'tblTempVendorCDR_20' ) start [2024-12-21 22:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073275', 'tblTempVendorCDR_20' ) end [2024-12-21 22:40:17] Production.INFO: ProcessCDR(1,14073275,1,1,2) [2024-12-21 22:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073275', 'tblTempUsageDetail_20' ) start [2024-12-21 22:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073275', 'tblTempUsageDetail_20' ) end [2024-12-21 22:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:40:20] Production.INFO: ==16436== Releasing lock... [2024-12-21 22:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:40:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-21 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:41:05 [end_date_ymd] => 2024-12-21 22:41:05 [RateCDR] => 1 ) [2024-12-21 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:41:05' and `end` < '2024-12-21 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:41:17] Production.INFO: count ==907 [2024-12-21 22:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:41:05 - End Time 2024-12-21 22:41:05 [2024-12-21 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073281', 'tblTempUsageDetail_20' ) start [2024-12-21 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073281', 'tblTempUsageDetail_20' ) end [2024-12-21 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073281', 'tblTempVendorCDR_20' ) start [2024-12-21 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073281', 'tblTempVendorCDR_20' ) end [2024-12-21 22:41:17] Production.INFO: ProcessCDR(1,14073281,1,1,2) [2024-12-21 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073281', 'tblTempUsageDetail_20' ) start [2024-12-21 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073281', 'tblTempUsageDetail_20' ) end [2024-12-21 22:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:41:20] Production.INFO: ==16508== Releasing lock... [2024-12-21 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:41:20] Production.INFO: 34 MB #Memory Used# [2024-12-21 22:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:42:04 [end_date_ymd] => 2024-12-21 22:42:04 [RateCDR] => 1 ) [2024-12-21 22: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-21 19:42:04' and `end` < '2024-12-21 22: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-21 22:42:17] Production.INFO: count ==900 [2024-12-21 22:42:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:42:04 - End Time 2024-12-21 22:42:04 [2024-12-21 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073286', 'tblTempUsageDetail_20' ) start [2024-12-21 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073286', 'tblTempUsageDetail_20' ) end [2024-12-21 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073286', 'tblTempVendorCDR_20' ) start [2024-12-21 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073286', 'tblTempVendorCDR_20' ) end [2024-12-21 22:42:17] Production.INFO: ProcessCDR(1,14073286,1,1,2) [2024-12-21 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073286', 'tblTempUsageDetail_20' ) start [2024-12-21 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073286', 'tblTempUsageDetail_20' ) end [2024-12-21 22:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:42:20] Production.INFO: ==16577== Releasing lock... [2024-12-21 22:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:42:20] Production.INFO: 34 MB #Memory Used# [2024-12-21 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:43:05 [end_date_ymd] => 2024-12-21 22:43:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:43:05' and `end` < '2024-12-21 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-21 22:43:17] Production.INFO: count ==899 [2024-12-21 22:43:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:43:05 - End Time 2024-12-21 22:43:05 [2024-12-21 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073291', 'tblTempUsageDetail_20' ) start [2024-12-21 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073291', 'tblTempUsageDetail_20' ) end [2024-12-21 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073291', 'tblTempVendorCDR_20' ) start [2024-12-21 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073291', 'tblTempVendorCDR_20' ) end [2024-12-21 22:43:18] Production.INFO: ProcessCDR(1,14073291,1,1,2) [2024-12-21 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073291', 'tblTempUsageDetail_20' ) start [2024-12-21 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073291', 'tblTempUsageDetail_20' ) end [2024-12-21 22:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:43:21] Production.INFO: ==16650== Releasing lock... [2024-12-21 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:43:21] Production.INFO: 34 MB #Memory Used# [2024-12-21 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:44:04 [end_date_ymd] => 2024-12-21 22:44:04 [RateCDR] => 1 ) [2024-12-21 22:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:44:04' and `end` < '2024-12-21 22:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:44:16] Production.INFO: count ==897 [2024-12-21 22:44:16] Production.ERROR: pbx CDR StartTime 2024-12-21 19:44:04 - End Time 2024-12-21 22:44:04 [2024-12-21 22:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073296', 'tblTempUsageDetail_20' ) start [2024-12-21 22:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073296', 'tblTempUsageDetail_20' ) end [2024-12-21 22:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073296', 'tblTempVendorCDR_20' ) start [2024-12-21 22:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073296', 'tblTempVendorCDR_20' ) end [2024-12-21 22:44:16] Production.INFO: ProcessCDR(1,14073296,1,1,2) [2024-12-21 22:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:44:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073296', 'tblTempUsageDetail_20' ) start [2024-12-21 22:44:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073296', 'tblTempUsageDetail_20' ) end [2024-12-21 22:44:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:44:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:44:19] Production.INFO: ==16725== Releasing lock... [2024-12-21 22:44:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:44:19] Production.INFO: 34 MB #Memory Used# [2024-12-21 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:45:05 [end_date_ymd] => 2024-12-21 22:45:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:45:05' and `end` < '2024-12-21 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-21 22:45:17] Production.INFO: count ==897 [2024-12-21 22:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:45:05 - End Time 2024-12-21 22:45:05 [2024-12-21 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073301', 'tblTempUsageDetail_20' ) start [2024-12-21 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073301', 'tblTempUsageDetail_20' ) end [2024-12-21 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073301', 'tblTempVendorCDR_20' ) start [2024-12-21 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073301', 'tblTempVendorCDR_20' ) end [2024-12-21 22:45:17] Production.INFO: ProcessCDR(1,14073301,1,1,2) [2024-12-21 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073301', 'tblTempUsageDetail_20' ) start [2024-12-21 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073301', 'tblTempUsageDetail_20' ) end [2024-12-21 22:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:45:20] Production.INFO: ==16837== Releasing lock... [2024-12-21 22:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:45:20] Production.INFO: 34 MB #Memory Used# [2024-12-21 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:46:04 [end_date_ymd] => 2024-12-21 22:46:04 [RateCDR] => 1 ) [2024-12-21 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-21 19:46:04' and `end` < '2024-12-21 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-21 22:46:16] Production.INFO: count ==903 [2024-12-21 22:46:16] Production.ERROR: pbx CDR StartTime 2024-12-21 19:46:04 - End Time 2024-12-21 22:46:04 [2024-12-21 22:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073306', 'tblTempUsageDetail_20' ) start [2024-12-21 22:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073306', 'tblTempUsageDetail_20' ) end [2024-12-21 22:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073306', 'tblTempVendorCDR_20' ) start [2024-12-21 22:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073306', 'tblTempVendorCDR_20' ) end [2024-12-21 22:46:16] Production.INFO: ProcessCDR(1,14073306,1,1,2) [2024-12-21 22:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073306', 'tblTempUsageDetail_20' ) start [2024-12-21 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073306', 'tblTempUsageDetail_20' ) end [2024-12-21 22:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:46:21] Production.INFO: ==16908== Releasing lock... [2024-12-21 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:46:21] Production.INFO: 34 MB #Memory Used# [2024-12-21 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:47:04 [end_date_ymd] => 2024-12-21 22:47:04 [RateCDR] => 1 ) [2024-12-21 22: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-21 19:47:04' and `end` < '2024-12-21 22: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-21 22:47:18] Production.INFO: count ==899 [2024-12-21 22:47:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:47:04 - End Time 2024-12-21 22:47:04 [2024-12-21 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073311', 'tblTempUsageDetail_20' ) start [2024-12-21 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073311', 'tblTempUsageDetail_20' ) end [2024-12-21 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073311', 'tblTempVendorCDR_20' ) start [2024-12-21 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073311', 'tblTempVendorCDR_20' ) end [2024-12-21 22:47:18] Production.INFO: ProcessCDR(1,14073311,1,1,2) [2024-12-21 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073311', 'tblTempUsageDetail_20' ) start [2024-12-21 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073311', 'tblTempUsageDetail_20' ) end [2024-12-21 22:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:47:21] Production.INFO: ==16978== Releasing lock... [2024-12-21 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:47:21] Production.INFO: 34 MB #Memory Used# [2024-12-21 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:48:05 [end_date_ymd] => 2024-12-21 22:48:05 [RateCDR] => 1 ) [2024-12-21 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:48:05' and `end` < '2024-12-21 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:48:18] Production.INFO: count ==899 [2024-12-21 22:48:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:48:05 - End Time 2024-12-21 22:48:05 [2024-12-21 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073316', 'tblTempUsageDetail_20' ) start [2024-12-21 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073316', 'tblTempUsageDetail_20' ) end [2024-12-21 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073316', 'tblTempVendorCDR_20' ) start [2024-12-21 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073316', 'tblTempVendorCDR_20' ) end [2024-12-21 22:48:18] Production.INFO: ProcessCDR(1,14073316,1,1,2) [2024-12-21 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073316', 'tblTempUsageDetail_20' ) start [2024-12-21 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073316', 'tblTempUsageDetail_20' ) end [2024-12-21 22:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:48:21] Production.INFO: ==17053== Releasing lock... [2024-12-21 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:48:21] Production.INFO: 34 MB #Memory Used# [2024-12-21 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:49:05 [end_date_ymd] => 2024-12-21 22:49:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:49:05' and `end` < '2024-12-21 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-21 22:49:17] Production.INFO: count ==899 [2024-12-21 22:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:49:05 - End Time 2024-12-21 22:49:05 [2024-12-21 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073321', 'tblTempUsageDetail_20' ) start [2024-12-21 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073321', 'tblTempUsageDetail_20' ) end [2024-12-21 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073321', 'tblTempVendorCDR_20' ) start [2024-12-21 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073321', 'tblTempVendorCDR_20' ) end [2024-12-21 22:49:17] Production.INFO: ProcessCDR(1,14073321,1,1,2) [2024-12-21 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073321', 'tblTempUsageDetail_20' ) start [2024-12-21 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073321', 'tblTempUsageDetail_20' ) end [2024-12-21 22:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:49:20] Production.INFO: ==17122== Releasing lock... [2024-12-21 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:49:20] Production.INFO: 34 MB #Memory Used# [2024-12-21 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:50:06 [end_date_ymd] => 2024-12-21 22:50:06 [RateCDR] => 1 ) [2024-12-21 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:50:06' and `end` < '2024-12-21 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:50:18] Production.INFO: count ==895 [2024-12-21 22:50:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:50:06 - End Time 2024-12-21 22:50:06 [2024-12-21 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073326', 'tblTempUsageDetail_20' ) start [2024-12-21 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073326', 'tblTempUsageDetail_20' ) end [2024-12-21 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073326', 'tblTempVendorCDR_20' ) start [2024-12-21 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073326', 'tblTempVendorCDR_20' ) end [2024-12-21 22:50:18] Production.INFO: ProcessCDR(1,14073326,1,1,2) [2024-12-21 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073326', 'tblTempUsageDetail_20' ) start [2024-12-21 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073326', 'tblTempUsageDetail_20' ) end [2024-12-21 22:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:50:21] Production.INFO: ==17199== Releasing lock... [2024-12-21 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:50:21] Production.INFO: 34 MB #Memory Used# [2024-12-21 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:51:04 [end_date_ymd] => 2024-12-21 22:51:04 [RateCDR] => 1 ) [2024-12-21 22: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-21 19:51:04' and `end` < '2024-12-21 22: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-21 22:51:18] Production.INFO: count ==867 [2024-12-21 22:51:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:51:04 - End Time 2024-12-21 22:51:04 [2024-12-21 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073332', 'tblTempUsageDetail_20' ) start [2024-12-21 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073332', 'tblTempUsageDetail_20' ) end [2024-12-21 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073332', 'tblTempVendorCDR_20' ) start [2024-12-21 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073332', 'tblTempVendorCDR_20' ) end [2024-12-21 22:51:18] Production.INFO: ProcessCDR(1,14073332,1,1,2) [2024-12-21 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073332', 'tblTempUsageDetail_20' ) start [2024-12-21 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073332', 'tblTempUsageDetail_20' ) end [2024-12-21 22:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:51:21] Production.INFO: ==17274== Releasing lock... [2024-12-21 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:51:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-21 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:52:05 [end_date_ymd] => 2024-12-21 22:52:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:52:05' and `end` < '2024-12-21 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-21 22:52:18] Production.INFO: count ==870 [2024-12-21 22:52:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:52:05 - End Time 2024-12-21 22:52:05 [2024-12-21 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073337', 'tblTempUsageDetail_20' ) start [2024-12-21 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073337', 'tblTempUsageDetail_20' ) end [2024-12-21 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073337', 'tblTempVendorCDR_20' ) start [2024-12-21 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073337', 'tblTempVendorCDR_20' ) end [2024-12-21 22:52:18] Production.INFO: ProcessCDR(1,14073337,1,1,2) [2024-12-21 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073337', 'tblTempUsageDetail_20' ) start [2024-12-21 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073337', 'tblTempUsageDetail_20' ) end [2024-12-21 22:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:52:22] Production.INFO: ==17347== Releasing lock... [2024-12-21 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:52:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-21 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:53:04 [end_date_ymd] => 2024-12-21 22:53:04 [RateCDR] => 1 ) [2024-12-21 22:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:53:04' and `end` < '2024-12-21 22:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:53:16] Production.INFO: count ==867 [2024-12-21 22:53:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:53:04 - End Time 2024-12-21 22:53:04 [2024-12-21 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073342', 'tblTempUsageDetail_20' ) start [2024-12-21 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073342', 'tblTempUsageDetail_20' ) end [2024-12-21 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073342', 'tblTempVendorCDR_20' ) start [2024-12-21 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073342', 'tblTempVendorCDR_20' ) end [2024-12-21 22:53:17] Production.INFO: ProcessCDR(1,14073342,1,1,2) [2024-12-21 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073342', 'tblTempUsageDetail_20' ) start [2024-12-21 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073342', 'tblTempUsageDetail_20' ) end [2024-12-21 22:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:53:20] Production.INFO: ==17418== Releasing lock... [2024-12-21 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:53:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-21 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:54:05 [end_date_ymd] => 2024-12-21 22:54:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:54:05' and `end` < '2024-12-21 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-21 22:54:18] Production.INFO: count ==868 [2024-12-21 22:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:54:05 - End Time 2024-12-21 22:54:05 [2024-12-21 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073347', 'tblTempUsageDetail_20' ) start [2024-12-21 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073347', 'tblTempUsageDetail_20' ) end [2024-12-21 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073347', 'tblTempVendorCDR_20' ) start [2024-12-21 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073347', 'tblTempVendorCDR_20' ) end [2024-12-21 22:54:18] Production.INFO: ProcessCDR(1,14073347,1,1,2) [2024-12-21 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073347', 'tblTempUsageDetail_20' ) start [2024-12-21 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073347', 'tblTempUsageDetail_20' ) end [2024-12-21 22:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:54:22] Production.INFO: ==17489== Releasing lock... [2024-12-21 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:54:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-21 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:55:04 [end_date_ymd] => 2024-12-21 22:55:04 [RateCDR] => 1 ) [2024-12-21 22:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 19:55:04' and `end` < '2024-12-21 22:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 22:55:16] Production.INFO: count ==864 [2024-12-21 22:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:55:04 - End Time 2024-12-21 22:55:04 [2024-12-21 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073352', 'tblTempUsageDetail_20' ) start [2024-12-21 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073352', 'tblTempUsageDetail_20' ) end [2024-12-21 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073352', 'tblTempVendorCDR_20' ) start [2024-12-21 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073352', 'tblTempVendorCDR_20' ) end [2024-12-21 22:55:17] Production.INFO: ProcessCDR(1,14073352,1,1,2) [2024-12-21 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073352', 'tblTempUsageDetail_20' ) start [2024-12-21 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073352', 'tblTempUsageDetail_20' ) end [2024-12-21 22:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:55:20] Production.INFO: ==17561== Releasing lock... [2024-12-21 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:55:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-21 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:56:05 [end_date_ymd] => 2024-12-21 22:56:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:56:05' and `end` < '2024-12-21 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-21 22:56:18] Production.INFO: count ==859 [2024-12-21 22:56:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:56:05 - End Time 2024-12-21 22:56:05 [2024-12-21 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073357', 'tblTempUsageDetail_20' ) start [2024-12-21 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073357', 'tblTempUsageDetail_20' ) end [2024-12-21 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073357', 'tblTempVendorCDR_20' ) start [2024-12-21 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073357', 'tblTempVendorCDR_20' ) end [2024-12-21 22:56:18] Production.INFO: ProcessCDR(1,14073357,1,1,2) [2024-12-21 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073357', 'tblTempUsageDetail_20' ) start [2024-12-21 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073357', 'tblTempUsageDetail_20' ) end [2024-12-21 22:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:56:21] Production.INFO: ==17635== Releasing lock... [2024-12-21 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:56:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-21 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:57:05 [end_date_ymd] => 2024-12-21 22:57:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:57:05' and `end` < '2024-12-21 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-21 22:57:17] Production.INFO: count ==857 [2024-12-21 22:57:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:57:05 - End Time 2024-12-21 22:57:05 [2024-12-21 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073362', 'tblTempUsageDetail_20' ) start [2024-12-21 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073362', 'tblTempUsageDetail_20' ) end [2024-12-21 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073362', 'tblTempVendorCDR_20' ) start [2024-12-21 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073362', 'tblTempVendorCDR_20' ) end [2024-12-21 22:57:17] Production.INFO: ProcessCDR(1,14073362,1,1,2) [2024-12-21 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073362', 'tblTempUsageDetail_20' ) start [2024-12-21 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073362', 'tblTempUsageDetail_20' ) end [2024-12-21 22:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:57:20] Production.INFO: ==17705== Releasing lock... [2024-12-21 22:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:57:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-21 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:58:05 [end_date_ymd] => 2024-12-21 22:58:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:58:05' and `end` < '2024-12-21 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-21 22:58:18] Production.INFO: count ==856 [2024-12-21 22:58:18] Production.ERROR: pbx CDR StartTime 2024-12-21 19:58:05 - End Time 2024-12-21 22:58:05 [2024-12-21 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073367', 'tblTempUsageDetail_20' ) start [2024-12-21 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073367', 'tblTempUsageDetail_20' ) end [2024-12-21 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073367', 'tblTempVendorCDR_20' ) start [2024-12-21 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073367', 'tblTempVendorCDR_20' ) end [2024-12-21 22:58:18] Production.INFO: ProcessCDR(1,14073367,1,1,2) [2024-12-21 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073367', 'tblTempUsageDetail_20' ) start [2024-12-21 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073367', 'tblTempUsageDetail_20' ) end [2024-12-21 22:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:58:22] Production.INFO: ==17775== Releasing lock... [2024-12-21 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:58:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-21 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 19:59:05 [end_date_ymd] => 2024-12-21 22:59:05 [RateCDR] => 1 ) [2024-12-21 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-21 19:59:05' and `end` < '2024-12-21 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-21 22:59:17] Production.INFO: count ==854 [2024-12-21 22:59:17] Production.ERROR: pbx CDR StartTime 2024-12-21 19:59:05 - End Time 2024-12-21 22:59:05 [2024-12-21 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073372', 'tblTempUsageDetail_20' ) start [2024-12-21 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073372', 'tblTempUsageDetail_20' ) end [2024-12-21 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073372', 'tblTempVendorCDR_20' ) start [2024-12-21 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073372', 'tblTempVendorCDR_20' ) end [2024-12-21 22:59:17] Production.INFO: ProcessCDR(1,14073372,1,1,2) [2024-12-21 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073372', 'tblTempUsageDetail_20' ) start [2024-12-21 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073372', 'tblTempUsageDetail_20' ) end [2024-12-21 22:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 22:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 22:59:20] Production.INFO: ==17850== Releasing lock... [2024-12-21 22:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 22:59:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-21 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:00:05 [end_date_ymd] => 2024-12-21 23:00:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:00:05' and `end` < '2024-12-21 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-21 23:00:17] Production.INFO: count ==851 [2024-12-21 23:00:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:00:05 - End Time 2024-12-21 23:00:05 [2024-12-21 23:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073378', 'tblTempUsageDetail_20' ) start [2024-12-21 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073378', 'tblTempUsageDetail_20' ) end [2024-12-21 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073378', 'tblTempVendorCDR_20' ) start [2024-12-21 23:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073378', 'tblTempVendorCDR_20' ) end [2024-12-21 23:00:17] Production.INFO: ProcessCDR(1,14073378,1,1,2) [2024-12-21 23:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073378', 'tblTempUsageDetail_20' ) start [2024-12-21 23:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073378', 'tblTempUsageDetail_20' ) end [2024-12-21 23:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:00:20] Production.INFO: ==17924== Releasing lock... [2024-12-21 23:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:00:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:01:05 [end_date_ymd] => 2024-12-21 23:01:05 [RateCDR] => 1 ) [2024-12-21 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:01:05' and `end` < '2024-12-21 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:01:17] Production.INFO: count ==839 [2024-12-21 23:01:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:01:05 - End Time 2024-12-21 23:01:05 [2024-12-21 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073383', 'tblTempUsageDetail_20' ) start [2024-12-21 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073383', 'tblTempUsageDetail_20' ) end [2024-12-21 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073383', 'tblTempVendorCDR_20' ) start [2024-12-21 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073383', 'tblTempVendorCDR_20' ) end [2024-12-21 23:01:17] Production.INFO: ProcessCDR(1,14073383,1,1,2) [2024-12-21 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073383', 'tblTempUsageDetail_20' ) start [2024-12-21 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073383', 'tblTempUsageDetail_20' ) end [2024-12-21 23:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:01:20] Production.INFO: ==18050== Releasing lock... [2024-12-21 23:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:01:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:02:05 [end_date_ymd] => 2024-12-21 23:02:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:02:05' and `end` < '2024-12-21 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-21 23:02:17] Production.INFO: count ==838 [2024-12-21 23:02:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:02:05 - End Time 2024-12-21 23:02:05 [2024-12-21 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073388', 'tblTempUsageDetail_20' ) start [2024-12-21 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073388', 'tblTempUsageDetail_20' ) end [2024-12-21 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073388', 'tblTempVendorCDR_20' ) start [2024-12-21 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073388', 'tblTempVendorCDR_20' ) end [2024-12-21 23:02:17] Production.INFO: ProcessCDR(1,14073388,1,1,2) [2024-12-21 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073388', 'tblTempUsageDetail_20' ) start [2024-12-21 23:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073388', 'tblTempUsageDetail_20' ) end [2024-12-21 23:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:02:20] Production.INFO: ==18197== Releasing lock... [2024-12-21 23:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:02:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:03:05 [end_date_ymd] => 2024-12-21 23:03:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:03:05' and `end` < '2024-12-21 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-21 23:03:17] Production.INFO: count ==837 [2024-12-21 23:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:03:05 - End Time 2024-12-21 23:03:05 [2024-12-21 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073393', 'tblTempUsageDetail_20' ) start [2024-12-21 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073393', 'tblTempUsageDetail_20' ) end [2024-12-21 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073393', 'tblTempVendorCDR_20' ) start [2024-12-21 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073393', 'tblTempVendorCDR_20' ) end [2024-12-21 23:03:17] Production.INFO: ProcessCDR(1,14073393,1,1,2) [2024-12-21 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073393', 'tblTempUsageDetail_20' ) start [2024-12-21 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073393', 'tblTempUsageDetail_20' ) end [2024-12-21 23:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:03:20] Production.INFO: ==18273== Releasing lock... [2024-12-21 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:03:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:04:05 [end_date_ymd] => 2024-12-21 23:04:05 [RateCDR] => 1 ) [2024-12-21 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:04:05' and `end` < '2024-12-21 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:04:17] Production.INFO: count ==837 [2024-12-21 23:04:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:04:05 - End Time 2024-12-21 23:04:05 [2024-12-21 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073398', 'tblTempUsageDetail_20' ) start [2024-12-21 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073398', 'tblTempUsageDetail_20' ) end [2024-12-21 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073398', 'tblTempVendorCDR_20' ) start [2024-12-21 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073398', 'tblTempVendorCDR_20' ) end [2024-12-21 23:04:17] Production.INFO: ProcessCDR(1,14073398,1,1,2) [2024-12-21 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073398', 'tblTempUsageDetail_20' ) start [2024-12-21 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073398', 'tblTempUsageDetail_20' ) end [2024-12-21 23:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:04:22] Production.INFO: ==18345== Releasing lock... [2024-12-21 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:04:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:05:05 [end_date_ymd] => 2024-12-21 23:05:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:05:05' and `end` < '2024-12-21 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-21 23:05:17] Production.INFO: count ==842 [2024-12-21 23:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:05:05 - End Time 2024-12-21 23:05:05 [2024-12-21 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073403', 'tblTempUsageDetail_20' ) start [2024-12-21 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073403', 'tblTempUsageDetail_20' ) end [2024-12-21 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073403', 'tblTempVendorCDR_20' ) start [2024-12-21 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073403', 'tblTempVendorCDR_20' ) end [2024-12-21 23:05:17] Production.INFO: ProcessCDR(1,14073403,1,1,2) [2024-12-21 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073403', 'tblTempUsageDetail_20' ) start [2024-12-21 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073403', 'tblTempUsageDetail_20' ) end [2024-12-21 23:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:05:22] Production.INFO: ==18492== Releasing lock... [2024-12-21 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:05:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:06:05 [end_date_ymd] => 2024-12-21 23:06:05 [RateCDR] => 1 ) [2024-12-21 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:06:05' and `end` < '2024-12-21 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:06:18] Production.INFO: count ==843 [2024-12-21 23:06:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:06:05 - End Time 2024-12-21 23:06:05 [2024-12-21 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073408', 'tblTempUsageDetail_20' ) start [2024-12-21 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073408', 'tblTempUsageDetail_20' ) end [2024-12-21 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073408', 'tblTempVendorCDR_20' ) start [2024-12-21 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073408', 'tblTempVendorCDR_20' ) end [2024-12-21 23:06:18] Production.INFO: ProcessCDR(1,14073408,1,1,2) [2024-12-21 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073408', 'tblTempUsageDetail_20' ) start [2024-12-21 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073408', 'tblTempUsageDetail_20' ) end [2024-12-21 23:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:06:22] Production.INFO: ==18564== Releasing lock... [2024-12-21 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:06:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:07:05 [end_date_ymd] => 2024-12-21 23:07:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:07:05' and `end` < '2024-12-21 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-21 23:07:18] Production.INFO: count ==843 [2024-12-21 23:07:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:07:05 - End Time 2024-12-21 23:07:05 [2024-12-21 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073413', 'tblTempUsageDetail_20' ) start [2024-12-21 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073413', 'tblTempUsageDetail_20' ) end [2024-12-21 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073413', 'tblTempVendorCDR_20' ) start [2024-12-21 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073413', 'tblTempVendorCDR_20' ) end [2024-12-21 23:07:18] Production.INFO: ProcessCDR(1,14073413,1,1,2) [2024-12-21 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073413', 'tblTempUsageDetail_20' ) start [2024-12-21 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073413', 'tblTempUsageDetail_20' ) end [2024-12-21 23:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:07:22] Production.INFO: ==18638== Releasing lock... [2024-12-21 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:07:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:08:05 [end_date_ymd] => 2024-12-21 23:08:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:08:05' and `end` < '2024-12-21 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-21 23:08:17] Production.INFO: count ==840 [2024-12-21 23:08:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:08:05 - End Time 2024-12-21 23:08:05 [2024-12-21 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073418', 'tblTempUsageDetail_20' ) start [2024-12-21 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073418', 'tblTempUsageDetail_20' ) end [2024-12-21 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073418', 'tblTempVendorCDR_20' ) start [2024-12-21 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073418', 'tblTempVendorCDR_20' ) end [2024-12-21 23:08:17] Production.INFO: ProcessCDR(1,14073418,1,1,2) [2024-12-21 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073418', 'tblTempUsageDetail_20' ) start [2024-12-21 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073418', 'tblTempUsageDetail_20' ) end [2024-12-21 23:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:08:20] Production.INFO: ==18707== Releasing lock... [2024-12-21 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:08:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:09:04 [end_date_ymd] => 2024-12-21 23:09:04 [RateCDR] => 1 ) [2024-12-21 23: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-21 20:09:04' and `end` < '2024-12-21 23: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-21 23:09:16] Production.INFO: count ==840 [2024-12-21 23:09:16] Production.ERROR: pbx CDR StartTime 2024-12-21 20:09:04 - End Time 2024-12-21 23:09:04 [2024-12-21 23:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073423', 'tblTempUsageDetail_20' ) start [2024-12-21 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073423', 'tblTempUsageDetail_20' ) end [2024-12-21 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073423', 'tblTempVendorCDR_20' ) start [2024-12-21 23:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073423', 'tblTempVendorCDR_20' ) end [2024-12-21 23:09:16] Production.INFO: ProcessCDR(1,14073423,1,1,2) [2024-12-21 23:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073423', 'tblTempUsageDetail_20' ) start [2024-12-21 23:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073423', 'tblTempUsageDetail_20' ) end [2024-12-21 23:09:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:09:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:09:19] Production.INFO: ==18861== Releasing lock... [2024-12-21 23:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:09:19] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:10:06 [end_date_ymd] => 2024-12-21 23:10:06 [RateCDR] => 1 ) [2024-12-21 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-21 20:10:06' and `end` < '2024-12-21 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-21 23:10:18] Production.INFO: count ==838 [2024-12-21 23:10:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:10:06 - End Time 2024-12-21 23:10:06 [2024-12-21 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073429', 'tblTempUsageDetail_20' ) start [2024-12-21 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073429', 'tblTempUsageDetail_20' ) end [2024-12-21 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073429', 'tblTempVendorCDR_20' ) start [2024-12-21 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073429', 'tblTempVendorCDR_20' ) end [2024-12-21 23:10:18] Production.INFO: ProcessCDR(1,14073429,1,1,2) [2024-12-21 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073429', 'tblTempUsageDetail_20' ) start [2024-12-21 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073429', 'tblTempUsageDetail_20' ) end [2024-12-21 23:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:10:21] Production.INFO: ==18934== Releasing lock... [2024-12-21 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:10:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-21 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:11:05 [end_date_ymd] => 2024-12-21 23:11:05 [RateCDR] => 1 ) [2024-12-21 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:11:05' and `end` < '2024-12-21 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:11:18] Production.INFO: count ==797 [2024-12-21 23:11:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:11:05 - End Time 2024-12-21 23:11:05 [2024-12-21 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073434', 'tblTempUsageDetail_20' ) start [2024-12-21 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073434', 'tblTempUsageDetail_20' ) end [2024-12-21 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073434', 'tblTempVendorCDR_20' ) start [2024-12-21 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073434', 'tblTempVendorCDR_20' ) end [2024-12-21 23:11:18] Production.INFO: ProcessCDR(1,14073434,1,1,2) [2024-12-21 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073434', 'tblTempUsageDetail_20' ) start [2024-12-21 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073434', 'tblTempUsageDetail_20' ) end [2024-12-21 23:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:11:21] Production.INFO: ==19010== Releasing lock... [2024-12-21 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:11:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 23:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:12:04 [end_date_ymd] => 2024-12-21 23:12:04 [RateCDR] => 1 ) [2024-12-21 23: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-21 20:12:04' and `end` < '2024-12-21 23: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-21 23:12:19] Production.INFO: count ==797 [2024-12-21 23:12:19] Production.ERROR: pbx CDR StartTime 2024-12-21 20:12:04 - End Time 2024-12-21 23:12:04 [2024-12-21 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073439', 'tblTempUsageDetail_20' ) start [2024-12-21 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073439', 'tblTempUsageDetail_20' ) end [2024-12-21 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073439', 'tblTempVendorCDR_20' ) start [2024-12-21 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073439', 'tblTempVendorCDR_20' ) end [2024-12-21 23:12:19] Production.INFO: ProcessCDR(1,14073439,1,1,2) [2024-12-21 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073439', 'tblTempUsageDetail_20' ) start [2024-12-21 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073439', 'tblTempUsageDetail_20' ) end [2024-12-21 23:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:12:22] Production.INFO: ==19159== Releasing lock... [2024-12-21 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:12:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:13:04 [end_date_ymd] => 2024-12-21 23:13:04 [RateCDR] => 1 ) [2024-12-21 23:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:13:04' and `end` < '2024-12-21 23:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:13:18] Production.INFO: count ==797 [2024-12-21 23:13:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:13:04 - End Time 2024-12-21 23:13:04 [2024-12-21 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073444', 'tblTempUsageDetail_20' ) start [2024-12-21 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073444', 'tblTempUsageDetail_20' ) end [2024-12-21 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073444', 'tblTempVendorCDR_20' ) start [2024-12-21 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073444', 'tblTempVendorCDR_20' ) end [2024-12-21 23:13:18] Production.INFO: ProcessCDR(1,14073444,1,1,2) [2024-12-21 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073444', 'tblTempUsageDetail_20' ) start [2024-12-21 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073444', 'tblTempUsageDetail_20' ) end [2024-12-21 23:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:13:21] Production.INFO: ==19232== Releasing lock... [2024-12-21 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:13:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:14:05 [end_date_ymd] => 2024-12-21 23:14:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:14:05' and `end` < '2024-12-21 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-21 23:14:17] Production.INFO: count ==796 [2024-12-21 23:14:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:14:05 - End Time 2024-12-21 23:14:05 [2024-12-21 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073449', 'tblTempUsageDetail_20' ) start [2024-12-21 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073449', 'tblTempUsageDetail_20' ) end [2024-12-21 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073449', 'tblTempVendorCDR_20' ) start [2024-12-21 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073449', 'tblTempVendorCDR_20' ) end [2024-12-21 23:14:17] Production.INFO: ProcessCDR(1,14073449,1,1,2) [2024-12-21 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073449', 'tblTempUsageDetail_20' ) start [2024-12-21 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073449', 'tblTempUsageDetail_20' ) end [2024-12-21 23:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:14:20] Production.INFO: ==19302== Releasing lock... [2024-12-21 23:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:14:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:15:05 [end_date_ymd] => 2024-12-21 23:15:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:15:05' and `end` < '2024-12-21 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-21 23:15:18] Production.INFO: count ==794 [2024-12-21 23:15:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:15:05 - End Time 2024-12-21 23:15:05 [2024-12-21 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073454', 'tblTempUsageDetail_20' ) start [2024-12-21 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073454', 'tblTempUsageDetail_20' ) end [2024-12-21 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073454', 'tblTempVendorCDR_20' ) start [2024-12-21 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073454', 'tblTempVendorCDR_20' ) end [2024-12-21 23:15:18] Production.INFO: ProcessCDR(1,14073454,1,1,2) [2024-12-21 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073454', 'tblTempUsageDetail_20' ) start [2024-12-21 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073454', 'tblTempUsageDetail_20' ) end [2024-12-21 23:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:15:21] Production.INFO: ==19372== Releasing lock... [2024-12-21 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:15:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:16:05 [end_date_ymd] => 2024-12-21 23:16:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:16:05' and `end` < '2024-12-21 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-21 23:16:18] Production.INFO: count ==795 [2024-12-21 23:16:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:16:05 - End Time 2024-12-21 23:16:05 [2024-12-21 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073459', 'tblTempUsageDetail_20' ) start [2024-12-21 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073459', 'tblTempUsageDetail_20' ) end [2024-12-21 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073459', 'tblTempVendorCDR_20' ) start [2024-12-21 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073459', 'tblTempVendorCDR_20' ) end [2024-12-21 23:16:18] Production.INFO: ProcessCDR(1,14073459,1,1,2) [2024-12-21 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073459', 'tblTempUsageDetail_20' ) start [2024-12-21 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073459', 'tblTempUsageDetail_20' ) end [2024-12-21 23:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:16:21] Production.INFO: ==19521== Releasing lock... [2024-12-21 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:16:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:17:05 [end_date_ymd] => 2024-12-21 23:17:05 [RateCDR] => 1 ) [2024-12-21 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:17:05' and `end` < '2024-12-21 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:17:17] Production.INFO: count ==795 [2024-12-21 23:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:17:05 - End Time 2024-12-21 23:17:05 [2024-12-21 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073464', 'tblTempUsageDetail_20' ) start [2024-12-21 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073464', 'tblTempUsageDetail_20' ) end [2024-12-21 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073464', 'tblTempVendorCDR_20' ) start [2024-12-21 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073464', 'tblTempVendorCDR_20' ) end [2024-12-21 23:17:17] Production.INFO: ProcessCDR(1,14073464,1,1,2) [2024-12-21 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073464', 'tblTempUsageDetail_20' ) start [2024-12-21 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073464', 'tblTempUsageDetail_20' ) end [2024-12-21 23:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:17:20] Production.INFO: ==19631== Releasing lock... [2024-12-21 23:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:17:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 23:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:18:04 [end_date_ymd] => 2024-12-21 23:18:04 [RateCDR] => 1 ) [2024-12-21 23: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-21 20:18:04' and `end` < '2024-12-21 23: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-21 23:18:17] Production.INFO: count ==795 [2024-12-21 23:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:18:04 - End Time 2024-12-21 23:18:04 [2024-12-21 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073469', 'tblTempUsageDetail_20' ) start [2024-12-21 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073469', 'tblTempUsageDetail_20' ) end [2024-12-21 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073469', 'tblTempVendorCDR_20' ) start [2024-12-21 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073469', 'tblTempVendorCDR_20' ) end [2024-12-21 23:18:17] Production.INFO: ProcessCDR(1,14073469,1,1,2) [2024-12-21 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073469', 'tblTempUsageDetail_20' ) start [2024-12-21 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073469', 'tblTempUsageDetail_20' ) end [2024-12-21 23:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:18:20] Production.INFO: ==19707== Releasing lock... [2024-12-21 23:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:18:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:19:05 [end_date_ymd] => 2024-12-21 23:19:05 [RateCDR] => 1 ) [2024-12-21 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:19:05' and `end` < '2024-12-21 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:19:19] Production.INFO: count ==795 [2024-12-21 23:19:19] Production.ERROR: pbx CDR StartTime 2024-12-21 20:19:05 - End Time 2024-12-21 23:19:05 [2024-12-21 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073474', 'tblTempUsageDetail_20' ) start [2024-12-21 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073474', 'tblTempUsageDetail_20' ) end [2024-12-21 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073474', 'tblTempVendorCDR_20' ) start [2024-12-21 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073474', 'tblTempVendorCDR_20' ) end [2024-12-21 23:19:19] Production.INFO: ProcessCDR(1,14073474,1,1,2) [2024-12-21 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073474', 'tblTempUsageDetail_20' ) start [2024-12-21 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073474', 'tblTempUsageDetail_20' ) end [2024-12-21 23:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:19:22] Production.INFO: ==19781== Releasing lock... [2024-12-21 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:19:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:20:05 [end_date_ymd] => 2024-12-21 23:20:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:20:05' and `end` < '2024-12-21 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-21 23:20:17] Production.INFO: count ==798 [2024-12-21 23:20:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:20:05 - End Time 2024-12-21 23:20:05 [2024-12-21 23:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073480', 'tblTempUsageDetail_20' ) start [2024-12-21 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073480', 'tblTempUsageDetail_20' ) end [2024-12-21 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073480', 'tblTempVendorCDR_20' ) start [2024-12-21 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073480', 'tblTempVendorCDR_20' ) end [2024-12-21 23:20:17] Production.INFO: ProcessCDR(1,14073480,1,1,2) [2024-12-21 23:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073480', 'tblTempUsageDetail_20' ) start [2024-12-21 23:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073480', 'tblTempUsageDetail_20' ) end [2024-12-21 23:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:20:20] Production.INFO: ==19855== Releasing lock... [2024-12-21 23:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:20:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-21 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:21:05 [end_date_ymd] => 2024-12-21 23:21:05 [RateCDR] => 1 ) [2024-12-21 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:21:05' and `end` < '2024-12-21 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:21:18] Production.INFO: count ==763 [2024-12-21 23:21:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:21:05 - End Time 2024-12-21 23:21:05 [2024-12-21 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073485', 'tblTempUsageDetail_20' ) start [2024-12-21 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073485', 'tblTempUsageDetail_20' ) end [2024-12-21 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073485', 'tblTempVendorCDR_20' ) start [2024-12-21 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073485', 'tblTempVendorCDR_20' ) end [2024-12-21 23:21:18] Production.INFO: ProcessCDR(1,14073485,1,1,2) [2024-12-21 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073485', 'tblTempUsageDetail_20' ) start [2024-12-21 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073485', 'tblTempUsageDetail_20' ) end [2024-12-21 23:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:21:22] Production.INFO: ==19929== Releasing lock... [2024-12-21 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:21:22] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:22:04 [end_date_ymd] => 2024-12-21 23:22:04 [RateCDR] => 1 ) [2024-12-21 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-21 20:22:04' and `end` < '2024-12-21 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-21 23:22:16] Production.INFO: count ==761 [2024-12-21 23:22:16] Production.ERROR: pbx CDR StartTime 2024-12-21 20:22:04 - End Time 2024-12-21 23:22:04 [2024-12-21 23:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073490', 'tblTempUsageDetail_20' ) start [2024-12-21 23:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073490', 'tblTempUsageDetail_20' ) end [2024-12-21 23:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073490', 'tblTempVendorCDR_20' ) start [2024-12-21 23:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073490', 'tblTempVendorCDR_20' ) end [2024-12-21 23:22:16] Production.INFO: ProcessCDR(1,14073490,1,1,2) [2024-12-21 23:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:22:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073490', 'tblTempUsageDetail_20' ) start [2024-12-21 23:22:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073490', 'tblTempUsageDetail_20' ) end [2024-12-21 23:22:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:22:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:22:19] Production.INFO: ==20000== Releasing lock... [2024-12-21 23:22:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:22:19] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:23:05 [end_date_ymd] => 2024-12-21 23:23:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:23:05' and `end` < '2024-12-21 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-21 23:23:18] Production.INFO: count ==760 [2024-12-21 23:23:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:23:05 - End Time 2024-12-21 23:23:05 [2024-12-21 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073495', 'tblTempUsageDetail_20' ) start [2024-12-21 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073495', 'tblTempUsageDetail_20' ) end [2024-12-21 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073495', 'tblTempVendorCDR_20' ) start [2024-12-21 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073495', 'tblTempVendorCDR_20' ) end [2024-12-21 23:23:18] Production.INFO: ProcessCDR(1,14073495,1,1,2) [2024-12-21 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073495', 'tblTempUsageDetail_20' ) start [2024-12-21 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073495', 'tblTempUsageDetail_20' ) end [2024-12-21 23:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:23:21] Production.INFO: ==20070== Releasing lock... [2024-12-21 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:23:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:24:05 [end_date_ymd] => 2024-12-21 23:24:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:24:05' and `end` < '2024-12-21 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-21 23:24:18] Production.INFO: count ==754 [2024-12-21 23:24:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:24:05 - End Time 2024-12-21 23:24:05 [2024-12-21 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073500', 'tblTempUsageDetail_20' ) start [2024-12-21 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073500', 'tblTempUsageDetail_20' ) end [2024-12-21 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073500', 'tblTempVendorCDR_20' ) start [2024-12-21 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073500', 'tblTempVendorCDR_20' ) end [2024-12-21 23:24:18] Production.INFO: ProcessCDR(1,14073500,1,1,2) [2024-12-21 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073500', 'tblTempUsageDetail_20' ) start [2024-12-21 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073500', 'tblTempUsageDetail_20' ) end [2024-12-21 23:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:24:21] Production.INFO: ==20143== Releasing lock... [2024-12-21 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:24:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:25:05 [end_date_ymd] => 2024-12-21 23:25:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:25:05' and `end` < '2024-12-21 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-21 23:25:17] Production.INFO: count ==757 [2024-12-21 23:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:25:05 - End Time 2024-12-21 23:25:05 [2024-12-21 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073505', 'tblTempUsageDetail_20' ) start [2024-12-21 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073505', 'tblTempUsageDetail_20' ) end [2024-12-21 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073505', 'tblTempVendorCDR_20' ) start [2024-12-21 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073505', 'tblTempVendorCDR_20' ) end [2024-12-21 23:25:17] Production.INFO: ProcessCDR(1,14073505,1,1,2) [2024-12-21 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073505', 'tblTempUsageDetail_20' ) start [2024-12-21 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073505', 'tblTempUsageDetail_20' ) end [2024-12-21 23:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:25:20] Production.INFO: ==20212== Releasing lock... [2024-12-21 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:25:20] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:26:05 [end_date_ymd] => 2024-12-21 23:26:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:26:05' and `end` < '2024-12-21 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-21 23:26:17] Production.INFO: count ==756 [2024-12-21 23:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:26:05 - End Time 2024-12-21 23:26:05 [2024-12-21 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073510', 'tblTempUsageDetail_20' ) start [2024-12-21 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073510', 'tblTempUsageDetail_20' ) end [2024-12-21 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073510', 'tblTempVendorCDR_20' ) start [2024-12-21 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073510', 'tblTempVendorCDR_20' ) end [2024-12-21 23:26:17] Production.INFO: ProcessCDR(1,14073510,1,1,2) [2024-12-21 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073510', 'tblTempUsageDetail_20' ) start [2024-12-21 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073510', 'tblTempUsageDetail_20' ) end [2024-12-21 23:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:26:21] Production.INFO: ==20283== Releasing lock... [2024-12-21 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:26:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:27:04 [end_date_ymd] => 2024-12-21 23:27:04 [RateCDR] => 1 ) [2024-12-21 23:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:27:04' and `end` < '2024-12-21 23:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:27:17] Production.INFO: count ==753 [2024-12-21 23:27:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:27:04 - End Time 2024-12-21 23:27:04 [2024-12-21 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073515', 'tblTempUsageDetail_20' ) start [2024-12-21 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073515', 'tblTempUsageDetail_20' ) end [2024-12-21 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073515', 'tblTempVendorCDR_20' ) start [2024-12-21 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073515', 'tblTempVendorCDR_20' ) end [2024-12-21 23:27:17] Production.INFO: ProcessCDR(1,14073515,1,1,2) [2024-12-21 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073515', 'tblTempUsageDetail_20' ) start [2024-12-21 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073515', 'tblTempUsageDetail_20' ) end [2024-12-21 23:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:27:20] Production.INFO: ==20356== Releasing lock... [2024-12-21 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:27:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:28:05 [end_date_ymd] => 2024-12-21 23:28:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:28:05' and `end` < '2024-12-21 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-21 23:28:17] Production.INFO: count ==751 [2024-12-21 23:28:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:28:05 - End Time 2024-12-21 23:28:05 [2024-12-21 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073520', 'tblTempUsageDetail_20' ) start [2024-12-21 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073520', 'tblTempUsageDetail_20' ) end [2024-12-21 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073520', 'tblTempVendorCDR_20' ) start [2024-12-21 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073520', 'tblTempVendorCDR_20' ) end [2024-12-21 23:28:17] Production.INFO: ProcessCDR(1,14073520,1,1,2) [2024-12-21 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073520', 'tblTempUsageDetail_20' ) start [2024-12-21 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073520', 'tblTempUsageDetail_20' ) end [2024-12-21 23:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:28:20] Production.INFO: ==20427== Releasing lock... [2024-12-21 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:28:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:29:04 [end_date_ymd] => 2024-12-21 23:29:04 [RateCDR] => 1 ) [2024-12-21 23:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:29:04' and `end` < '2024-12-21 23:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:29:17] Production.INFO: count ==756 [2024-12-21 23:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:29:04 - End Time 2024-12-21 23:29:04 [2024-12-21 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073525', 'tblTempUsageDetail_20' ) start [2024-12-21 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073525', 'tblTempUsageDetail_20' ) end [2024-12-21 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073525', 'tblTempVendorCDR_20' ) start [2024-12-21 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073525', 'tblTempVendorCDR_20' ) end [2024-12-21 23:29:17] Production.INFO: ProcessCDR(1,14073525,1,1,2) [2024-12-21 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073525', 'tblTempUsageDetail_20' ) start [2024-12-21 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073525', 'tblTempUsageDetail_20' ) end [2024-12-21 23:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:29:21] Production.INFO: ==20501== Releasing lock... [2024-12-21 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:29:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:30:05 [end_date_ymd] => 2024-12-21 23:30:05 [RateCDR] => 1 ) [2024-12-21 23: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-21 20:30:05' and `end` < '2024-12-21 23: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-21 23:30:17] Production.INFO: count ==755 [2024-12-21 23:30:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:30:05 - End Time 2024-12-21 23:30:05 [2024-12-21 23:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073530', 'tblTempUsageDetail_20' ) start [2024-12-21 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073530', 'tblTempUsageDetail_20' ) end [2024-12-21 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073530', 'tblTempVendorCDR_20' ) start [2024-12-21 23:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073530', 'tblTempVendorCDR_20' ) end [2024-12-21 23:30:17] Production.INFO: ProcessCDR(1,14073530,1,1,2) [2024-12-21 23:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073530', 'tblTempUsageDetail_20' ) start [2024-12-21 23:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073530', 'tblTempUsageDetail_20' ) end [2024-12-21 23:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:30:20] Production.INFO: ==20576== Releasing lock... [2024-12-21 23:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:30:20] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:31:05 [end_date_ymd] => 2024-12-21 23:31:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:31:05' and `end` < '2024-12-21 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-21 23:31:20] Production.INFO: count ==738 [2024-12-21 23:31:20] Production.ERROR: pbx CDR StartTime 2024-12-21 20:31:05 - End Time 2024-12-21 23:31:05 [2024-12-21 23:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073536', 'tblTempUsageDetail_20' ) start [2024-12-21 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073536', 'tblTempUsageDetail_20' ) end [2024-12-21 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073536', 'tblTempVendorCDR_20' ) start [2024-12-21 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073536', 'tblTempVendorCDR_20' ) end [2024-12-21 23:31:20] Production.INFO: ProcessCDR(1,14073536,1,1,2) [2024-12-21 23:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073536', 'tblTempUsageDetail_20' ) start [2024-12-21 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073536', 'tblTempUsageDetail_20' ) end [2024-12-21 23:31:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:31:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:31:23] Production.INFO: ==20648== Releasing lock... [2024-12-21 23:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:31:23] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:32:04 [end_date_ymd] => 2024-12-21 23:32:04 [RateCDR] => 1 ) [2024-12-21 23: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-21 20:32:04' and `end` < '2024-12-21 23: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-21 23:32:17] Production.INFO: count ==738 [2024-12-21 23:32:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:32:04 - End Time 2024-12-21 23:32:04 [2024-12-21 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073541', 'tblTempUsageDetail_20' ) start [2024-12-21 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073541', 'tblTempUsageDetail_20' ) end [2024-12-21 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073541', 'tblTempVendorCDR_20' ) start [2024-12-21 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073541', 'tblTempVendorCDR_20' ) end [2024-12-21 23:32:17] Production.INFO: ProcessCDR(1,14073541,1,1,2) [2024-12-21 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073541', 'tblTempUsageDetail_20' ) start [2024-12-21 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073541', 'tblTempUsageDetail_20' ) end [2024-12-21 23:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:32:20] Production.INFO: ==20757== Releasing lock... [2024-12-21 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:32:20] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:33:04 [end_date_ymd] => 2024-12-21 23:33:04 [RateCDR] => 1 ) [2024-12-21 23:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:33:04' and `end` < '2024-12-21 23:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:33:18] Production.INFO: count ==742 [2024-12-21 23:33:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:33:04 - End Time 2024-12-21 23:33:04 [2024-12-21 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073546', 'tblTempUsageDetail_20' ) start [2024-12-21 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073546', 'tblTempUsageDetail_20' ) end [2024-12-21 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073546', 'tblTempVendorCDR_20' ) start [2024-12-21 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073546', 'tblTempVendorCDR_20' ) end [2024-12-21 23:33:18] Production.INFO: ProcessCDR(1,14073546,1,1,2) [2024-12-21 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073546', 'tblTempUsageDetail_20' ) start [2024-12-21 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073546', 'tblTempUsageDetail_20' ) end [2024-12-21 23:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:33:21] Production.INFO: ==20832== Releasing lock... [2024-12-21 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:33:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:34:05 [end_date_ymd] => 2024-12-21 23:34:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:34:05' and `end` < '2024-12-21 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-21 23:34:18] Production.INFO: count ==742 [2024-12-21 23:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:34:05 - End Time 2024-12-21 23:34:05 [2024-12-21 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073551', 'tblTempUsageDetail_20' ) start [2024-12-21 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073551', 'tblTempUsageDetail_20' ) end [2024-12-21 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073551', 'tblTempVendorCDR_20' ) start [2024-12-21 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073551', 'tblTempVendorCDR_20' ) end [2024-12-21 23:34:18] Production.INFO: ProcessCDR(1,14073551,1,1,2) [2024-12-21 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073551', 'tblTempUsageDetail_20' ) start [2024-12-21 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073551', 'tblTempUsageDetail_20' ) end [2024-12-21 23:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:34:21] Production.INFO: ==20910== Releasing lock... [2024-12-21 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:34:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:35:05 [end_date_ymd] => 2024-12-21 23:35:05 [RateCDR] => 1 ) [2024-12-21 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:35:05' and `end` < '2024-12-21 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:35:17] Production.INFO: count ==742 [2024-12-21 23:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:35:05 - End Time 2024-12-21 23:35:05 [2024-12-21 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073556', 'tblTempUsageDetail_20' ) start [2024-12-21 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073556', 'tblTempUsageDetail_20' ) end [2024-12-21 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073556', 'tblTempVendorCDR_20' ) start [2024-12-21 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073556', 'tblTempVendorCDR_20' ) end [2024-12-21 23:35:17] Production.INFO: ProcessCDR(1,14073556,1,1,2) [2024-12-21 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073556', 'tblTempUsageDetail_20' ) start [2024-12-21 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073556', 'tblTempUsageDetail_20' ) end [2024-12-21 23:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:35:20] Production.INFO: ==20984== Releasing lock... [2024-12-21 23:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:35:20] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:36:04 [end_date_ymd] => 2024-12-21 23:36:04 [RateCDR] => 1 ) [2024-12-21 23:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:36:04' and `end` < '2024-12-21 23:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:36:18] Production.INFO: count ==742 [2024-12-21 23:36:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:36:04 - End Time 2024-12-21 23:36:04 [2024-12-21 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073561', 'tblTempUsageDetail_20' ) start [2024-12-21 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073561', 'tblTempUsageDetail_20' ) end [2024-12-21 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073561', 'tblTempVendorCDR_20' ) start [2024-12-21 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073561', 'tblTempVendorCDR_20' ) end [2024-12-21 23:36:18] Production.INFO: ProcessCDR(1,14073561,1,1,2) [2024-12-21 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073561', 'tblTempUsageDetail_20' ) start [2024-12-21 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073561', 'tblTempUsageDetail_20' ) end [2024-12-21 23:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:36:22] Production.INFO: ==21054== Releasing lock... [2024-12-21 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:36:22] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:37:04 [end_date_ymd] => 2024-12-21 23:37:04 [RateCDR] => 1 ) [2024-12-21 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:37:04' and `end` < '2024-12-21 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:37:16] Production.INFO: count ==741 [2024-12-21 23:37:16] Production.ERROR: pbx CDR StartTime 2024-12-21 20:37:04 - End Time 2024-12-21 23:37:04 [2024-12-21 23:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073566', 'tblTempUsageDetail_20' ) start [2024-12-21 23:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073566', 'tblTempUsageDetail_20' ) end [2024-12-21 23:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073566', 'tblTempVendorCDR_20' ) start [2024-12-21 23:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073566', 'tblTempVendorCDR_20' ) end [2024-12-21 23:37:16] Production.INFO: ProcessCDR(1,14073566,1,1,2) [2024-12-21 23:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073566', 'tblTempUsageDetail_20' ) start [2024-12-21 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073566', 'tblTempUsageDetail_20' ) end [2024-12-21 23:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:37:21] Production.INFO: ==21125== Releasing lock... [2024-12-21 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:37:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:38:05 [end_date_ymd] => 2024-12-21 23:38:05 [RateCDR] => 1 ) [2024-12-21 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:38:05' and `end` < '2024-12-21 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:38:18] Production.INFO: count ==741 [2024-12-21 23:38:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:38:05 - End Time 2024-12-21 23:38:05 [2024-12-21 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073571', 'tblTempUsageDetail_20' ) start [2024-12-21 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073571', 'tblTempUsageDetail_20' ) end [2024-12-21 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073571', 'tblTempVendorCDR_20' ) start [2024-12-21 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073571', 'tblTempVendorCDR_20' ) end [2024-12-21 23:38:18] Production.INFO: ProcessCDR(1,14073571,1,1,2) [2024-12-21 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073571', 'tblTempUsageDetail_20' ) start [2024-12-21 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073571', 'tblTempUsageDetail_20' ) end [2024-12-21 23:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:38:22] Production.INFO: ==21198== Releasing lock... [2024-12-21 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:38:22] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:39:04 [end_date_ymd] => 2024-12-21 23:39:04 [RateCDR] => 1 ) [2024-12-21 23:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:39:04' and `end` < '2024-12-21 23:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:39:16] Production.INFO: count ==741 [2024-12-21 23:39:16] Production.ERROR: pbx CDR StartTime 2024-12-21 20:39:04 - End Time 2024-12-21 23:39:04 [2024-12-21 23:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073576', 'tblTempUsageDetail_20' ) start [2024-12-21 23:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073576', 'tblTempUsageDetail_20' ) end [2024-12-21 23:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073576', 'tblTempVendorCDR_20' ) start [2024-12-21 23:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073576', 'tblTempVendorCDR_20' ) end [2024-12-21 23:39:16] Production.INFO: ProcessCDR(1,14073576,1,1,2) [2024-12-21 23:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073576', 'tblTempUsageDetail_20' ) start [2024-12-21 23:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073576', 'tblTempUsageDetail_20' ) end [2024-12-21 23:39:19] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:39:19] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:39:19] Production.INFO: ==21269== Releasing lock... [2024-12-21 23:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:39:19] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:40:06 [end_date_ymd] => 2024-12-21 23:40:06 [RateCDR] => 1 ) [2024-12-21 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:40:06' and `end` < '2024-12-21 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:40:18] Production.INFO: count ==738 [2024-12-21 23:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:40:06 - End Time 2024-12-21 23:40:06 [2024-12-21 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073582', 'tblTempUsageDetail_20' ) start [2024-12-21 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073582', 'tblTempUsageDetail_20' ) end [2024-12-21 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073582', 'tblTempVendorCDR_20' ) start [2024-12-21 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073582', 'tblTempVendorCDR_20' ) end [2024-12-21 23:40:18] Production.INFO: ProcessCDR(1,14073582,1,1,2) [2024-12-21 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073582', 'tblTempUsageDetail_20' ) start [2024-12-21 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073582', 'tblTempUsageDetail_20' ) end [2024-12-21 23:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:40:21] Production.INFO: ==21345== Releasing lock... [2024-12-21 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:40:21] Production.INFO: 33 MB #Memory Used# [2024-12-21 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:41:05 [end_date_ymd] => 2024-12-21 23:41:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:41:05' and `end` < '2024-12-21 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-21 23:41:18] Production.INFO: count ==718 [2024-12-21 23:41:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:41:05 - End Time 2024-12-21 23:41:05 [2024-12-21 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073587', 'tblTempUsageDetail_20' ) start [2024-12-21 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073587', 'tblTempUsageDetail_20' ) end [2024-12-21 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073587', 'tblTempVendorCDR_20' ) start [2024-12-21 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073587', 'tblTempVendorCDR_20' ) end [2024-12-21 23:41:18] Production.INFO: ProcessCDR(1,14073587,1,1,2) [2024-12-21 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073587', 'tblTempUsageDetail_20' ) start [2024-12-21 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073587', 'tblTempUsageDetail_20' ) end [2024-12-21 23:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:41:21] Production.INFO: ==21419== Releasing lock... [2024-12-21 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:41:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:42:05 [end_date_ymd] => 2024-12-21 23:42:05 [RateCDR] => 1 ) [2024-12-21 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:42:05' and `end` < '2024-12-21 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:42:19] Production.INFO: count ==717 [2024-12-21 23:42:19] Production.ERROR: pbx CDR StartTime 2024-12-21 20:42:05 - End Time 2024-12-21 23:42:05 [2024-12-21 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073592', 'tblTempUsageDetail_20' ) start [2024-12-21 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073592', 'tblTempUsageDetail_20' ) end [2024-12-21 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073592', 'tblTempVendorCDR_20' ) start [2024-12-21 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073592', 'tblTempVendorCDR_20' ) end [2024-12-21 23:42:19] Production.INFO: ProcessCDR(1,14073592,1,1,2) [2024-12-21 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073592', 'tblTempUsageDetail_20' ) start [2024-12-21 23:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073592', 'tblTempUsageDetail_20' ) end [2024-12-21 23:42:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:42:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:42:23] Production.INFO: ==21506== Releasing lock... [2024-12-21 23:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:42:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:43:05 [end_date_ymd] => 2024-12-21 23:43:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:43:05' and `end` < '2024-12-21 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-21 23:43:18] Production.INFO: count ==717 [2024-12-21 23:43:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:43:05 - End Time 2024-12-21 23:43:05 [2024-12-21 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073597', 'tblTempUsageDetail_20' ) start [2024-12-21 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073597', 'tblTempUsageDetail_20' ) end [2024-12-21 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073597', 'tblTempVendorCDR_20' ) start [2024-12-21 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073597', 'tblTempVendorCDR_20' ) end [2024-12-21 23:43:18] Production.INFO: ProcessCDR(1,14073597,1,1,2) [2024-12-21 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073597', 'tblTempUsageDetail_20' ) start [2024-12-21 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073597', 'tblTempUsageDetail_20' ) end [2024-12-21 23:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:43:21] Production.INFO: ==21625== Releasing lock... [2024-12-21 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:43:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:44:05 [end_date_ymd] => 2024-12-21 23:44:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:44:05' and `end` < '2024-12-21 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-21 23:44:20] Production.INFO: count ==717 [2024-12-21 23:44:20] Production.ERROR: pbx CDR StartTime 2024-12-21 20:44:05 - End Time 2024-12-21 23:44:05 [2024-12-21 23:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073602', 'tblTempUsageDetail_20' ) start [2024-12-21 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073602', 'tblTempUsageDetail_20' ) end [2024-12-21 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073602', 'tblTempVendorCDR_20' ) start [2024-12-21 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073602', 'tblTempVendorCDR_20' ) end [2024-12-21 23:44:20] Production.INFO: ProcessCDR(1,14073602,1,1,2) [2024-12-21 23:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073602', 'tblTempUsageDetail_20' ) start [2024-12-21 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073602', 'tblTempUsageDetail_20' ) end [2024-12-21 23:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:44:23] Production.INFO: ==21717== Releasing lock... [2024-12-21 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:44:23] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:45:05 [end_date_ymd] => 2024-12-21 23:45:05 [RateCDR] => 1 ) [2024-12-21 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:45:05' and `end` < '2024-12-21 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:45:17] Production.INFO: count ==716 [2024-12-21 23:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:45:05 - End Time 2024-12-21 23:45:05 [2024-12-21 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073607', 'tblTempUsageDetail_20' ) start [2024-12-21 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073607', 'tblTempUsageDetail_20' ) end [2024-12-21 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073607', 'tblTempVendorCDR_20' ) start [2024-12-21 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073607', 'tblTempVendorCDR_20' ) end [2024-12-21 23:45:17] Production.INFO: ProcessCDR(1,14073607,1,1,2) [2024-12-21 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073607', 'tblTempUsageDetail_20' ) start [2024-12-21 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073607', 'tblTempUsageDetail_20' ) end [2024-12-21 23:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:45:20] Production.INFO: ==21789== Releasing lock... [2024-12-21 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:45:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:46:05 [end_date_ymd] => 2024-12-21 23:46:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:46:05' and `end` < '2024-12-21 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-21 23:46:17] Production.INFO: count ==716 [2024-12-21 23:46:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:46:05 - End Time 2024-12-21 23:46:05 [2024-12-21 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073612', 'tblTempUsageDetail_20' ) start [2024-12-21 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073612', 'tblTempUsageDetail_20' ) end [2024-12-21 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073612', 'tblTempVendorCDR_20' ) start [2024-12-21 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073612', 'tblTempVendorCDR_20' ) end [2024-12-21 23:46:17] Production.INFO: ProcessCDR(1,14073612,1,1,2) [2024-12-21 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073612', 'tblTempUsageDetail_20' ) start [2024-12-21 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073612', 'tblTempUsageDetail_20' ) end [2024-12-21 23:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:46:20] Production.INFO: ==21862== Releasing lock... [2024-12-21 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:46:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:47:05 [end_date_ymd] => 2024-12-21 23:47:05 [RateCDR] => 1 ) [2024-12-21 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:47:05' and `end` < '2024-12-21 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:47:17] Production.INFO: count ==716 [2024-12-21 23:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:47:05 - End Time 2024-12-21 23:47:05 [2024-12-21 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073617', 'tblTempUsageDetail_20' ) start [2024-12-21 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073617', 'tblTempUsageDetail_20' ) end [2024-12-21 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073617', 'tblTempVendorCDR_20' ) start [2024-12-21 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073617', 'tblTempVendorCDR_20' ) end [2024-12-21 23:47:17] Production.INFO: ProcessCDR(1,14073617,1,1,2) [2024-12-21 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073617', 'tblTempUsageDetail_20' ) start [2024-12-21 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073617', 'tblTempUsageDetail_20' ) end [2024-12-21 23:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:47:20] Production.INFO: ==21934== Releasing lock... [2024-12-21 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:47:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:48:04 [end_date_ymd] => 2024-12-21 23:48:04 [RateCDR] => 1 ) [2024-12-21 23:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:48:04' and `end` < '2024-12-21 23:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:48:16] Production.INFO: count ==716 [2024-12-21 23:48:16] Production.ERROR: pbx CDR StartTime 2024-12-21 20:48:04 - End Time 2024-12-21 23:48:04 [2024-12-21 23:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073622', 'tblTempUsageDetail_20' ) start [2024-12-21 23:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073622', 'tblTempUsageDetail_20' ) end [2024-12-21 23:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073622', 'tblTempVendorCDR_20' ) start [2024-12-21 23:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073622', 'tblTempVendorCDR_20' ) end [2024-12-21 23:48:16] Production.INFO: ProcessCDR(1,14073622,1,1,2) [2024-12-21 23:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073622', 'tblTempUsageDetail_20' ) start [2024-12-21 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073622', 'tblTempUsageDetail_20' ) end [2024-12-21 23:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:48:20] Production.INFO: ==22051== Releasing lock... [2024-12-21 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:48:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:49:04 [end_date_ymd] => 2024-12-21 23:49:04 [RateCDR] => 1 ) [2024-12-21 23:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:49:04' and `end` < '2024-12-21 23:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:49:18] Production.INFO: count ==713 [2024-12-21 23:49:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:49:04 - End Time 2024-12-21 23:49:04 [2024-12-21 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073627', 'tblTempUsageDetail_20' ) start [2024-12-21 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073627', 'tblTempUsageDetail_20' ) end [2024-12-21 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073627', 'tblTempVendorCDR_20' ) start [2024-12-21 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073627', 'tblTempVendorCDR_20' ) end [2024-12-21 23:49:18] Production.INFO: ProcessCDR(1,14073627,1,1,2) [2024-12-21 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073627', 'tblTempUsageDetail_20' ) start [2024-12-21 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073627', 'tblTempUsageDetail_20' ) end [2024-12-21 23:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:49:21] Production.INFO: ==22121== Releasing lock... [2024-12-21 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:49:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:50:06 [end_date_ymd] => 2024-12-21 23:50:06 [RateCDR] => 1 ) [2024-12-21 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:50:06' and `end` < '2024-12-21 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:50:18] Production.INFO: count ==712 [2024-12-21 23:50:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:50:06 - End Time 2024-12-21 23:50:06 [2024-12-21 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073632', 'tblTempUsageDetail_20' ) start [2024-12-21 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073632', 'tblTempUsageDetail_20' ) end [2024-12-21 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073632', 'tblTempVendorCDR_20' ) start [2024-12-21 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073632', 'tblTempVendorCDR_20' ) end [2024-12-21 23:50:18] Production.INFO: ProcessCDR(1,14073632,1,1,2) [2024-12-21 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073632', 'tblTempUsageDetail_20' ) start [2024-12-21 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073632', 'tblTempUsageDetail_20' ) end [2024-12-21 23:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:50:21] Production.INFO: ==22194== Releasing lock... [2024-12-21 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:50:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:51:05 [end_date_ymd] => 2024-12-21 23:51:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:51:05' and `end` < '2024-12-21 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-21 23:51:20] Production.INFO: count ==694 [2024-12-21 23:51:20] Production.ERROR: pbx CDR StartTime 2024-12-21 20:51:05 - End Time 2024-12-21 23:51:05 [2024-12-21 23:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073638', 'tblTempUsageDetail_20' ) start [2024-12-21 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073638', 'tblTempUsageDetail_20' ) end [2024-12-21 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073638', 'tblTempVendorCDR_20' ) start [2024-12-21 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073638', 'tblTempVendorCDR_20' ) end [2024-12-21 23:51:20] Production.INFO: ProcessCDR(1,14073638,1,1,2) [2024-12-21 23:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073638', 'tblTempUsageDetail_20' ) start [2024-12-21 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073638', 'tblTempUsageDetail_20' ) end [2024-12-21 23:51:23] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:51:23] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:51:23] Production.INFO: ==22275== Releasing lock... [2024-12-21 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:51:23] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:52:05 [end_date_ymd] => 2024-12-21 23:52:05 [RateCDR] => 1 ) [2024-12-21 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:52:05' and `end` < '2024-12-21 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:52:17] Production.INFO: count ==693 [2024-12-21 23:52:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:52:05 - End Time 2024-12-21 23:52:05 [2024-12-21 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073643', 'tblTempUsageDetail_20' ) start [2024-12-21 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073643', 'tblTempUsageDetail_20' ) end [2024-12-21 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073643', 'tblTempVendorCDR_20' ) start [2024-12-21 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073643', 'tblTempVendorCDR_20' ) end [2024-12-21 23:52:17] Production.INFO: ProcessCDR(1,14073643,1,1,2) [2024-12-21 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073643', 'tblTempUsageDetail_20' ) start [2024-12-21 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073643', 'tblTempUsageDetail_20' ) end [2024-12-21 23:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:52:21] Production.INFO: ==22346== Releasing lock... [2024-12-21 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:52:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 23:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:53:04 [end_date_ymd] => 2024-12-21 23:53:04 [RateCDR] => 1 ) [2024-12-21 23: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-21 20:53:04' and `end` < '2024-12-21 23: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-21 23:53:18] Production.INFO: count ==692 [2024-12-21 23:53:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:53:04 - End Time 2024-12-21 23:53:04 [2024-12-21 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073648', 'tblTempUsageDetail_20' ) start [2024-12-21 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073648', 'tblTempUsageDetail_20' ) end [2024-12-21 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073648', 'tblTempVendorCDR_20' ) start [2024-12-21 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073648', 'tblTempVendorCDR_20' ) end [2024-12-21 23:53:18] Production.INFO: ProcessCDR(1,14073648,1,1,2) [2024-12-21 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073648', 'tblTempUsageDetail_20' ) start [2024-12-21 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073648', 'tblTempUsageDetail_20' ) end [2024-12-21 23:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:53:21] Production.INFO: ==22416== Releasing lock... [2024-12-21 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:53:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:54:05 [end_date_ymd] => 2024-12-21 23:54:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:54:05' and `end` < '2024-12-21 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-21 23:54:18] Production.INFO: count ==692 [2024-12-21 23:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:54:05 - End Time 2024-12-21 23:54:05 [2024-12-21 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073653', 'tblTempUsageDetail_20' ) start [2024-12-21 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073653', 'tblTempUsageDetail_20' ) end [2024-12-21 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073653', 'tblTempVendorCDR_20' ) start [2024-12-21 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073653', 'tblTempVendorCDR_20' ) end [2024-12-21 23:54:18] Production.INFO: ProcessCDR(1,14073653,1,1,2) [2024-12-21 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073653', 'tblTempUsageDetail_20' ) start [2024-12-21 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073653', 'tblTempUsageDetail_20' ) end [2024-12-21 23:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:54:21] Production.INFO: ==22487== Releasing lock... [2024-12-21 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:54:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:55:05 [end_date_ymd] => 2024-12-21 23:55:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:55:05' and `end` < '2024-12-21 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-21 23:55:17] Production.INFO: count ==692 [2024-12-21 23:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:55:05 - End Time 2024-12-21 23:55:05 [2024-12-21 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073658', 'tblTempUsageDetail_20' ) start [2024-12-21 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073658', 'tblTempUsageDetail_20' ) end [2024-12-21 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073658', 'tblTempVendorCDR_20' ) start [2024-12-21 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073658', 'tblTempVendorCDR_20' ) end [2024-12-21 23:55:17] Production.INFO: ProcessCDR(1,14073658,1,1,2) [2024-12-21 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073658', 'tblTempUsageDetail_20' ) start [2024-12-21 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073658', 'tblTempUsageDetail_20' ) end [2024-12-21 23:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:55:20] Production.INFO: ==22559== Releasing lock... [2024-12-21 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:55:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:56:05 [end_date_ymd] => 2024-12-21 23:56:05 [RateCDR] => 1 ) [2024-12-21 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-21 20:56:05' and `end` < '2024-12-21 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-21 23:56:17] Production.INFO: count ==696 [2024-12-21 23:56:17] Production.ERROR: pbx CDR StartTime 2024-12-21 20:56:05 - End Time 2024-12-21 23:56:05 [2024-12-21 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073663', 'tblTempUsageDetail_20' ) start [2024-12-21 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073663', 'tblTempUsageDetail_20' ) end [2024-12-21 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073663', 'tblTempVendorCDR_20' ) start [2024-12-21 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073663', 'tblTempVendorCDR_20' ) end [2024-12-21 23:56:17] Production.INFO: ProcessCDR(1,14073663,1,1,2) [2024-12-21 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073663', 'tblTempUsageDetail_20' ) start [2024-12-21 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073663', 'tblTempUsageDetail_20' ) end [2024-12-21 23:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:56:21] Production.INFO: ==22628== Releasing lock... [2024-12-21 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:56:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:57:05 [end_date_ymd] => 2024-12-21 23:57:05 [RateCDR] => 1 ) [2024-12-21 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:57:05' and `end` < '2024-12-21 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:57:18] Production.INFO: count ==696 [2024-12-21 23:57:18] Production.ERROR: pbx CDR StartTime 2024-12-21 20:57:05 - End Time 2024-12-21 23:57:05 [2024-12-21 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073668', 'tblTempUsageDetail_20' ) start [2024-12-21 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073668', 'tblTempUsageDetail_20' ) end [2024-12-21 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073668', 'tblTempVendorCDR_20' ) start [2024-12-21 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073668', 'tblTempVendorCDR_20' ) end [2024-12-21 23:57:18] Production.INFO: ProcessCDR(1,14073668,1,1,2) [2024-12-21 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073668', 'tblTempUsageDetail_20' ) start [2024-12-21 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073668', 'tblTempUsageDetail_20' ) end [2024-12-21 23:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:57:21] Production.INFO: ==22702== Releasing lock... [2024-12-21 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:57:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-21 23:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:58:04 [end_date_ymd] => 2024-12-21 23:58:04 [RateCDR] => 1 ) [2024-12-21 23:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:58:04' and `end` < '2024-12-21 23:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:58:16] Production.INFO: count ==700 [2024-12-21 23:58:16] Production.ERROR: pbx CDR StartTime 2024-12-21 20:58:04 - End Time 2024-12-21 23:58:04 [2024-12-21 23:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073673', 'tblTempUsageDetail_20' ) start [2024-12-21 23:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073673', 'tblTempUsageDetail_20' ) end [2024-12-21 23:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073673', 'tblTempVendorCDR_20' ) start [2024-12-21 23:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073673', 'tblTempVendorCDR_20' ) end [2024-12-21 23:58:16] Production.INFO: ProcessCDR(1,14073673,1,1,2) [2024-12-21 23:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073673', 'tblTempUsageDetail_20' ) start [2024-12-21 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073673', 'tblTempUsageDetail_20' ) end [2024-12-21 23:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:58:21] Production.INFO: ==22773== Releasing lock... [2024-12-21 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:58:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-21 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 20:59:05 [end_date_ymd] => 2024-12-21 23:59:05 [RateCDR] => 1 ) [2024-12-21 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 20:59:05' and `end` < '2024-12-21 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-21 23:59:19] Production.INFO: count ==700 [2024-12-21 23:59:19] Production.ERROR: pbx CDR StartTime 2024-12-21 20:59:05 - End Time 2024-12-21 23:59:05 [2024-12-21 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-21 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073678', 'tblTempUsageDetail_20' ) start [2024-12-21 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073678', 'tblTempUsageDetail_20' ) end [2024-12-21 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073678', 'tblTempVendorCDR_20' ) start [2024-12-21 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073678', 'tblTempVendorCDR_20' ) end [2024-12-21 23:59:19] Production.INFO: ProcessCDR(1,14073678,1,1,2) [2024-12-21 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-21 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-21 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073678', 'tblTempUsageDetail_20' ) start [2024-12-21 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073678', 'tblTempUsageDetail_20' ) end [2024-12-21 23:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-21 23:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-21 23:59:22] Production.INFO: ==22845== Releasing lock... [2024-12-21 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-21 23:59:22] Production.INFO: 32.75 MB #Memory Used#